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 from a branch gets cached #2280

Closed
HommeSauvage opened this issue Dec 17, 2016 · 13 comments
Closed

Install from a branch gets cached #2280

HommeSauvage opened this issue Dec 17, 2016 · 13 comments

Comments

@HommeSauvage
Copy link

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

What is the current behavior?
Yarn is getting the same package from cache when using a branch even if the branch has new commits. Event after running npm install <package> and getting the new package, running yarn after will bring back the old cached package.

If the current behavior is a bug, please provide the steps to reproduce.
Try installing a branch from a repository:
"<package>": "git+ssh://[email protected]/<user>/<package>.git#<branch>",
yarn, add new commits to <branch>, then yarn again. You will get a cached version without the new commits.

What is the expected behavior?
Since we are not specifying a version in dependencies but a branch, yarn should get the latest commit from the branch. npm works well.

Please mention your node.js, yarn and operating system version.
Node 7.2.1, yarn 0.17.10, macOS Sierra.

@bestander
Copy link
Member

Should be fixed now #2074.
Please reopen if the issue is still there

@Dmitra
Copy link

Dmitra commented Aug 10, 2017

can reproduce on node 8.3.0 yarn 0.27.5 Ubuntu 16.04

@BYK
Copy link
Member

BYK commented Aug 10, 2017

@Dmitra please try a more recent version. You can try 0.28.1 from NPM or the nightlies.

@Dmitra
Copy link

Dmitra commented Aug 10, 2017

@BYK can't reproduce on yarn 1.0.0-20170809.1554

@BYK
Copy link
Member

BYK commented Aug 11, 2017

@Dmitra that means it is fixed on master, yay! And thanks :)

@xomaczar
Copy link

[email protected] exhibits similar behavior.

[email protected]
[email protected]

@xomaczar
Copy link

Same thing in [email protected]. The only way to force fetching is with yarn upgrade <package-name>

@askielboe
Copy link

askielboe commented Oct 13, 2017

Having the same issue. Have to run yarn upgrade after every yarn install to get the upgraded packages.

yarn install always picks some random old version. :(

@valoricDe
Copy link

I vote for reopening this issue.

@xomaczar
Copy link

Yes same here, this can cause an incorrect release being bundled in our production code...

@xomaczar
Copy link

cc @bestander

@bestander
Copy link
Member

@xomaczar, could you open a new issue with a repro step please?

@askielboe
Copy link

I've created a new issue with steps to reproduce: #4734

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

8 participants