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

Download specific package version with Semver is awkward #204

Open
calvinrp opened this issue Sep 27, 2023 · 3 comments
Open

Download specific package version with Semver is awkward #204

calvinrp opened this issue Sep 27, 2023 · 3 comments

Comments

@calvinrp
Copy link
Collaborator

Currently, if you want to download a specific version the semver syntax is kind of awkward. Happy to close this issue, if others are OK with the current behavior.

Example:
warg download namespace:package-name --version 0.1.0

This will match ^0.1.0 instead of =0.1.0.

In order to download the exact match:
warg download namespace:package-name --version \=0.1.0

= needs to be escaped with \

@lann
Copy link
Collaborator

lann commented Sep 27, 2023

= needs to be escaped with \

What shell do you use? zsh sees = and \= as identical

@lann
Copy link
Collaborator

lann commented Sep 27, 2023

Anyway, I would agree that --version 0.1.0 ought to mean =0.1.0. We could check if the first char is a digit and prepend =, which would still let you do --version '^0.1.0' to get the current behavior.

@calvinrp
Copy link
Collaborator Author

= needs to be escaped with \

What shell do you use? zsh sees = and \= as identical

Using zsh on MacOS. Doesn't work for me without escaping.

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

No branches or pull requests

2 participants