Skip to content

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

@rluckom-coil

Description

@rluckom-coil

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions