scala-cli
scala-cli copied to clipboard
Setting repositories using config repositories.default affects also local sbt
Scala CLI version: 1.5.1
Setting default repositories using command scala-cli --power config repositories.default ivy2local https://out.server/repos/maven-proxy affect also repositories for sbt. It is expected behaviour.
It should change repositories only for scala-cli as performs setting environment variable COURSIER_REPOSITORIES.
Likely caused by the same thing as:
- https://github.com/VirtusLab/scala-cli/issues/3044
The repository config is shared between scala-cli and coursier, and SBT uses coursier under the hood as well... 😕
But environment variable COURSIER_REPOSITORIES affect only coursier in scala_cli