Skip to content

Ability to avoid downloading or checking dependencies that are already present locally #3950

@ghostdogpr

Description

@ghostdogpr

Is your feature request related to a problem? Please describe.
I have a script with a number of dependencies, and every time I run the script, it spends some time downloading or checking dependencies.

Downloading https://jitpack.io/org/scala-lang/scala3-library_3/
Checking https://repo1.maven.org/maven2/org/scala-lang/scala3-library_3/
Failed to check https://repo1.maven.org/maven2/org/scala-lang/scala3-library_3/
...

It can take a long time (more than 1min in CI), but it's useless because all dependencies are already there in the local cache.

Describe the solution you'd like
I would like an option that prevents downloading or checking dependencies that are already in the local cache.

Describe alternatives you've considered
I found --suppress-outdated-dependency-warning and scala-cli config actions true but they only disable the warnings, they don't stop this process of checking all dependencies.
There is also --offline but it would fail in the case where I really don't have the dependency so it's not ideal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependency managementIssues tied to how the CLI manages project dependencies.enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions