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
Use actual mill version in predef #1307
Conversation
Looks like this is blocked until bloop integration with mill is fixed. I.e. until com-lihaoyi/mill#756 is merged |
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 the contribution! I was actually hoping for something like this. LGTM
The tests are failing though
@jodersky any idea what is happening here? |
I believe this is because com-lihaoyi/mill#756 is merged, but it will need to be released before this will work as expected. |
The fix is currently released in a Mill's snapshot, so changing to: override def version: String = "0.5.9-6-484657" fixes the issue immediately. |
Indeed. I think the best course of action is to wait until a new "official" mill release is out (I reckon it will be 0.5.10). Once it's out I'll update the minimum version in this PR. |
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.
Let's wait for the stable Mill version.
As of recent versions of mill, the `$ivy` importers support substituting `$MILL_VERSION` with the current version of mill. The changes presented here modify the predef import to use the literal `$MILL_VERSION` instead of a the value read from mill's version file. While both these values are usually equivalent, they can differ when using a local mill wrapper script (e.g. when developing and testing mill locally). In essence, the changes ensure that the correct bloop plugin will always be used.
c8def0c
to
8cb426d
Compare
A new stable release of mill is out, I updated the version settings and pushed again. Hopefully this time the build will pass. |
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.
Awesome, this looks good. LGTM!
As of recent versions of mill, the
$ivy
importers supportsubstituting
$MILL_VERSION
with the current version of mill.The changes presented here modify the predef import to use the literal
$MILL_VERSION
instead of a the value read from mill's versionfile. While both these values are usually equivalent, they can differ
when using a local mill wrapper script (e.g. when developing and
testing mill locally).
In essence, the changes ensure that the correct bloop plugin will
always be used.