-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(cargo-update): --precise
accept arbitrary git revisions
#13250
Changes from 2 commits
4be3614
2734097
ce551d7
093f7c8
e6f2dfd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -757,13 +757,11 @@ fn update_with_shared_deps() { | |
.with_status(101) | ||
.with_stderr( | ||
"\ | ||
[UPDATING] git repository [..] | ||
[ERROR] Unable to update [..] | ||
|
||
Caused by: | ||
precise value for git is not a git revision: 0.1.2 | ||
|
||
Caused by: | ||
unable to parse OID - contains invalid characters; class=Invalid (3) | ||
revspec '0.1.2' not found; class=Reference (4); code=NotFound (-3) | ||
Comment on lines
+760
to
+764
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The documentation only says SHA and doesn't specify if shorts are allowed. I almost wonder if the reference to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It worked in 1.45.0 before #8363 merged and was documented since then. The doc mentions git revisions, which could be like anything. This could be considered as an old regression that nobody reported until recent. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. BTW the test was added to prevent panic when revision is missing: 1ad6f78. |
||
", | ||
) | ||
.run(); | ||
|
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.
Could you add a test for when a tag looks like an Oid?
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.
Added in e6f2dfd