Skip to content
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

Source incompatibilities between Mill 0.11.0-M8 and -M9 #2506

Closed
lefou opened this issue May 6, 2023 · 0 comments · Fixed by #2507
Closed

Source incompatibilities between Mill 0.11.0-M8 and -M9 #2506

lefou opened this issue May 6, 2023 · 0 comments · Fixed by #2507
Milestone

Comments

@lefou
Copy link
Member

lefou commented May 6, 2023

import mill.define.Input can no longer be resolved. This results in some hassles when cross-compiling against multiple Mill versions.

 [info] compiling 4 Scala sources to /home/runner/work/mill-vcs-version/mill-vcs-version/out/core/0.11.0-M8-19-514e01/compile.dest/classes ...
[warn] -target is deprecated: Use -release instead to compile against the correct platform API.
Error:  /home/runner/work/mill-vcs-version/mill-vcs-version/core/src/de/tobiasroeser/mill/vcs/version/VcsVersion.scala:5:8: object Input is not a member of package mill.define
Error:  import mill.define.{Discover, ExternalModule, Input, Module}
Error:         ^
Error:  /home/runner/work/mill-vcs-version/mill-vcs-version/core/src/de/tobiasroeser/mill/vcs/version/VcsVersion.scala:19:17: not found: type Input
Error:    def vcsState: Input[VcsState] = T.input { calcVcsState(T.log) }
Error:                  ^
[warn] one warning found
Error:  two errors found
1 targets failed
core[0.11.0-M8-19-514e01].compile Compilation failed
Error: Process completed with exit code 1.

Solution:

Keep some deprecated forwarders in mill.define package.

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 a pull request may close this issue.

1 participant