Skip to content

can not use explict repo in offline mode when coursier cache has only POM file #3021

@bishabosha

Description

@bishabosha

Version(s)
1.4.0 (problematic in scala 3.5.0-RC3 release when installing from cs install scala:3.5.0-RC3)

Describe the bug
in offline mode, If the coursier cache is only partially populated by POM, and no jar file (such is the state after running the cs install command) - then any explicitly added local repository is ignored and classpath resolution fails

To Reproduce
follow steps in coursier/coursier#3024

Expected behaviour
I have passed an explicit repo in offline mode, I expect to resolve the classpath from there, the fact that coursier complains underneath is a leaky abstraction.

Metadata

Metadata

Assignees

Labels

SIP-46All the issues related to SIP-46 to turn Scala CLI into the official scala runner command.blocked upstreamIssues and changes blocked by something in an external project.bugSomething isn't workingcoursierIssues tied with coursier integration.installationEverything related to installing the CLI itselfisolated environmentsIssues tied with running the CLI in isolated (or corporate) environments.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions