Repository navigation
Load a Python module's libraries outside its directory - #40
Merged
Merged
Conversation
eunomie
force-pushed
the
pyinclude-resources
branch
from
October 14, 2026 13:55
bba9c85 to
779a240
Compare
eunomie
force-pushed
the
pyinclude-resources
branch
from
October 15, 2026 16:45
779a240 to
082fe4b
Compare
The first release that loads a module's files through its entrypoint's sources member. The client bindings are regenerated on it. Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
eunomie
force-pushed
the
pyinclude-resources
branch
from
October 15, 2026 19:02
082fe4b to
caace8d
Compare
CI's own engine is older than the floor, so the checks run on the floor release built from its dagger/dagger commit, and the release below it is checked to be refused, as the Go SDK does. Signed-off-by: Yves Brissaud <[email protected]>
eunomie
force-pushed
the
pyinclude-resources
branch
from
October 15, 2026 19:08
caace8d to
789b938
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.
A Python module on its generated entrypoint can now depend on a library outside its directory, such as a package its repository shares. The path source uv already needs is enough:
dagger generatefollows the module's path sources outside its directory, their own path sources, and its workspace members outside it, checked againstuv.lock. A committeduv.lockis locked again with the same directories mounted. Every generated entrypoint now declaressources, which engine v1.0.0-beta.18 calls when it loads the module (dagger/dagger#14693): it returns the module directory and those directories, andtypesandcalltake no workspace. The entrypoint builds fromcurrentModule.contextDirectory: uv finds the library, a change in it gives a new cache key, and the module also runs from a Git repository.This moves the SDK's floor to v1.0.0-beta.18, in its own commit; on an older engine, generation refuses and names the release to pin. A module generated earlier keeps loading on beta.18 until it is generated again.
Generation refuses only what it found and cannot load: an absolute path, a path outside the workspace, a missing or ignored directory, or an entrypoint other than the generated one.
Not covered yet: files the code opens at call time, hatch
force-includesources outside a library, a wheel, source archive or symlink outside the module as a path source (generation refuses it), and pip-mode modules.Independent of other open changes; applies on main.
Tests: unit tests for the renderer and the walk; the e2e
resources-*checks, including a call from Git. CI now pins its engines like the Go SDK:engine-e2ebuilds v1.0.0-beta.18 from its dagger/dagger commit and runs every e2e check on it, and checks that v1.0.0-beta.17 is refused.