Skip to content

CLI: support passing a remote URL as file argument #6957

Closed

Description

@shykes

Problem

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.

Activity

  1. added this to the v0.10.x milestone on Mar 27, 2024
  2. helderco commented on Mar 27, 2024

    @helderco
    Contributor
  3. reopened this on Mar 27, 2024
  4. shykes commented on Mar 27, 2024

    @shykes
    ContributorAuthor

    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.

  5. helderco commented on Mar 28, 2024

    @helderco
    Contributor

    Oh, sorry! I actually read URL as Git! 😅

    That's a good idea, and easy to add 👍

  6. added
    area/cli
    on Apr 3, 2024
  7. removed
    area/cli
    on May 31, 2024
  8. helderco commented on Jun 21, 2024

    @helderco
    Contributor

    Hmm... both http:// and https:// are valid git schemes. How would you know if you want dag.Git or dag.Http?

  9. helderco commented on Jun 21, 2024

    @helderco
    Contributor

    Some tools prefix the scheme with git+, like git+https://github.com/... (example).

  10. jedevc commented on Jun 24, 2024

    @jedevc
    Contributor

    FYI, this is related to #7609 as well, since it also has different schemes.

  11. helderco commented on Jul 4, 2024

    @helderco
    Contributor

    @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.

  12. grouville commented on Jul 4, 2024

    @grouville
    Member

    @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.

    Yes sure 🙏 👌

  13. added
    area/cli
    on Jul 18, 2024
  14. helderco commented on Jul 19, 2024

    @helderco
    Contributor

    Update: this is blocked on standardizing URI references (git, http, other vcs…) in:

  15. locked and limited conversation to collaborators on Mar 24, 2026
  16. converted this issue into a discussion #12404 on Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cli

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions