Repository navigation
Conversation
baseImage takes a Container, so callers can pass any container, including one built or wired from another module. baseImageAddress stays as a deprecated alias: when set, the base container is container.from(baseImageAddress). Setting both is an error.
TomChv
force-pushed
the
base-image-container
branch
from
November 25, 2026 17:02
6251fe3 to
51c9781
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace the
baseImageAddress: String!constructor argument withbaseImage: Container. AContainerargument is more powerful: callers can pass any container, including one built by another module or wired with adag://address in workspace settings. An image reference such asbaseImage = "node:25-alpine"still works as a setting or CLI flag.For compatibility,
baseImageAddress: String!stays, deprecated, as sugar on top ofbaseImage:baseImageAddressis set, the base container iscontainer.from(baseImageAddress).baseImageandbaseImageAddressare mutually exclusive. Setting both is an error.node:25-alpine, as before.The default of
baseImageAddresschanges from"node:25-alpine"to""(unset), because a non-empty default makes it impossible to detect a conflict withbaseImage. Callers that set it explicitly see no change.Note: the argument has
@deprecatedin the source, but the engine's Dang runtime does not pass argument deprecation to the module schema yet, so the docstring also says "Deprecated".Tests
dagger call -m . <args> project --path tests/hello_world list:--base-image node:24-alpine--base-image-address node:24-alpinebaseImage and baseImageAddress are mutually exclusive: set only baseImage--base-image registry.invalid/nope:1--base-image-address registry.invalid/nope:1