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

Improve warnings about checkout dependencies when locking and upgrading #2335

Merged

Conversation

pablocostass
Copy link
Contributor

Closes #2334.

Any feedback on the wording or how I am getting the checkout dependencies is welcome :)

@@ -123,6 +125,8 @@ format_error({transitive_dependency, Name}) ->
io_lib:format("Dependency ~ts is transitive and cannot be safely upgraded. "
"Promote it to your top-level rebar.config file to upgrade it.",
[Name]);
format_error({checkout_dependency, Name}) ->
io_lib:format("Dependency ~ts is a checkout dependency and cannot be upgraded.", [Name]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
io_lib:format("Dependency ~ts is a checkout dependency and cannot be upgraded.", [Name]);
io_lib:format("Dependency ~ts is a checkout dependency under _checkouts/ and checkouts cannot be upgraded.", [Name]);

Copy link
Collaborator

@tsloughter tsloughter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! I had one word tweaking suggestion but also could you move the list comprehension you use to get all checkout apps to a function to share across the usage in lock and upgrade.

@pablocostass
Copy link
Contributor Author

@tsloughter Neat, I thought of doing the same with the list comprehension but was unsure about how acceptable it was to add new functions to rebar_state. Will commit the changes in a bit :)

@tsloughter tsloughter merged commit 68dc4d2 into erlang:master Aug 28, 2020
@pablocostass pablocostass deleted the 2334_improve_checkout_deps_warnings branch August 29, 2020 08:19
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 this pull request may close these issues.

improve warnings and errors when the dep is a checkout
2 participants