You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(up): pull the Dockerfile base image before reading its metadata
up's Dockerfile path computed devcontainer metadata from the FROM image BEFORE
the build, but (unlike the `build` command) never pulled it when absent. On a
fresh run the base image is not cached yet, so InspectImage failed and the
base's baked metadata — e.g. `remoteUser=node` on the mcr devcontainers images —
was silently dropped. The CLI then stamped a metadata label without a remoteUser,
so exec/lifecycle fell back to root instead of node.
Extract the inspect→pull→inspect fallback into
EngineClient.ImageLabelsEnsuringPresent (shared by up and build, DRYing the two
paths) and unit-test all three branches (present / absent-then-pulled /
unpullable) against a full ImagePullResponse fake that streams like the real
client. End-to-end this fixes
exec.workspace-dockerfile-with-features-hello-success (TS `howdy, node!` vs Go
`howdy, root!`).
Also adds the previously-missing unit tests for parsePlatform (#1241) and
buildSecretIDs (#1078).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments