-
Notifications
You must be signed in to change notification settings - Fork 977
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
Install script should allow passing only major.minor as a version parameter #1147
Comments
The install file is here: https://github.com/yarnpkg/website/blob/master/install.sh |
The easiest way would be to resolve the version using npm view yarn@$1 version | tail -n1 | grep -o "'.*'" | cut -d "'" -f2 Here you can check how the npm solution could look like: mgolebiowski@b8d64d5 If we don't want to use npm, we could follow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Having to specify the
PATCH
part of the version shouldn't be necessary, Bothyarn set version
andnpm install -g yarn@1
properly resolve to the newest version based on the part user specified (1.22 -> 1.22.17 etc.) and having the same feature in the install script would be really nice.curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22
Should install
1.22.$latest
The text was updated successfully, but these errors were encountered: