Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Scala3] Add cross build support to Mill (#4492)
Refactor Mill sources
- Loading branch information
7ade4df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adkian-sifive: I think this commit broke publishing or broke something with SiFive's internal flows using Chisel.
If I try to use this published version, the internal flows fail to find the following file in the internal artifactory mirror:
Do you have any idea what is going on with this?
CC: @jackkoenig
7ade4df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, this commit did something weird to the
pom
. Specifically, the entry for the macros dependency seems off. With this change, thepom
dependency entry looks like this (https://s01.oss.sonatype.org/content/repositories/snapshots/org/chipsalliance/chisel_2.13/7.0.0-M2+174-7ade4dff-SNAPSHOT/chisel_2.13-7.0.0-M2+174-7ade4dff-SNAPSHOT.pom):Previously, this looked like (https://s01.oss.sonatype.org/content/repositories/snapshots/org/chipsalliance/chisel_2.13/7.0.0-M2+173-d660f47a-SNAPSHOT/chisel_2.13-7.0.0-M2+173-d660f47a-SNAPSHOT.pom):
7ade4df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pushed a fix to main: 59a9904
It's really interesting that this doesn't break standard Coursier dependency resolution (the latest SNAPSHOTs work just fine in normal Scala flows). I believe this is because any String is a valid version in Maven and depending on the order in which you fetch dependencies and resolve versions, you may identify that
2.<whatever>
is a higher version thanmacros[2.13.15].scalaVersion
and thus never try to fetch this "version" of scala-reflect. Clearly our internal flow does things in a different order.