-
Notifications
You must be signed in to change notification settings - Fork 637
Upgrade to Mill 1.0.0 #4972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Mill 1.0.0 #4972
Conversation
c74a32f
to
563538d
Compare
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.
LGTM
I don't understand the actual mill
changes, however, I reviewed for consistent application of mechanical changes.
s"$previousTagNoV+$commitsSincePreviousTag-$currentCommit-SNAPSHOT" | ||
} | ||
} | ||
} |
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.
Not actionable in this PR: doing a simpler git --describe --tag
as opposed to rolling our own here would be good. Granted, this differs slightly from your format as it adds the g
before the $currentCommit
and appends -SNAPSHOT
:
# git describe --tag
v7.0.0-RC2-4-gece296e71
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 prefer our versioning to the default output of git describe
as it more closely matches what other Scala projects do.
That being said I think a regex to convert the output of git describe --tag
would perhaps be simpler.
def scalaLibraryIvy = v.scalaLibrary(crossScalaVersion) | ||
def scalaReflectIvy = v.scalaReflect(crossScalaVersion) | ||
def scala2CompilerIvy: Dep = v.scala2Compiler(crossScalaVersion) | ||
def scala3CompilerIvy: Dep = v.scala3Compiler(crossScalaVersion) | ||
def scalaLibraryMvn = v.scalaLibrary(crossScalaVersion) | ||
def scalaReflectMvn = v.scalaReflect(crossScalaVersion) | ||
def scala2CompilerMvn: Dep = v.scala2Compiler(crossScalaVersion) | ||
def scala3CompilerMvn: Dep = v.scala3Compiler(crossScalaVersion) |
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.
Thanks for updating the method names even though this was not necessary. 👍
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.
FWIW it was sort of a happy accident, I updated these with sed
😂
Mill 1.0.0 is here 🎉. We badly need this so we can publish Snapshots to Maven Central.
Lots to be aware of for Chisel developers:
ivy
has been replaced withmvn
(which makes more sense)Agg
is gone, just useSeq
BuildCtx.watchValue
due to sandboxingVcsVersion
has not yet been published for Mill 1.0.0 (not even the RCs) so I just re-implemented itdocs
is lousy with doing things outside of theout/
folder which is bad, but rather than tweaking all of that, I just guarded withBuildCtx.withFilesystemCheckerDisabled
, we should try to remove those.cross
business but I will leave that for follow on work.Contributor Checklist
docs/src
?Type of Improvement
Desired Merge Strategy
Release Notes
No SNAPSHOT publishing yet, that will be follow on work. See the Mill 1.0.0 changelog.
Reviewer Checklist (only modified by reviewer)
3.6.x
,5.x
, or6.x
depending on impact, API modification or big change:7.0
)?Enable auto-merge (squash)
and clean up the commit message.Create a merge commit
.