Repository navigation
feat: add contextual git - #10847
feat: add contextual git#10847
Conversation
a22b4e8 to
0de9ec0
Compare
7cfb282 to
5741762
Compare
|
Love the feature but a little worried about a proliferation of What would happen if we just made this |
This comment was marked as resolved.
This comment was marked as resolved.
I'd be a big fan. But for consistency, we'd probably want to make |
|
Hm, one reason to have a separate But you can't do that with Maybe there's a clever solution here? |
I was wondering if the work on standardized "object address" #10770 could help with that? Since it will give us a standardized way to load various objects from a string representation... Maybe that's a motivation to revisit the language discrepancy problem? |
|
I found the original discussion that led to |
|
@shykes, as discussed (in discord), updated to re-use |
4a5e744 to
bc898dc
Compare
|
Also updated to include This can be different from the contextual arg in the case of blueprints. The upstream module will always be at |
c26d07a to
130f97a
Compare
bb42611 to
463fd43
Compare
|
Was chatting live with @jedevc about this; the relationship between This means that even if you specify a branch like Example scenario:
In that scenario, at step 3 the function calls will not actually execute and instead be cached. So if you were expecting the function call to run again and the I don't think this is the end of the world now that I type it out, but it probably will result in some confusion. If there's no immediate need for |
78087d8 to
5365e4a
Compare
|
Mm, good point. I'm gonna hold off on adding that method just for now - I think just having contextual git should be fine. I've dropped |
TomChv
left a comment
There was a problem hiding this comment.
Left a small review, code lgtm
5365e4a to
30b1076
Compare
Also use contextual dirs. Signed-off-by: Justin Chadwell <[email protected]>
This is *already* done in parsePragmaComment now. Signed-off-by: Justin Chadwell <[email protected]>
And also track the module source git refs in more detail, this is so that we can use these for contextual git in a little moment. Signed-off-by: Justin Chadwell <[email protected]>
30b1076 to
aa6f2dd
Compare
Signed-off-by: Justin Chadwell <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
aa6f2dd to
8c4e214
Compare
|
I retriggered the failed job, if they green after I'll merge that PR :) |
Fixes #8520. Follow-up to #10195.
This allows a module to get git information about itself - it can do this through the core
Gittype.The
defaultPathannotation is extended to allow setting a default value for aGitRepository/GitRefparameter. If the caller does not provide a value, the method uses the specified default - either a local path (e.g.,"./.git") or a remote repository URL (e.g.,"https://github.com/dagger/dagger.git").