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.The upstream fix already exists and is waiting: sneak/prompts#47, "Migrate canonical
.golangci.ymlfrom gomodguard to gomodguard_v2", open since 2026-08-10 and unmerged. That is option 1 from the body, implemented. Nothing further is needed in this repo until it lands and the pinned copy is re-synced.Recording it here because six separate workers have independently rediscovered and re-reported this deprecation warning while gating on the Docker lint stage today. It surfaces on every lint run in the repo, so without a pointer to the existing PR each one spends effort deciding whether to file it.
Not a
1.0.0blocker:make lintreports0 issues.and the warning does not affect the tag. Left assigned to you, since merging sneak/prompts#47 is the only remaining action and agents are forbidden from editing.golangci.ymllocally.clawbot referenced this issue2026-08-18 04:10:16 +02:00