-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 offline mirror behavior is very strange #3194
Comments
I'm experiencing the same issue. I had the correct results in offline mode yesterday. Are you always able to get offline mirrors after using |
@kmmolex hmm I only get the correct results when I blow away yarn.lock, clean the cache, an "re-yarn." Step-wise yarn-ing does not seem to exhibit consistently reliable behavior for me. I almost always re-yarn from scratch and look at the git diff. 😦 |
I am also seeing this problem in fact, it breaks |
cc @arcanis |
Going through the steps outlined in Running Yarn offline, I think not. My |
This issue shouldn't be relevant anymore starting from 0.23, since we now always use expanded registry urls. |
@arcanis I do not believe that is the case in 0.23. Did you mean 0.24? |
Nevermind. I was on the wrong nvm version. |
I think we can close this ticket... the issue is actually this one: #3154 (comment) |
setup
I am using yarn@0.22.0. I am using node v7.9.0 installed with nvm on macOS 10.12.4. yarn is installed as
npm install -g yarn@0.22.0
. I have also triedbrew install yarn
.This is my repo's
.yarnrc
:bug
It seems that using yarn@0.22.0 does not consistently record the right value for
"resolved"
in theyarn.lock
file (down to 0.19.x and up to 0.23.x also seem to have the same strange behavior).The only way I can get
yarn
to consistently record something like this:...rather than, e.g.,
resolved "https://registry.yarnpkg.com/react/-/react-15.4.2.tgz#41f7991b26185392ba9bae96c8889e7e018397ef"
is to run something like
rm -rf vendor/npm_cache/ node_modules/ yarn.lock; yarn cache clean; yarn
. If I don'tyarn cache clean
, I can end up with urls instead of.tgz
references. This behavior is pretty frustrating because I don't consistently get offline mirror versions specified in my yarn.lock.If you have an offline mirror set up, should it be expected that you'll never see a registry.yarnpkg.com in the yarn.lock file, right?
The text was updated successfully, but these errors were encountered: