Repository navigation
fix(go): ignore the URL scheme when matching same-repo clients - #78
Merged
Merged
Conversation
A GitHub workspace address has no scheme while the clone URL of its modules has https://, so the prefix check of dagger#73 never matched on github.com and those clients still embedded the workspace URL and commit. Signed-off-by: Yves Brissaud <[email protected]>
eunomie
marked this pull request as ready for review
October 20, 2026 13:56
eunomie
added a commit
to eunomie/dagger
that referenced
this pull request
Oct 20, 2026
dagger/go-sdk#78 matches same-repo clients regardless of the URL scheme, so a GitHub workspace now binds them by path like a local checkout. Signed-off-by: Yves Brissaud <[email protected]>
eunomie
added a commit
to eunomie/dagger
that referenced
this pull request
Oct 21, 2026
dagger/go-sdk#78 matches same-repo clients regardless of the URL scheme, so a GitHub workspace now binds them by path like a local checkout. Signed-off-by: Yves Brissaud <[email protected]>
eunomie
added a commit
to eunomie/dagger
that referenced
this pull request
Oct 22, 2026
dagger/go-sdk#78 matches same-repo clients regardless of the URL scheme, so a GitHub workspace now binds them by path like a local checkout. Signed-off-by: Yves Brissaud <[email protected]>
eunomie
added a commit
to eunomie/dagger
that referenced
this pull request
Oct 22, 2026
dagger/go-sdk#78 matches same-repo clients regardless of the URL scheme, so a GitHub workspace now binds them by path like a local checkout. 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.
What
Compare the workspace address and a module's clone URL without the URL scheme when matching same-repo clients.
Why
A GitHub workspace address has no scheme (
github.com/o/r@sha), but its modules' clone URL hashttps://. #73's prefix check never matched on github.com, so same-repo clients still embedded the workspace URL and commit, andgo-sdk/generate/stalecould never pass.How verified
ModuleGraphQLClient(connection, "https://github.com/dagger/dagger/.dagger/modules/go@<merge sha>", "<merge sha>")instead of"/.dagger/modules/go", "".TestWorkspaceModuleGitHub row:falsebefore,trueafter; the other-host row staysfalse.go test ./...andgo vetpass incmd/dagger-go-sdk-codegen.Not covered
End to end on a GitHub workspace, which always loads go-sdk from
main: after merge, bump the pin in dagger/dagger#14714 and rerun the check.