Repository navigation
Make the generic legacy runtime setter public - #8
Merged
Merged
Conversation
An SDK can then select a runtime that is not built in, such as its own runtime directory given as a path or a module reference. Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
A typo such as "pyhton" has no "/" and no ".", so the engine looked for a local directory of that name and failed on a missing path instead of an unknown runtime. Signed-off-by: Yves Brissaud <[email protected]>
TomChv
approved these changes
Oct 7, 2026
eunomie
added a commit
to eunomie/python-sdk
that referenced
this pull request
Oct 7, 2026
Writing `[runtime] source` needs ModuleManifest.withLegacyRuntime, public since dagger/sdk-helpers#8, which v1.0.6 carries: its tag peels to 16e5bf2, the merge of that pull request. The dependency names the tag, and dagger.lock records the commit behind it in place of the entries of the pin it replaces. A bare single-word runtime source is the name of a runtime built into the engine there, so what this SDK writes for its own runtime is a module reference. Signed-off-by: Yves Brissaud <[email protected]>
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.
Expose
ModuleManifest.withLegacyRuntime(runtime, moduleSource, engineVersion)so an SDK can select a runtime that is not built in.The runtime source is a built-in name, a path relative to the manifest directory, or a module reference such as
github.com/dagger/python-sdk/runtime@v1. It resolves like a dependency source in the engine.validateno longer rejects a non-built-in runtime when no manifest was loaded. The source goes through the same relative-path rule as dependency sources, so an absolute path still raises. A typo such aspyhtonnow fails in the engine rather than in the helper.lock: trueonly a pin already carried by a loaded manifest for the same source is kept. Put@<commit>in the source to lock it.writesCustomLegacyRuntime,composesCustomLegacyRuntime,keepsLoadedCustomLegacyRuntime.Needed by dagger/python-sdk#33 for
--legacy-runtime. Av1.0.6tag is needed after merge.