diff --git a/Makefile b/Makefile index 12ec042..f48b7f8 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ GOCLEAN=$(GOCMD) clean # Tool versions (compiled on demand via `go run` so they match the local toolchain) GOLANGCI_LINT = go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest -STATICCHECK = go run honnef.co/go/tools/cmd/staticcheck@latest +STATICCHECK = build/tools/staticcheck GOVULNCHECK = go run golang.org/x/vuln/cmd/govulncheck@latest # Version information @@ -63,7 +63,16 @@ fmt-check: ## Check formatting (gofumpt + goimports via golangci-lint) @diff=$$($(GOLANGCI_LINT) fmt --diff --config=.golangci.json); \ if [ -n "$$diff" ]; then echo "$$diff"; echo "Run: make fmt"; exit 1; fi -staticcheck: ## Run staticcheck +# staticcheck is built against the latest golang.org/x/tools so it can read export +# data from the newest Go toolchain (`go run ...@latest` uses an older, pinned x/tools). +$(STATICCHECK): + @echo "Building staticcheck..." + @mkdir -p build/tools/src + @cd build/tools/src && { [ -f go.mod ] || go mod init staticcheck-build >/dev/null 2>&1; } && \ + go get honnef.co/go/tools/cmd/staticcheck@latest golang.org/x/tools@latest && \ + go build -o ../staticcheck honnef.co/go/tools/cmd/staticcheck + +staticcheck: $(STATICCHECK) ## Run staticcheck @echo "Running staticcheck..." $(STATICCHECK) ./... diff --git a/VERSION b/VERSION index 5ca0603..9d25b39 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.88 +1.0.89 diff --git a/linux/arch/PKGBUILD b/linux/arch/PKGBUILD index 3afbe4d..0d695f7 100644 --- a/linux/arch/PKGBUILD +++ b/linux/arch/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: Hein (Warky Devs) pkgname=relspec -pkgver=1.0.88 +pkgver=1.0.89 pkgrel=1 pkgdesc="RelSpec is a comprehensive database relations management tool that reads, transforms, and writes database table specifications across multiple formats and ORMs." arch=('x86_64' 'aarch64') diff --git a/linux/centos/relspec.spec b/linux/centos/relspec.spec index 5d021a0..a2c9206 100644 --- a/linux/centos/relspec.spec +++ b/linux/centos/relspec.spec @@ -1,5 +1,5 @@ Name: relspec -Version: 1.0.88 +Version: 1.0.89 Release: 1%{?dist} Summary: RelSpec is a comprehensive database relations management tool that reads, transforms, and writes database table specifications across multiple formats and ORMs.