Flux OCIRepository digest pinning produces unparseable YAML for flow-style (kyaml) manifests #44901
Replies: 1 comment
|
Reproduced with a flow-style manifest and That comes from the tag-only branch in ref: {
tag: "0.58.0"
digest: sha256:1ccf038123198fab1923b3fc4977154bd4cc3729f4c7d957dedf09478d9d19d5,
},which fails to parse ( The branch above it, for manifests that already carry both Comma kept, quotes kept, flow style survives. So as a workaround you can seed the digest by hand once: ref: {
tag: "0.56.0",
digest: "sha256:0000000000000000000000000000000000000000000000000000000000000000",
},Renovate will replace both on the next run and the file stays valid. Note this needs the real digest eventually, a zero placeholder is only there to get the manifest onto the tag+digest code path. The tag-only path building YAML by string concatenation looks like a genuine bug for flow-style manifests, so it is probably worth an issue rather than a config change. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
How are you running Renovate?
None
Which platform you running Renovate on?
Forgejo
Which version of Renovate are you using?
46.245.0
Please tell us more about your question or problem
When the
fluxmanager haspinDigests: true, digest pinning for OCIRepository tag-only refs produces invalid YAML if the manifest uses flow-style YAML (kyaml).Given this manifest:
And this Renovate config:
{ "packageRules": [ { "matchManagers": ["flux"], "pinDigests": true } ] }Logs (if relevant)
Logs
All reactions