-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Preview build setup sometimes results in installation failures #1075
Comments
I was unable to find any way to configure Yarn/npm or GitHub to support looking at this custom registry first, then falling back to npm. We may want to investigate alternatives to GitHub Packages. Or perhaps we could write a script to sync all of our npm packages to the GitHub registry. |
Warn the potential problem when installing non-preview `@metamask/`-scoped packages while using preview builds. Users can solve this by removing the `.npmrc` / `.yarnrc.yml` changes to install the missing packages and restoring the preview build credentials afterward. For more detail, check [issue #1075](MetaMask/core#1075).
Warn the potential problem when installing non-preview `@metamask/`-scoped packages while using preview builds. Users can solve this by removing the `.npmrc` / `.yarnrc.yml` changes to install the missing packages and restoring the preview build credentials afterward. For more detail, check [issue #1075](MetaMask/core#1075).
Warn the potential problem when installing non-preview `@metamask/`-scoped packages while using preview builds. Users can solve this by removing the `.npmrc` / `.yarnrc.yml` changes to install the missing packages and restoring the preview build credentials afterward. For more detail, check [issue #1075](MetaMask/core#1075).
…review builds (#1332) * Add warning for non-preview package installation in README Warn the potential problem when installing non-preview `@metamask/`-scoped packages while using preview builds. Users can solve this by removing the `.npmrc` / `.yarnrc.yml` changes to install the missing packages and restoring the preview build credentials afterward. For more detail, check [issue #1075](MetaMask/core#1075). * Fix typo in README.md Changed "you can workaround the problem" to "you can work around the problem". --------- Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
…review builds (#1332) * Add warning for non-preview package installation in README Warn the potential problem when installing non-preview `@metamask/`-scoped packages while using preview builds. Users can solve this by removing the `.npmrc` / `.yarnrc.yml` changes to install the missing packages and restoring the preview build credentials afterward. For more detail, check [issue #1075](MetaMask/core#1075). * Fix typo in README.md Changed "you can workaround the problem" to "you can work around the problem". --------- Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
can we publish previews to npm instead? solves:
tradeoffs:
|
As long as we can resolve to the new package name, that works. I'm not sure if that's possible with Yarn v3 for transitive dependencies. e.g. if we have a new Maybe Yarn resolutions can do this? Not sure. |
I think that Yarn resolutions can accomplish this as well, but we would definitely need to test this out somehow. I can try experimenting with this. |
Hey team! Please add your planning poker estimate with Zenhub @cryptodev-2s @Gudahtt @mcmire @mikesposito |
I tried to test the above idea by using Verdaccio to publish a |
I've tested this using the GitHub registry instead and confirmed that the I first added the following to
I then opened the
I then found every instance of
I then ran:
Over in the extension I then added the same section to
and ran:
and then
I saw that every instance of
|
It seems that the GitHub registry we have setup for the preview builds isn't mirroring packages from npm.
As a consequence, you may see installation failures non-preview
@metamask
packages when using an.npmrc
file setup to point at the GitHub registry. I've found that I can get past the error by ensuring the non-preview packages are installed locally before putting the.npmrc
file in-place. This is a viable workaround but it requires frequently adding and removing this file, which is rather inconvenient.The text was updated successfully, but these errors were encountered: