Skip to content

fix(cli): keep the config's ENV order in the single Dockerfile build - #71

Merged
aledbf merged 1 commit into
mainfrom
dockerfile-env-order
Nov 13, 2026
Merged

aledbf merged 1 commit into
mainfrom
dockerfile-env-order

Conversation

@aledbf

@aledbf aledbf commented Nov 13, 2026

Copy link
Copy Markdown
Member

#68 and #70 crossed: #70's single-build path for Dockerfile configurations (buildDockerfileImage) builds its Features stage without the config's containerEnv order that #68 added. So for a Dockerfile config, the config's ENV lines still came out sorted, while image configs kept the declared order.

Fix: pass ConfigEnvOrder: fb.ContainerEnvOrder there, as extendImageWithFeatures already does.

Test: new runtime parity case build.dockerfile-features-env-declaration-order-success. It is the Dockerfile variant of #68's image case and compares the built image's env and devcontainer-features.env with TS. It fails without the one-line fix and passes with it; the image variant still passes.

Validation (local): task lint, task test:race (with TMPDIR outside /tmp) and task parity:contract (only the 2 known local /tmp/.git cases fail).

🤖 Generated with Claude Code

The one-build path for Dockerfile configurations (#70) built its
Features stage without the config's containerEnv order, so those ENV
lines came out sorted there while image configurations kept the
declared order. A Dockerfile variant of the declaration-order parity
case compares the built image with the reference.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@aledbf
aledbf merged commit 4660f5f into main Nov 13, 2026
13 checks passed
@aledbf
aledbf deleted the dockerfile-env-order branch November 13, 2026 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant