Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
ci(golangci): drop the advisory flag + uncap max-same-issues#430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+33
−41
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
a803586
ci(golangci): drop the advisory flag + uncap max-same-issues (backend…
LukasWodka 6f7634a
ci(golangci): drop the advisory flag + uncap max-same-issues (backend…
LukasWodka 57d797c
build: make ci runs lint-full — mirror the now-failing golangci gate …
LukasWodka 01e5738
build: pin lint-full to the CI golangci version via go run (Bugbot)
LukasWodka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -9,11 +9,12 @@ | ||
| # ---- toggles ----------------------------------------------------- | ||
| GO ?= go | ||
| GOLANGCI_LINT ?= golangci-lint | ||
| PKGS := ./... | ||
| # Pinned lint/analysis tool versions (reproducibility — no more @latest drift). | ||
| # Keep these in lockstep with .github/workflows/build.yml. Bump deliberately. | ||
| # Keep these in lockstep with .github/workflows/build.yml — and | ||
| # GOLANGCI_LINT_VERSION with .github/workflows/golangci.yml. Bump deliberately. | ||
| GOLANGCI_LINT_VERSION ?= v2.12.2 | ||
| ERRCHECK_VERSION ?= v1.20.0 | ||
| INEFFASSIGN_VERSION ?= v0.2.0 | ||
| MISSPELL_VERSION ?= v0.3.4 | ||
| @@ -24,8 +25,11 @@ GOIMPORTS_VERSION ?= v0.48.0 | ||
| # ---- top-level targets ------------------------------------------- | ||
| # ci mirrors the PR gates exactly — including golangci-lint (lint-full), | ||
| # which fails on findings since #430. A green `make ci` must imply a green | ||
| # PR; lint-full's own guard tells you how to install the tool if missing. | ||
| .PHONY: ci | ||
| ci: vet test lint fmt-check schema-check vulncheck file-budget deadcode check-style | ||
| ci: vet test lint lint-full fmt-check schema-check vulncheck file-budget deadcode check-style | ||
LukasWodka marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| @echo "==> ci: all green" | ||
| .PHONY: build | ||
| @@ -126,15 +130,14 @@ deadcode: | ||
| vulncheck: | ||
| $(GO) run golang.org/x/vuln/cmd/govulncheck@$(GOVULNCHECK_VERSION) ./... | ||
| # Pinned to the exact version the golangci CI job runs (see | ||
| # .github/workflows/golangci.yml), via the same `go run tool@version` | ||
| # pattern as the tools above — no PATH dependency, so a green | ||
| # `make ci` and the PR gate can never disagree on golangci version. | ||
| # First run builds from source (~1-2 min); cached afterwards. | ||
| .PHONY: lint-full | ||
| lint-full: | ||
| @command -v $(GOLANGCI_LINT) >/dev/null 2>&1 || { \ | ||
| echo "==> $(GOLANGCI_LINT) not on PATH"; \ | ||
| echo " install via: brew install golangci-lint"; \ | ||
| echo " or see: https://golangci-lint.run/usage/install/"; \ | ||
| exit 1; \ | ||
| } | ||
| $(GOLANGCI_LINT) run | ||
| $(GO) run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@$(GOLANGCI_LINT_VERSION) run | ||
| .PHONY: fmt | ||
| fmt: | ||
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.