You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve how repos from required modules are downloaded (i.e., make it more modular) #2511
When downloading modules from cue.mod/dagger.mod, we have a regex that tries to match a repo prefix and path suffix from a URL. This has limited capability. It works well enough if you have .git to split them, or if it's GitHub, though.
As for authentication, it assumes a public repo (https) unless a --private-key argument is provided, in which case ssh is used. We need more authentication methods.
We could also benefit from downloading from import path, instead of just URL.
Solution
Make this more modular to be easier to add capabilities later:
Find URL to fetch:
Is it a URL? VCS?
Is it an import path? Vanity URL?
Download repo:
Try known vcs providers like Go does
Based on those, is downloading a zip available instead of a clone (e.g., GitHub)?
Activity
helderco commentedon Dec 22, 2022
Closing. More context in parent issue: #2163.