diff --git a/Taskfile.yml b/Taskfile.yml index 6feb026..1dd84dd 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -77,7 +77,7 @@ tasks: - go test -run='^Fuzz' {{.PKG}} ci: - desc: Full CI pipeline — tidy check, vet, test + desc: Full CI pipeline — tidy check, vet, staticcheck, test cmds: - task: tidy - | @@ -86,6 +86,7 @@ tasks: exit 1 fi - task: lint + - go tool staticcheck ./... - task: test clean: diff --git a/internal/gitutil/gitutil_test.go b/internal/gitutil/gitutil_test.go index cf7d79a..147d4ab 100644 --- a/internal/gitutil/gitutil_test.go +++ b/internal/gitutil/gitutil_test.go @@ -765,6 +765,9 @@ func TestLatestTagTagsIterFails(t *testing.T) { // Reopen so the filesystem storer holds no cached state. repo2, err := gogit.PlainOpen(dir) + if err != nil { + t.Fatalf("PlainOpen: %v", err) + } _, _, err = LatestTag(repo2, branch.Info{Major: 1, Minor: 2, TagPrefix: "v"}) if err == nil {