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

Install a package with latest tag, it looks for the latest dist-tag #2471

Merged
merged 1 commit into from
Jan 17, 2017

Conversation

voxsim
Copy link
Contributor

@voxsim voxsim commented Jan 16, 2017

Summary

Hi,

this should fix #1306 and I sincerely hope that in some way it resolves #2225.
Please let me know if you like it and I don't forget anything.

Test plan

I add a test case in __tests__/commands/add.js

cheers,
Simon

@bestander
Copy link
Member

Awesome!

@bestander bestander merged commit dca8223 into yarnpkg:master Jan 17, 2017
@voxsim
Copy link
Contributor Author

voxsim commented Jan 17, 2017

:D

@voxsim
Copy link
Contributor Author

voxsim commented Jan 17, 2017

thanks @bestander !

@voxsim
Copy link
Contributor Author

voxsim commented Jan 17, 2017

Do you think this pull request resolves #2225?

@voxsim
Copy link
Contributor Author

voxsim commented Jan 17, 2017

Ah ok, yes, you closed the issue ;)

@voxsim voxsim deleted the install-with-latest-tag branch January 17, 2017 23:26
@bestander
Copy link
Member

@voxsim, #2225 was closed automatically.
Would you mind double checking if the scenario Dan described is fixed with this patch?

@voxsim
Copy link
Contributor Author

voxsim commented Jan 18, 2017

Yes, I will check ;)

@voxsim
Copy link
Contributor Author

voxsim commented Jan 20, 2017

@bestander yes it works!

@gaearon i will answer in the creare-react-app issue

@billyjanitsch
Copy link

FYI (see #2582) this PR introduces an inconsistency between how yarn handles the "latest" tag vs. any other tag. For example, yarn add webpack@latest adds "webpack": "^2.2.0" to package.json's dependencies, while yarn add webpack@beta (incorrectly) adds "webpack": "beta".

Was there a reason to special-case the "latest" tag?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants