Now that hosts actually run the pinned v2.12.2 linter (#24 / #34),
every make lint and make check — locally and inside the Docker lint
stage — prints:
level=warning msg="The linter 'gomodguard' is deprecated (since v2.12.0) due to: new major version. Replaced by gomodguard_v2."
level=warning msg="Suggested new configuration:\nlinters:\n enable:\n - gomodguard_v2\n"
It is a warning, not a finding: make lint still reports 0 issues.
and exits 0. But it is noise on every gate run, and gomodguard will
eventually be removed, at which point the config breaks rather than
warns.
The fix is not local: .golangci.yml is the standardized shared config
and per REPO_POLICIES.md must never be edited in-repo, only replaced
wholesale from https://git.eeqj.de/sneak/prompts/raw/branch/main/.golangci.yml. So
this needs gomodguard swapped for gomodguard_v2 in the canonical
file upstream, and then a pull of the updated copy into this repo (the
same shape as #3).
Definition of done
The canonical .golangci.yml enables gomodguard_v2 instead of gomodguard.
This repo's .golangci.yml is replaced with the updated canonical
copy — not hand-edited.
make lint runs without deprecation warnings and still reports 0 issues.; make check and make docker green.
Now that hosts actually run the pinned v2.12.2 linter (#24 / #34),
every `make lint` and `make check` — locally and inside the Docker lint
stage — prints:
level=warning msg="The linter 'gomodguard' is deprecated (since v2.12.0) due to: new major version. Replaced by gomodguard_v2."
level=warning msg="Suggested new configuration:\nlinters:\n enable:\n - gomodguard_v2\n"
It is a warning, not a finding: `make lint` still reports `0 issues.`
and exits 0. But it is noise on every gate run, and `gomodguard` will
eventually be removed, at which point the config breaks rather than
warns.
The fix is not local: `.golangci.yml` is the standardized shared config
and per `REPO_POLICIES.md` must never be edited in-repo, only replaced
wholesale from
`https://git.eeqj.de/sneak/prompts/raw/branch/main/.golangci.yml`. So
this needs `gomodguard` swapped for `gomodguard_v2` in the canonical
file upstream, and then a pull of the updated copy into this repo (the
same shape as #3).
## Definition of done
1. The canonical `.golangci.yml` enables `gomodguard_v2` instead of
`gomodguard`.
2. This repo's `.golangci.yml` is replaced with the updated canonical
copy — not hand-edited.
3. `make lint` runs without deprecation warnings and still reports
`0 issues.`; `make check` and `make docker` green.
#26 was filed earlier from the same finding during the review of PR #2, and is already assigned to sneak with the two options written out and a recommendation, because the fix belongs in the canonical .golangci.yml in the prompts repo and agents are forbidden to modify that file.
The observation here is correct and independently reached, which is worth something: v2.12.2 warns on every run that gomodguard is deprecated in favour of gomodguard_v2, and now that #24 makes hosts actually run the pinned linter, that warning will be visible on every developer machine rather than only inside the Docker lint stage. Recorded on #26.
Duplicate of #26 — closing in favour of it.
#26 was filed earlier from the same finding during the review of PR #2, and is already assigned to `sneak` with the two options written out and a recommendation, because the fix belongs in the canonical `.golangci.yml` in the `prompts` repo and agents are forbidden to modify that file.
The observation here is correct and independently reached, which is worth something: v2.12.2 warns on every run that `gomodguard` is deprecated in favour of `gomodguard_v2`, and now that #24 makes hosts actually run the pinned linter, that warning will be visible on every developer machine rather than only inside the Docker lint stage. Recorded on #26.
Nothing to do here. Follow #26.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Now that hosts actually run the pinned v2.12.2 linter (#24 / #34),
every
make lintandmake check— locally and inside the Docker lintstage — prints:
It is a warning, not a finding:
make lintstill reports0 issues.and exits 0. But it is noise on every gate run, and
gomodguardwilleventually be removed, at which point the config breaks rather than
warns.
The fix is not local:
.golangci.ymlis the standardized shared configand per
REPO_POLICIES.mdmust never be edited in-repo, only replacedwholesale from
https://git.eeqj.de/sneak/prompts/raw/branch/main/.golangci.yml. Sothis needs
gomodguardswapped forgomodguard_v2in the canonicalfile upstream, and then a pull of the updated copy into this repo (the
same shape as #3).
Definition of done
.golangci.ymlenablesgomodguard_v2instead ofgomodguard..golangci.ymlis replaced with the updated canonicalcopy — not hand-edited.
make lintruns without deprecation warnings and still reports0 issues.;make checkandmake dockergreen.Duplicate of #26 — closing in favour of it.
#26 was filed earlier from the same finding during the review of PR #2, and is already assigned to
sneakwith the two options written out and a recommendation, because the fix belongs in the canonical.golangci.ymlin thepromptsrepo and agents are forbidden to modify that file.The observation here is correct and independently reached, which is worth something: v2.12.2 warns on every run that
gomodguardis deprecated in favour ofgomodguard_v2, and now that #24 makes hosts actually run the pinned linter, that warning will be visible on every developer machine rather than only inside the Docker lint stage. Recorded on #26.Nothing to do here. Follow #26.