Commit 58b70f6
committed
ci(vendor-hash): block major indirect bumps and skip false-positive hooks
PR micasa-dev#977 (the first batched go-indirect run under the new config)
surfaced two remaining gaps:
1. Renovate kept attempting major-version bumps on indirect deps
(openai-go v1 -> v3, modernc.org/libc v1 -> v2). A new major is a
different Go module path, and nothing in the repo imports the new
path, so `go mod tidy` strips the added lines on every workflow
run. The PR is a guaranteed no-op that never reconciles with main.
Disable major update-types for the indirect rule so Renovate
stops opening them.
2. When `go mod tidy` does reshape go.sum without altering vendor
contents (exactly the scenario above), the Commit and push step
trips two pre-commit hooks that fire as false positives here:
vendor-hash-check ("go.sum changed but nix/package.nix did not")
and go-mod-tidy ("tidy would modify files" -- it already did, we
are about to stage the result). Scope SKIP to these two hook IDs
on that one step; all other hooks still run.1 parent 30cc79a commit 58b70f6
2 files changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
131 | 140 | | |
132 | 141 | | |
133 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
30 | 37 | | |
31 | 38 | | |
32 | 39 | | |
| |||
0 commit comments