Repository navigation
Conversation
A workspace opened from a git ref resolves them as git sources pinned to its commit, so their generated clients never matched the checkout's. Signed-off-by: Yves Brissaud <yves@dagger.io>
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.
dagger generate -W <git ref>resolves the workspace's own./depclients as Git sources.client_memberschose the binding from that kind alone, soclients/<name>/target.rbgot the Git URL and commit asREF/PINinstead of the workspace path.A Git client is now bound by path when it belongs to the workspace: pin is the workspace commit, address and ref name the same repository (scheme ignored), selectors agree. Same rule as python-sdk #64/#65 and go-sdk #73/#78/#79, including the engine beta.20
<clone>#<version>:<subpath>form. A failed commit lookup keeps the Git binding.Tests: 225 unit tests, RuboCop and Steep clean;
git-workspace-generate-checkfails on the old code (target.rb +2 -2) and passes on beta.20 (and on beta.19, the floor, before the last review round).Not covered: a
#-form workspace address, commit-SHA and subdirectory workspaces end to end, aliased selectors. On beta.20 the committed core clients andCORE_DIGESTare already stale, independent of this change.Explain-changes: https://gistpreview.github.io/?5920bebd7d94c69535dd6c03875b252a