Closed luwes closed 2 years ago
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
Gitpkg is affected by the same bug reported here by me. https://github.com/yarnpkg/yarn/issues/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 formatgit+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
What is the expected behavior?
yarn install
installs the packageNode 10.6.0, Yarn 1.9.4, MacOS 10.13.3