about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2021-04-30T11·01+0200
committerVincent Ambo <mail@tazj.in>2021-04-30T11·27+0200
commit768f3986a9399c82fc61ddcd4865d10f3bb93351 (patch)
treec15a02b2578bc1fff313b9f6c522063581701073
parent13d97c9e51a3c6cc2abcb354bcd0519a49aeed68 (diff)
feat(build): Run `go vet` as a step in the GitHub Actions workflow
-rw-r--r--tools/nixery/.github/workflows/build-and-test.yaml2
-rw-r--r--tools/nixery/popcount/popcount.go2
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/nixery/.github/workflows/build-and-test.yaml b/tools/nixery/.github/workflows/build-and-test.yaml
index 2c0aff49d218..d3f258ffaac4 100644
--- a/tools/nixery/.github/workflows/build-and-test.yaml
+++ b/tools/nixery/.github/workflows/build-and-test.yaml
@@ -19,6 +19,8 @@ jobs:
         run: nix-env -f '<nixpkgs>' -iA go
       - name: Check formatting
         run: "test -z $(gofmt -l .)"
+      - name: Run `go vet`
+        run: "go vet ./..."
       - name: Build Nixery
         run: "nix-build --no-out-link"
       - name: Run integration test
diff --git a/tools/nixery/popcount/popcount.go b/tools/nixery/popcount/popcount.go
index d632090c0dc2..dab10aae64c0 100644
--- a/tools/nixery/popcount/popcount.go
+++ b/tools/nixery/popcount/popcount.go
@@ -90,7 +90,7 @@ func channelMetadata(channel string) meta {
 	commit, err := ioutil.ReadAll(commitResp.Body)
 	failOn(err, "failed to read commit from response")
 	if commitResp.StatusCode != 200 {
-		log.Fatalf("non-success status code when fetching commit: %s", string(commit), commitResp.StatusCode)
+		log.Fatalf("non-success status code when fetching commit: %s (%v)", string(commit), commitResp.StatusCode)
 	}
 
 	return meta{