Deprecated gomodguard linter in the org-standard .golangci.yml (needs an upstream decision) #98
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@sneak — this needs your call, because the fix is not in this repository's power. Assigning to you rather than acting.
The warning
Every pinned lint run (golangci-lint v2.12.2, as used by
script/cibuild) emits:It has shown up in every PR this cycle (#91, #92, #95, #96). It is currently harmless noise, but a deprecated linter is an action item, not background noise — it will eventually be removed and the config will start failing rather than warning.
Why I am not fixing it
The setting lives in
.golangci.yml, whichREPO_POLICIES.mdsays is standardized and must NEVER be modified by an agent, only manually by the user, and which must match the canonical copy athttps://git.eeqj.de/sneak/prompts/raw/branch/main/.golangci.yml. The current file is pinned onmainvia #86 at sha256021cc83f4e6fc7c31b95b34b846723dfcf20b66b7baeea1dc40406e643346bcb.Editing it here would (a) violate that policy and (b) desynchronise this repo from the org standard, which is worse than the warning. So this is an upstream change to the
promptsrepo that then propagates to every repo, not a webhooker change.Options
.golangci.ymlin thepromptsrepo to usegomodguard_v2, then pull the new file into this repo and re-pin its sha256. Correct and durable; touches every repo that consumes the standard, so it wants to be done deliberately.gomodguardfrom the canonical config if it is not actually earning its place — it guards against blocked module imports, which may be redundant with the dependency policy inGO_PACKAGE_DEFAULTS.md.Recommendation
Option 1. It is a mechanical rename in one file, the replacement is the maintainers' own designated successor, and doing it now means it lands as a quiet no-op change rather than an emergency when a future golangci-lint version drops the old name and every repo's
script/cibuildgoes red at once.Definition of done
.golangci.ymlinpromptsno longer references the deprecatedgomodguard..golangci.ymlis refreshed from the canonical copy, with the new sha256 recorded wherever the current one is documented.script/cibuildgreen with the v2.12.2 pin unchanged, and the deprecation warning gone.