-
Notifications
You must be signed in to change notification settings - Fork 512
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
"Newly added dep is locked at a lower level" (also) reported when upgrade command is issued #2827
Comments
Yeah, calling upgrade depends on the lock command. There is currently no way for rebar3 to silence this, as individual commands aren't aware of those that would follow them in the chain, unfortunately. I'm not quite sure there's even a way to make this work without more drastically changing the rebar3 task model. |
We could "force" Is the whole chain pre-calculated or "on the go"? In any case, I guess it would be strange for the "future" to affect the "past". What about if |
we can't "force lock to know about upgrade" right now, because the way it is invoked comes from higher up in the rebar3 abstraction mechanism (a top level handler gets the schedule from the task entered by the user, and it expands the dependency chain, then calls them one after the other by carrying state from one to the next). Any mechanism to teach Generally we'd advise people against making plugins or tasks that behave differently based on what follows them, because it messes with some forms of repeatability. Also, no arguments are ever passed from the demanded task to previous ones, which ends up implicitly getting users to store all relevant project preferences in rebar.config as a nice side-effect. |
Thanks for the detailed explanation. Closing as it doesn't seem this one has an easy solution, and it's mostly quality of life, not a huge improvement. |
Pre-Check
Environment
rebar3
Current behaviour
Getting
===> Newly added dep ... is locked at a lower level. If you really want to unlock it, use 'rebar3 upgrade ...'
even if I upgrade (for the first time only).
This is probably because the analysis that leads to the message precedes the upgrade operation, but it's still kinda misleading.
Expected behaviour
No message when
upgrade
is issued.The text was updated successfully, but these errors were encountered: