Skip to content

Conversation

@alexarchambault
Copy link
Collaborator

@alexarchambault alexarchambault commented Feb 11, 2026

This gets rid of the need of MILL_LOCAL_TEST_REPO and MILL_USER_TEST_REPO from #5514, and manages those repos solely via the COURSIER_REPOSITORIES environment variable. That way, the repositories from mill-repositories of #6713 automatically get precedence over the former repos.

This addresses issues I've been seeing locally, where some artifacts under ~/.ivy2/local were being used by the JvmWorker, while they shouldn't.

Seems POM files were left over at the root of local repos, like
```text
$ ls out/libs/javalib/worker/publishLocalTestRepo.dest
com/
mill-libs-javalib-worker_3-SNAPSHOT.pom

$ ls out/dist/raw/localRepo.dest
com
mill-contrib-artifactory_3-SNAPSHOT.pom
mill-contrib-buildinfo_3-SNAPSHOT.pom
...
```
@alexarchambault alexarchambault changed the title Ensure local test repo is always taken into account in ITs Ensure local test repo has precedence over local Ivy 2 repo in ITs Feb 11, 2026
Seq("MILL_LOCAL_TEST_REPO" -> localRepo().path.toString)
val repos = Seq(localRepo().path.toNIO.toUri.toASCIIString) ++
Seq(Task.env.getOrElse("COURSIER_REPOSITORIES", "ivy2Local|central"))
Seq("COURSIER_REPOSITORIES" -> repos.mkString("|"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to join/split by | to later join by :, rather than passing them joined by : to begin with?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants