diff --git a/Makefile b/Makefile index 1cfd8e9..12ec042 100644 --- a/Makefile +++ b/Makefile @@ -243,7 +243,7 @@ release: lint fmt-check test build ## Run lint, format check, tests, build, then git push origin "$$version"; \ echo "Tag $$version created and pushed to remote repository." -release-version: lint fmt-check ## Run lint and format check, then auto-increment patch version, update VERSION/package files, commit, tag, and push +release-version: lint fmt-check staticcheck ## Run lint, format check and staticcheck, then auto-increment patch version, update VERSION/package files, commit, tag, and push @CURRENT=$$([ -f VERSION ] && cat VERSION | tr -d '[:space:]' || (git describe --tags --abbrev=0 2>/dev/null | sed 's/^v//') || echo "0.0.0"); \ MAJOR=$$(echo $$CURRENT | cut -d. -f1); \ MINOR=$$(echo $$CURRENT | cut -d. -f2); \ diff --git a/pkg/models/models_test.go b/pkg/models/models_test.go index c078380..17c0da4 100644 --- a/pkg/models/models_test.go +++ b/pkg/models/models_test.go @@ -226,7 +226,8 @@ func TestInitConstructors(t *testing.T) { } // GUIDs are unique per call. - if InitTable("t", "s").GUID == InitTable("t", "s").GUID { + t1, t2 := InitTable("t", "s"), InitTable("t", "s") + if t1.GUID == t2.GUID { t.Error("GUIDs must be unique") } }