-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add ensure option to cargo install #6595
Add ensure option to cargo install #6595
Conversation
r? @nrc (rust_highfive has picked a reviewer for you, use r? to override) |
Thanks for the PR! I think that this should be the default behaviour and the current behaviour is wrong. I would like to change the behaviour and not require the A wrinkle is that the current behaviour is specified by an RFC, so technically we should have an RFC to amend that. However, that seems like unnecessary process to me, but if anyone thinks we should please register a concern. I note that changing the current behaviour is not backwards incompatible (technically) because it only affects situations which would give an error today. So, @rfcbot fcp merge and to be precise, I'm proposing that cc #2082 |
Trying again... @rfcbot fcp merge |
Team member @nrc has proposed to merge this. The next step is review by the rest of the tagged team members: Concerns:
Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
I think there might be some edge cases to consider, but I think those can be tackled later, or during implementation/PR review. Just off the top of my head:
|
@ehuss in both those examples, isnt the current behavior to error? It does seem like some scenarios we should not require |
Nick is proposing doing more than just changing the error code. " |
b4988f8
to
5544814
Compare
It seems that there was a little time, this is still under discussion, is not it? |
☔ The latest upstream changes (presumably #6798) made this pull request unmergeable. Please resolve the merge conflicts. |
I believe that #6798 was intended to subsume this, so closing. |
Description
Add 'ensure'opsion to cargo_install
Options to prevent errors when crate is already installed.
Background
#6485
I think that this issue is made up of two things.
This PR solves the first one.
I'll add the second correspondence later.
I ended up using
std :: process :: exit
. I would like to ask a review if this is OK