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

Unlock command with no package name is a bit drastic #2583

Closed
Vagabond opened this issue Jun 21, 2021 · 9 comments
Closed

Unlock command with no package name is a bit drastic #2583

Vagabond opened this issue Jun 21, 2021 · 9 comments
Labels
beginner enhancement new behaviour or additional functionality

Comments

@Vagabond
Copy link
Contributor

Current behaviour

rebar3 unlock with no parameters deletes the entire lockfile.

Expected behaviour

Rebar should require some explicit flag like --all to unlock all dependencies and error out if no arguments or parameters are supplied.

@ferd
Copy link
Collaborator

ferd commented Jun 21, 2021

Seems reasonable. Would it make sense (or be surprising) to change the same behaviour for rebar3 upgrade which currently takes an empty option to mean upgrade all the deps ? It'd make sense to keep that stuff symmetric.

@Vagabond
Copy link
Contributor Author

Yes, I think so.

@ferd ferd added enhancement new behaviour or additional functionality beginner labels Jun 22, 2021
@paulo-ferraz-oliveira
Copy link
Contributor

paulo-ferraz-oliveira commented Jun 23, 2021

@ferd, might I also suggest we apply the same to plugins upgrade in that sense?

And by "change the same behaviour" you mean add a flag as suggested by @Vagabond, right?

@ferd
Copy link
Collaborator

ferd commented Jun 23, 2021

yeah, these should ideally all line up.

@joshrotenberg
Copy link
Contributor

@ferd, might I also suggest we apply the same to plugins upgrade in that sense?

And by "change the same behaviour" you mean add a flag as suggested by @Vagabond, right?

In keeping with the "make them all work the same" theme, it looks like plugins upgrade only accepts a single plugin argument to upgrade whereas unlock and upgrade both accept a comma separated list. Thoughts on also adding that functionality to plugins upgrade (either as part of my incoming PR or as a separate one)?

@ferd
Copy link
Collaborator

ferd commented Nov 3, 2021

updating all plugins at once might be sort of tricky (there's also rebar3 as global plugins upgrade), but if we can make the --all flag work, that's good with me.

@ferd
Copy link
Collaborator

ferd commented Nov 26, 2021

Alright, sorry for the delays, I'll be merging all PRs at once so master branch is uniform for everyone.

@ferd
Copy link
Collaborator

ferd commented Nov 26, 2021

Alright, I think I got them all. Thanks a whole lot for the contributions, including all docs! That's very appreciated.

@ferd ferd closed this as completed Nov 26, 2021
@weiss
Copy link

weiss commented Dec 10, 2021

Rebar should require some explicit flag

To be honest, I'm not fully convinced fixing the problem that rebar3 upgrade performs an upgrade really warrants a backward-incompatible change 😜

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginner enhancement new behaviour or additional functionality
Projects
None yet
Development

No branches or pull requests

5 participants