Skip to content

Added BUILDKIT_INLINE_CACHE for containerFeature path - #1135

Merged
Abdurrahmaan Iqbal (abdurriq) merged 2 commits into
devcontainers:mainfrom
ross-p-smith:ross/inline-cache
Feb 3, 2026
Merged

Abdurrahmaan Iqbal (abdurriq) merged 2 commits into
devcontainers:mainfrom
ross-p-smith:ross/inline-cache

Conversation

@ross-p-smith

@ross-p-smith Ross Smith (ross-p-smith) commented Jan 29, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #1134

Implement support for the BUILDKIT_INLINE_CACHE build argument when the buildx cache is not set to inline. This change enhances the container build process by ensuring the inline cache is utilized appropriately.

BUILDKIT_INLINE_CACHE was not being set when using

"image": "mcr.myimage"

It also conflicts if you define cacheTo: type=inline

@ross-p-smith
Ross Smith (ross-p-smith) requested a review from a team as a code owner January 29, 2026 22:25

@chrmarti Christof Marti (chrmarti) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@stuartleeks

Copy link
Copy Markdown
Collaborator

This is great - I've had various cases where https://github.com/devcontainers/ci/ didn't seem to be caching and I think they would fall into the case that this PR addresses <3

@ross-p-smith

Copy link
Copy Markdown
Contributor Author

Christof Marti (@chrmarti) - I dont have permissions to merge - would you be able to?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM, but I think tests would help here. Could you please add some tests (unit, at least) to verify the behaviour?

@ross-p-smith

Copy link
Copy Markdown
Contributor Author
@abdurriq
Abdurrahmaan Iqbal (abdurriq) merged commit 7829210 into devcontainers:main Feb 3, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants