-
-
Notifications
You must be signed in to change notification settings - Fork 354
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
Let prepareOffline accept a all
flag
#1591
Conversation
8f4d232
to
6e3181b
Compare
Any opinion about the solution and the incompatible change? @lolgab |
This should support more fine-control in inheriting modules. Also, fetch only essential dependency in Java and Scala module, and keep the full fetch behint hints: all, source, ...
6e3181b
to
0cdd2ac
Compare
Maybe, a cleaner but less flexible approach would be to just add a boolean |
Then, it's up to the those modules with special needs to provide additional targets |
Yeah I suppose it depends on how much flexibility we expect to need; either a small set of flags if we don't expect to need to add much more, or the |
all
flag parameter
all
flag parameterall
flag
@lihaoyi I changed the implementation to accept a simple |
This should support more control in inheriting modules. Also, fetch only essential dependencies in Java and Scala modules, and keep the full fetch behind an `all` flag, which can be set as parameter. This is a binary-incompatible change and I have no idea how to preserve compatibility. Although I could keep the old signature and just forward to the newer, Loading plugins that also inherit older `OfflineSupportModule`s seem to fail nevertheless. Also I think Mill isn't checking for multiple commands with the same name, so I fear just because it works on my machine, it may still lead to some failures for others. Only fix would be to invent a new name for the command (and deprecate the old). As Mill 0.10.x is binary-incompatible anyways, I think this one should be ok. Pull request: com-lihaoyi#1591
This should support more control in inheriting modules.
Also, fetch only essential dependencies in Java and Scala modules,
and keep the full fetch behind a
all
flag, which can be set as parameter.This is a binary-incompatible change and I have no idea how to preserve compatibility.
Although I could keep the old signature and just forward to the newer,
Loading plugins that also inherit older
OfflineSupportModule
s seem to fail nevertheless.Also I think Mill isn't checking for multiple commands with the same name,
so I fear just because it works on my machine, it may still lead to some failures for others.
Only fix would be to invent a new name for the command (and deprecate the old).
As Mill 0.10.x is binary-incompatible anyways, I think this one should be ok.
Fix #1576