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
CLI: support passing a remote URL as file argument #6957
When calling a Dagger Function from the CLI, I can pass the path of a local file as an argument of type File, but not the URL of a remote file. This would be very useful.
Solution
Add support for remote URLs when passing arguments of type File from the CLI.
No, I think this is different. #6769 allows passing a file from a git repo - which is indeed very useful. But I want to pass a regular http url to a regular file. This would be the equivalent of a dag.HTTP call by the CLI. And that unfortunately does not seem to work.
Hmm... both http:// and https:// are valid git schemes. How would you know if you want dag.Git or dag.Http?
Activity
helderco commentedon Mar 27, 2024
This has already been done in:
shykes commentedon Mar 27, 2024
No, I think this is different. #6769 allows passing a file from a git repo - which is indeed very useful. But I want to pass a regular http url to a regular file. This would be the equivalent of a
dag.HTTPcall by the CLI. And that unfortunately does not seem to work.helderco commentedon Mar 28, 2024
Oh, sorry! I actually read URL as Git! 😅
That's a good idea, and easy to add 👍
helderco commentedon Jun 21, 2024
Hmm... both
http://andhttps://are valid git schemes. How would you know if you wantdag.Gitordag.Http?helderco commentedon Jun 21, 2024
Some tools prefix the scheme with
git+, likegit+https://github.com/...(example).jedevc commentedon Jun 24, 2024
FYI, this is related to #7609 as well, since it also has different schemes.
helderco commentedon Jul 4, 2024
@grouville, can you own this? It's easy to do but requires a decision on the scheme and consistency with the other changes you've been making.
grouville commentedon Jul 4, 2024
Yes sure 🙏 👌
helderco commentedon Jul 19, 2024
Update: this is blocked on standardizing URI references (git, http, other vcs…) in:
link: dagger#6957 and dagger#6944
link: dagger#6957 and dagger#6944