Repository navigation
fix(go): bind same-repo clients by path in git workspaces - #73
Merged
Merged
Conversation
A Git workspace resolved them as Git sources, so their clients embedded the workspace URL and commit, and regeneration never matched the commit. Signed-off-by: Yves Brissaud <[email protected]>
eunomie
added a commit
that referenced
this pull request
Oct 20, 2026
A GitHub workspace address has no scheme while the clone URL of its modules has https://, so the prefix check of #73 never matched on github.com and those clients still embedded the workspace URL and commit. Signed-off-by: Yves Brissaud <[email protected]>
This was referenced Oct 23, 2026
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.
What
When a workspace is opened from Git (
dagger -W <repo>.git@<sha>), theengine reports a client's target in the same repository as a Git source.
The generated client then embedded the repository URL and commit, so it
never matched the committed output and the stale check failed on every
commit.
go-sdk.dang now passes the workspace address and commit for Git targets.
The codegen binds a target as a local module by path when it is in the same
repository, at the workspace commit, with the same selector. Source links
become repo-relative, as local generation writes them.
How verified
rewrote the client; now it is empty at
@<sha>and with no selector, andlocal generate has no changes.
Not covered
Walkthrough: https://gistpreview.github.io/?8361e294035c40f0ca23b265500ce55c