-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
RFC: Precise Pre-release Deps #3263
Conversation
2bc7c7e
to
a7554f1
Compare
a827a64
to
471b7e8
Compare
46e8542
to
3254a5e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for working on this, would be great to see some progress here.
That said, be aware that the Cargo team recently announced that they don't have a lot of time/energy to work on new features.
That said, if this is accepted I would be willing to implement it in Cargo.
2f0b059
to
14f20e9
Compare
Thank a lot for the good advice, I marked resolved obvious thing but let you mark as resolve for other points if you think there are resolve. Or just make another review ^^. I think I improve a lot the RFC, for mistake spelling in English I suggest to send me a PR on my fork, cause I expect there is a lot of them. Or send me the fixed file and I will fix the PR myself. |
d2a0f18
to
78f0e80
Compare
637fcc8
to
afe1d7c
Compare
Related RFC: https://internals.rust-lang.org/t/rfc-rust-semver-2-alpha/16632 if you are interested. If you want to post a comment to critic the linked RFC, please, use the forum, thanks in advance. This thread is more focus for the RFC: Precise Pre-release Deps, however you can comment here about on what solution is the better in your opinion. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
The Cargo team discussed this RFC, and we think the following may be a viable path forward:
There are some risks and drawbacks with this approach that may need some mitigations:
|
@ehuss my main concern with requiring an operator is scalability as it can't be automated. Take cargo-release of clap. I can make |
Yea, that's another drawback where the switch is lossy. A few thoughts on that:
|
As this conversation is broader than this RFC, I'm going to reply over at rust-lang/cargo#2222 |
We discussed this at length in today's @rust-lang/cargo meeting. We felt that while the current pre-release behavior is really not ideal, changing the interpretation of Right now, our current inclination is to add a lint on pre-release dependencies without an operator, hinting that people might want to use Meanwhile, we're going to postpone this. @rfcbot postpone |
Team member @joshtriplett has proposed to postpone this. The next step is review by the rest of the tagged team members: No concerns currently listed. 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. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period, with a disposition to postpone, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. This is now postponed. |
Rendered
Internals thread
I think there is two major solution either:
1.0.0-alpha.0
will be interpreted as=1.0.0-alpha.0
by cargo instead of^1.0.0-alpha.0
.1.0.0-alpha.0
would never match any other requirement that exact same version. That mean that^1.0.0-alpha.0
could only match1.0.0-alpha.0
version. This have the major benefit to not introduce inconsistency with pre-release and release in Cargo resolve. It's also make a lot of sense why pre-release would have any compatibility expectation ? (attempt to implement it Stargateur/semver@c7098f7)The RFC 3266 is some sort of alternative much deeper solution.