For CI runs, Yarn should have a way to show what registry each package was pulled from #3744
-
Hello, I love yarn! It's great. I would like some help getting Yarn (berry, v.3) to show the full resolution URL for each package that it pulls. My project needs provenance information, and I have to imagine that there's some setting that will show this (and if it can add it to the lockfile that would be even better!). I've tried all the settings that I can think of in the yarn yaml file and no luck. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Yarn Classic used to add it to the lockfile, but in Modern we've intentionally changed this so that it doesn't have to update the lockfile each time the registry is swapped if it uses a conventional URL format. Because of this, the registry to use is only computed based on the configuration. You can use the yarn npm info @yarnpkg/core --json | jq .dist.tarball (You can optionally specify a version for the package) (This just made me realize that there are a few improvements we could do to the |
Beta Was this translation helpful? Give feedback.
-
While it wont log the registries if everything is fine, you can use networkSettings:
'*':
enableNetwork: false
'registry.yarnpkg.com':
enableNetwork: true |
Beta Was this translation helpful? Give feedback.
-
Continued in #3765. |
Beta Was this translation helpful? Give feedback.
Continued in #3765.