Docker digest pinning breaks devcontainers #28767
Replies: 2 comments 5 replies
-
Your config is telling Renovate "pin digests for all docker dependencies". Renovate is attempting to do exactly that. This is not an error of the manager or datasource, instead needs to be fixed using config |
Beta Was this translation helpful? Give feedback.
-
I was about to open up a new discussion with this, glad to have found this. Devcontainer cli (which is used by the VS Code extension) supports digest pinning for features but the maintainers unfortunately decided on a different syntax (issue, PR). In short, devcontainer features can only be pinned with the following syntax:
Trying to pin them with I had also created a minimal reproduction before seeing this discussion, if it'd be of help to anyone: https://github.com/berkaycagir/renovate-devcontainer-feature-digest-poc |
Beta Was this translation helpful? Give feedback.
-
What would you like help with?
I think I found a bug
How are you running Renovate?
Mend Renovate hosted app on github.com
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
No response
Please tell us more about your question or problem
The new devcontainer updater #28206 seems to be incompatible with pinning Docker digests, resulting in broken devcontainer.json files (at least, as far as vscode is concerned).
My renovate config is here: https://github.com/JohnStrunk/jira-summary/blob/66e7109475dae7975d3bf4686c5a2daba22dca37/.github/renovate.json5
Relevant lines:
This resulted in the following commit from renovate: JohnStrunk/jira-summary@
286ee44
(#38)That commit pins not only the "image" (which is correct), but it also pins the containers in the "features" list. However, vscode doesn't support hash pinning for the features.
Resulting devcontainer build log:
Looking at the devcontainer spec, it doesn't seem to support hashes for features: https://containers.dev/implementors/features/#referencing-a-feature
Removing the hashes from the features (but leaving the one for
image
) allows the devcontainer to build and start as expected.Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions