Repository navigation
fix(deps): update module gopkg.in/yaml.v2 to v3 - #145
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
28d37ed to
d877707
Compare
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
|
🏭 Tracked by CCF Factory — view |
|
🙋 The factory needs a person here.
|
b499e14 to
5b43f80
Compare
|
📦 The factory checked this dependency bump: fixed, risk low. The bump still needs a maintainer: the branch's tidy commit reverted the yaml.v3 require, so the PR carries no Go change and internal/annotations.go stays on yaml.v2 (1 call site). CI failed only in the image jobs: agent and agent-ci on the stale base (klauspost/compress 1.20.1, fixed by rebasing onto main), and agent-custodian, failing on main too on the fixable HIGH oauthlib 4.0.0 and pyasn1 0.6.4 pins, raised in Dockerfile-custodian. I reproduced the scan with the repo's image-scan tool; all checks incl. the three image jobs pass on the pushed head; integration not-run, no such target.
Checks: build pass, tests pass, lint pass, integration not-run. CI fixes pushed beyond the bump (it failed on
A person reviews and merges this PR: the factory added |
There was a problem hiding this comment.
ccf-review: REQUEST_CHANGES
1 Must-fix, 1 Should-fix.
Outside the diff
- [Must-fix]
go.mod:26The declared yaml.v2-to-v3 update cannot exist and the PR contains no dependency change: The PR promisesfix(deps): update module gopkg.in/yaml.v2 to v3, but gopkg.in/yaml.v2 has no v3.0.1:go list -m -versions gopkg.in/yaml.v2resolves only v2.0.0..v2.4.0, andgo list -m gopkg.in/yaml.v2@v3.0.1fails withinvalid version: go.mod has non-....v2 module path "gopkg.in/yaml.v3" at revision v3.0.1(v3 lives at the separate module path gopkg.in/yaml.v3). The bump commit98c7f86therefore added an unusedgopkg.in/yaml.v3require andgo mod tidy(3d435e5) removed it: the merged diff changes no Go file and go.mod stays byte-identical to main, sointernal/annotations.go:61still decodes policy METADATA with yaml.v2 v2.4.0. Merging as-is makes release-please recordfix(deps): update module gopkg.in/yaml.v2 to v3as a shipped fix in the next CHANGELOG although nothing was updated, and silently closes the Renovate request for an update that can never be satisfied. A companion change is missing either way: the renovate config that proposed this impossible bump is not corrected in-repo, and no yaml.v3 migration exists (gopkg.in/yaml.v3 is imported nowhere). (d504580771c5)
…3.0.1
The Renovate bump could not apply in place: v3 lives at the separate module
path gopkg.in/yaml.v3, so go mod tidy dropped the added require and the PR
carried no Go change. Migrate the sole yaml.v2 user (internal/annotations.go,
the METADATA parser) to yaml.v3 v3.0.1 and re-tidy so go.mod moves from
gopkg.in/yaml.v2 v2.4.0 to gopkg.in/yaml.v3 v3.0.1. Behaviour is unchanged
for the flat METADATA documents: v3 decodes nested mappings as
map[string]interface{} where v2 used map[interface{}]interface{}, and the
tests use only string values.
There was a problem hiding this comment.
ccf-review: APPROVE
1 Should-fix.
Non-blocking
- [Should-fix]
Dockerfile-custodian:30CORE-SCOPE-001: The stated intent of this PR (its own body and title) is the Renovate bump of gopkg.in/yaml.v2 to v3. Commit 5b43f80 also raises the hand-pinned oauthlib 4.0.0 -> 4.0.1 and adds a pyasn1==0.6.5 pin in the Dockerfile-custodian uv install line. That is a fix for the CI image-scan findings (which fail on main too), not something the yaml bump needs; the PR body itself lists it under "CI fixes pushed beyond the bump". Mixed concerns make the bump harder to revert or bisect independently of the image fix. Fix: Move the Dockerfile-custodian oauthlib/pyasn1 pins to their own PR so the image-scan fix lands on main independently of the yaml module migration. (02237baa9429)
Verification (ccfr workspace clone at head 137e140)
- go build / go vet / go test (make test, -race + coverage) / make build / make check-opa-version (OPA v1.22.0 both sides): pass
- go mod tidy: no-op; go.mod/go.sum consistent (gopkg.in/yaml.v2 stays as an indirect dep via compliance-framework/api)
- gofmt -l . prints only runner/proto/types.pb.go, byte-identical to main and untouched by this PR (pre-existing, not caused by the change); the changed Go file is clean
- GitHub CI at head: ci / required and all three image jobs pass
Notes: internal/annotations.go is the module's only yaml.v2 call site; the import swap plus the go.mod swap complete the migration (no gopkg.in/yaml.v2 imports remain). ExtractAnnotations has no callers outside its own test, so the v3 nested-mapping shape (map[string]interface{} instead of v2's map[interface{}]interface{}) reaches no consumer; UnmarshalStrict was never used. No contract, proto, evidence-prop or config change.
This PR contains the following updates:
v2.4.0→v3.0.1Release Notes
go-yaml/yaml (gopkg.in/yaml.v2)
v3.0.1Compare Source
v3.0.0Compare Source
Configuration
📅 Schedule: (in timezone UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.