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

Differences between prepack in plugin-docker-build compared to yarn workspace pack #32

Open
rluckom-coil opened this issue Jun 23, 2022 · 0 comments

Comments

@rluckom-coil
Copy link

Hi, thank you for the plugins!

We are using plugin-docker-build in rafiki

When I check out the main branch of that repo and run yarn install and yarn docker build backend -t rafiki-backend, I get the following error:

➤ YN0000: ┌ Pack workspace backend
➤ YN0036: │ Calling the "prepack" lifecycle script
➤ YN0001: │ UsageError: Couldn't find knex@npm:0.21.19 [aa597] in the currently installed PnP map - running an install might help
    at fl.findPackageLocation (/Users/raphael/workspace/rafiki/.yarn/releases/yarn-3.0.2.cjs:543:4529)
    at /Users/raphael/workspace/rafiki/.yarn/releases/yarn-3.0.2.cjs:289:1296
    at Function.from (<anonymous>)
    at XI (/Users/raphael/workspace/rafiki/.yarn/releases/yarn-3.0.2.cjs:289:1040)
    at UW (/Users/raphael/workspace/rafiki/.yarn/releases/yarn-3.0.2.cjs:289:1621)
    at jQe (/Users/raphael/workspace/rafiki/.yarn/releases/yarn-3.0.2.cjs:288:2882)
    at async /Users/raphael/workspace/rafiki/.yarn/releases/yarn-3.0.2.cjs:288:2135
    at async Ft.mktempPromise (/Users/raphael/workspace/rafiki/.yarn/releases/yarn-3.0.2.cjs:177:62506)
    at async VI (/Users/raphael/workspace/rafiki/.yarn/releases/yarn-3.0.2.cjs:288:2075)
    at async HW (/Users/raphael/workspace/rafiki/.yarn/releases/yarn-3.0.2.cjs:288:4104)

However, when I try to manually run the pack using yarn workspace backend pack, the pack succeeds without an error. This suggests that there is some difference between the yarn context in use by the plugin, and the yarn context that is used normally. Do you know what it could be?

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

No branches or pull requests

1 participant