-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
No warning/error/abort if version does not exist/is yanked #113
Comments
That definitely is a missing check! |
Well, left a comment a bit too late as you've already merged the branch |
What comment? I merged with your suggestion of using semver, if you were referring to that |
Can't seem to create a link to the comment, but it was about the return of My question was if that means that the exit code of |
That's only if |
I guess the second part of this issue hasn't been fixed: if the crate is yanked, it won't warn or do anything else but will install. That is:
|
FYI about my thing above gitpod /workspace/cargo-binstall (feature/remove-git-index) $ cargo binstall cargo-watch --version 8.1.0 --dry-run
12:26:51 [INFO] Installing package: 'cargo-watch'
12:26:52 [WARN] You specified `--version 8.1.0` but the package resolved that to '8.1.1', use `=8.1.0` if you want an exact match
12:26:52 [WARN] Installation cancelled
gitpod /workspace/cargo-binstall (feature/remove-git-index) $ echo $?
0 |
I dont know about this one but the others should be fixed in the meantime |
I guess I should have been clearer but all those examples I gave were behaviour I expected as correct and were not things to be fixed in my mind. That is, the remaining issue was:
So See #125 for more discussion on the rest of it. |
I just started out trying to create scripts to download a specific version of a package. During testing, I found out that the following command will succeed and install another version than specified.
I understand that it's looking for
^8.1.0
but my 2 cents:npx
oryarn add
or in case of--no-confirm
abortError: No matching version for requirement: '=8.0.1'
in line with othersI know I'm a bit picky on versioning and there is a reason semver versioning exists but there is also a reason why they gave it multiple digits to use. If I'm searching for some milk in a supermarket, I do not expect to leave with a yogurt just cause they are similar
Happy to hear opinions and RTFMs
The text was updated successfully, but these errors were encountered: