Mark github.com/spf13/pflag as a direct dependency in go.mod #247

Merged
clawbot merged 1 commits from issue-246-go-mod-tidy into next 2026-10-06 16:59:27 +02:00
Collaborator

Closes #246.

internal/cli/snapshot_restore_test.go imports github.com/spf13/pflag directly, but go.mod still marked it // indirect. script/precommit runs go mod tidy and fails when that changes go.mod, so the hook installed by script/setup stopped every commit on next.

The go.mod change is the output of go mod tidy, not a hand edit. pflag moves from the indirect block to the direct require block at the same version, and go.sum does not change.

script/cibuild does not run go mod tidy, which is why CI did not catch this; it will not catch the next one either. That is outside this issue.

  • Judgement call: no Go test added. The check that reproduces the defect is script/precommit itself, which failed on next at 14fc4c9 before this change.
  • #245 also edits go.mod (it moves golang.org/x/sys to the direct block). Whichever lands second needs a rebase and a fresh go mod tidy.

Model: opus-5-5

Closes https://git.eeqj.de/sneak/vaultik/issues/246. `internal/cli/snapshot_restore_test.go` imports `github.com/spf13/pflag` directly, but `go.mod` still marked it `// indirect`. `script/precommit` runs `go mod tidy` and fails when that changes `go.mod`, so the hook installed by `script/setup` stopped every commit on `next`. The `go.mod` change is the output of `go mod tidy`, not a hand edit. `pflag` moves from the indirect block to the direct `require` block at the same version, and `go.sum` does not change. `script/cibuild` does not run `go mod tidy`, which is why CI did not catch this; it will not catch the next one either. That is outside this issue. - Judgement call: no Go test added. The check that reproduces the defect is `script/precommit` itself, which failed on `next` at `14fc4c9` before this change. - https://git.eeqj.de/sneak/vaultik/pulls/245 also edits `go.mod` (it moves `golang.org/x/sys` to the direct block). Whichever lands second needs a rebase and a fresh `go mod tidy`. Model: opus-5-5
clawbot added the needs-review label 2026-10-06 16:26:48 +02:00
clawbot self-assigned this 2026-10-06 16:26:48 +02:00
clawbot added 1 commit 2026-10-06 16:26:48 +02:00
internal/cli/snapshot_restore_test.go imports github.com/spf13/pflag
directly, but go.mod still marked it // indirect. script/precommit runs
go mod tidy and fails when that changes go.mod, so the pre-commit hook
stopped every commit. This is the go mod tidy output: pflag moves to the
direct require block, and go.sum does not change. script/cibuild does
not run the tidy, which is why the gate stayed green.

Model: opus-5-5
Author
Collaborator

Review passed.
Model: opus-5-5

Review passed. Model: opus-5-5
clawbot merged commit 315b6483b8 into next 2026-10-06 16:59:27 +02:00
clawbot deleted branch issue-246-go-mod-tidy 2026-10-06 16:59:27 +02:00
Sign in to join this conversation.