ramasilveyra/gitpkg

Yarn cache bug

luwes opened this issue · 2 comments

luwes commented

Gitpkg is affected by the same bug reported here by me.
yarnpkg/yarn#6256

The root issue is that a git pull on the cached repo will not pull in the standalone tags (not reachable from the heads).

Related question on Stackoverflow:
https://stackoverflow.com/questions/16678072/fetching-all-tags-from-a-remote-with-git-pull/27911598

Bug

What is the current behavior?

yarn install fails to install subsequent Github URL packages with format
git+ssh://git@github.com:luwes/chameleon.git#cricket-v0.0.1-beta.3
git+ssh://git@github.com:luwes/chameleon.git#grasshopper-v0.0.1-beta.4

error Command failed.
Exit code: 128

screen shot 2018-08-09 at 14 22 00

What is the expected behavior?

yarn install installs the package

Node 10.6.0, Yarn 1.9.4, MacOS 10.13.3

Hello! Thanks for the heads up!

Yes I have seen this issue on some builds at my current company. It seems like a cache bug in yarn related to the git private deps. Last time I failed to create an isolated repro.

As a workaround:

yarn cache clean

or

yarn cache clean <dep name>

Closing due to inactivity