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

Yarn Using Cache for file: entries #2559

Closed
aikar opened this issue Jan 26, 2017 · 2 comments
Closed

Yarn Using Cache for file: entries #2559

aikar opened this issue Jan 26, 2017 · 2 comments

Comments

@aikar
Copy link

aikar commented Jan 26, 2017

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
If you yarn add file:some/dir, yarn will still use a cache for this package

If the current behavior is a bug, please provide the steps to reproduce.
yarn add a file: path to the project, such as a git submodule
Wipe out node_modules/your_module_linked_to_other_folder
git pull a new submodule ref that did not change version number.
yarn install

When developing internal projects, bumping the version number every single commit is unreasonable.
Not everyone even uses semver for ongoing internal development.

It is unnecessary for Yarn to use its cache for file: URL's. The file reference is a cache itself.

This works fine on NPM.

What is the expected behavior?
Yarn should not use a cache at all for file: URL's, ensuring all installs use what ever is latest in the referenced directory.

Please mention your node.js, yarn and operating system version.
Node 6.9.4, Yarn v.019.1, OS independent.

@simonbuchan
Copy link

Dupes #2165

@Daniel15
Copy link
Member

Closing as duplicate of #2165 (thanks @simonbuchan!)

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

3 participants