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

Default yarn.lock registry? #6489

Open
rightaway opened this issue Oct 4, 2018 · 1 comment
Open

Default yarn.lock registry? #6489

rightaway opened this issue Oct 4, 2018 · 1 comment
Assignees
Labels

Comments

@rightaway
Copy link

I'm on yarn 1.9.4. I did a yarn install and found that each item refers to registry.yarnpkg.com. Earlier it used to refer to registry.npmjs.org. Did the default change?

I haven't changed anything in my .yarnrc and yarn config list shows registry: 'https://registry.yarnpkg.com', so I just want to check that the setting isn't getting overridden somewhere and that registry.yarnpkg.com is in fact the correct registry that should appear for new yarn.lock files.

@ghost ghost assigned arcanis Oct 4, 2018
@ghost ghost added the triaged label Oct 4, 2018
@arcanis
Copy link
Member

arcanis commented Oct 4, 2018

Likely a duplicate of #6436 (but it should happen with 1.10+, not 1.9.4, so that's curious).

Short story: in some circumstances Yarn 1.10+ <1.12 needs to make requests to the npm registry to update the metadata for some packages. When it happens, it also updates the resolved field with the latest resolution (including the hostname currently in use, regardless of what it was when you originally created the lockfile).

We also have #5892 to remove the hostname from the lockfiles, but it's tricky because of some unsound registries like npm enterprise that use custom paths for their tarballs ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants