Open SirensOfTitan opened 3 years ago
is there really still an open issue if using yarn offline mirror?
Ran into this issue recently. Yarn 1.22.19, Node 18.19.1, Windows 10
I ran yarn cache clear
and then yarn install
and a load of packages appeared in my offline mirror, which I use for CI/CD build on a build server that has no internet access.
Bug description
We check all of the
tgz
of our packages into source control, and run our CI in offline mode for generally reproduce-able builds. Occasionally, when we're dealing with package upgrades, we get into a state where yarn doesn't put the package intoyarn-offline-mirror
directory when the package exists inside the local cache (atyarn cache dir
).Command
What is the current behavior? Currently, yarn is not populating the offline-mirror directory if it experiences a cache hit in the
yarn cache dir
system cache.What is the expected behavior? Yarn should always install the
tgz
of packages as specified inyarn.lock
regardless of the contents of the system cache. It could perhaps just copy the package archive if it experiences a hit inyarn cache dir
.Steps to Reproduce I haven't tested this, but it goes something like (also above):
Environment
14.7.0
1.22.5