diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 6bb7ab5..2f360ee 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -60,11 +60,11 @@ jobs: - name: Dead code run: | - DEAD=$(go run golang.org/x/tools/cmd/deadcode@v0.51.0 -test ./...) + DEAD=$(go run golang.org/x/tools/cmd/deadcode@v0.52.0 -test ./...) if [ -n "$DEAD" ]; then echo "$DEAD"; exit 1; fi - name: Vulnerabilities - run: go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./... + run: go run golang.org/x/vuln/cmd/govulncheck@v1.9.0 ./... - name: Mocks up to date run: | diff --git a/AGENTS.md b/AGENTS.md index 5e109c8..9d587a9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -37,8 +37,8 @@ Datalogger polls **devices** and forwards every reading to one or more **outputs make check # ./scripts/pre-commit.sh, check-only golangci-lint fmt --config .golangci.yml # gofumpt + goimports golangci-lint run --config .golangci.yml # full linter set (section 10) -go run golang.org/x/tools/cmd/deadcode@v0.51.0 -test ./... # unused exported code -go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./... # known vulnerabilities +go run golang.org/x/tools/cmd/deadcode@v0.52.0 -test ./... # unused exported code +go run golang.org/x/vuln/cmd/govulncheck@v1.9.0 ./... # known vulnerabilities go test -race ./... # all unit tests, as in CI go tool mockery # regenerate mocks (.mockery.yaml) make build # ./datalogger with version info (ldflags) diff --git a/scripts/pre-commit.sh b/scripts/pre-commit.sh index 002a111..f366b4f 100755 --- a/scripts/pre-commit.sh +++ b/scripts/pre-commit.sh @@ -50,7 +50,7 @@ print_result $? "golangci-lint run" # 3. Unused exported code (golangci's unused only sees unexported identifiers) echo "Checking for dead code..." -DEAD=$(go run golang.org/x/tools/cmd/deadcode@v0.51.0 -test ./... 2>&1) +DEAD=$(go run golang.org/x/tools/cmd/deadcode@v0.52.0 -test ./... 2>&1) if [ -n "$DEAD" ]; then echo "$DEAD" print_result 1 "deadcode" @@ -60,7 +60,7 @@ fi # 4. Known vulnerabilities in dependencies and the standard library echo "Checking for vulnerabilities..." -go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./... +go run golang.org/x/vuln/cmd/govulncheck@v1.9.0 ./... print_result $? "govulncheck" # 5. Build