Skip to content

Support build argument lists and CLI overrides - #194

Open
Mcrich23 wants to merge 2 commits into
mainfrom
feat/build-argument-semantics
Open

Mcrich23 wants to merge 2 commits into
mainfrom
feat/build-argument-semantics

Conversation

@Mcrich23

Copy link
Copy Markdown
Owner

Support build.args list and map syntax, null and bare inheritance, explicit empty values, and repeatable build --build-arg overrides. Missing inherited values preserve Dockerfile defaults. Values retain literal dollars and use project loading's once-only YAML interpolation. Both build and up pass resolved arguments through native ContainerCommands 1.7.1 APIs.

This overlaps #143, which remains changes-requested at head 910d601. Credits to @OrtegaMatias for the list-form and repeatable CLI override approach in that PR. This implementation follows the owner's feedback with limited split parsing, strict decoding, separate inheritance resolution, and a real builder test; no code was copied.

Validation: 23 tests in BuildArgumentTests, BuildConfigurationTests, and ComposeBuildParsingTests passed. Dynamic buildArgumentsReachBuilder passed in 1.252 seconds, with Dockerfile RUN assertions for CLI precedence, internal equals, empty values, missing bare defaults, and escaped dollars. git diff --check passed. Shared compilation/runtime locks released; only the test's own image and temporary project were removed.

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