scala-cli icon indicating copy to clipboard operation
scala-cli copied to clipboard

Setting repositories using config repositories.default affects also local sbt

Open jiramares opened this issue 1 year ago • 2 comments

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.

jiramares avatar Oct 18 '24 12:10 jiramares

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

Gedochao avatar Oct 18 '24 12:10 Gedochao

But environment variable COURSIER_REPOSITORIES affect only coursier in scala_cli

jiramares avatar Oct 18 '24 12:10 jiramares