Skip to content

//> using file directives should allow URLs and git repository paths #1328

@benwbooth

Description

@benwbooth

It would be useful if the //> using file directives could accept URL and git repository paths in addition to local files. This would allow users to refer to their scala-cli module scripts from their executable scripts, no matter what paths the executable scripts were stored in:

//> using file "git+ssh://git@gitlab.com/benwbooth/scala-scripts.git?dir=lib/scriptdir/my-script.sc"

or

//> using file "https://raw.githubusercontent.com/benwbooth/scala-scripts/lib/scriptdir/my-script.sc"

Deno has a similar feature for pulling in dependencies from URLs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions