-
Notifications
You must be signed in to change notification settings - Fork 16
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
build error related to preinstall script: "npx only-allow pnpm" #157
Comments
Why is it building PEX? We provide releases, so I am unsure why this is happening to begin with. To add. The preinstall fase is the phase before installing the deps for PEX itself. External solutions using PEX as a dep should not be bothered by that at all. Almost all of our libs and SDKs use PNPM, but we also have projects using yarn and even npm. None have seen this happen and I cannot see how our choice of package/build system would interfere with external projects, unless PEX would be build as part of the solution, or a link to Github is used as dep |
@nklomp , do you use yarn? it might a yarn quirk:
|
Yes. I know of multiple RN wallets AFAIK all using yarn and our PEX lib. Is the link to the repo public? If so could you provide me with a link so I can have a look? |
You mentioned Credo. They are also using our pnpm based libs with a yarn package manager @TimoGlastra Do you know if you had to do anything special to make that work (shouldn't be the case, but just doublechecking) |
Hmm it seems Bifold is using Yarn 3, which works very different from Yarn V1 (which we're using for Credo). However, we're using Yarn V3 in the Paradym Wallet (https://github.com/animo/paradym-wallet) and that's also been working fine until now |
But it seems the |
@cvarjao can you provide some steps to reproduce the error? |
@nklomp @TimoGlastra it seems that |
Their behaviour is similar to ours. It seems to always work from our laptops, but often (not always) fails from github action. |
@cvarjao can you provide some links to the failed github actions? Maybe it's a bad configuration that triggers this behaviour. |
@nklomp it seems that pnpm can make some problems with latest versions for pnpm, yarn and npm (the package last update is form last year). Another apporach is to use the engine field like:
However this does not prevent the npm install script from being executed and create the package-lock file (but it will fail in the end "successfully")
It is btw the same behaviour like "preinstall": "npx only-allow pnpm", so there is technically no job that is executed before install @cvarjao could you make the patch file for bifold and check if the engine approach will work better for you? |
@cre8 , we can try. Right now we have patched to remove the "preinstall" script: I don't know if you can see all the GHA build logs, but here is an example: |
I'm submitting a ...
[x] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project
Summary
We use PEX with OWF Credo and Bifold. pnpm is not supported by react native, is it possible to not enforce consumers of this library to also use pnpm?
we are getting a build error:
The text was updated successfully, but these errors were encountered: