-
Notifications
You must be signed in to change notification settings - Fork 301
Open
Labels
Description
What happened?
Recently nodejs-slim changed to no longer include corepack as a default output. This breaks the Node.js plugin, which tries to run corepack when DEVBOX_COREPACK_ENABLED is true.
A workaround is to use a flake reference so that the additional corepack output can be specified (this requires the nodejs plugin to be explicitly added):
"packages": [
"github:NixOS/nixpkgs/nixpkgs-unstable#nodejs-slim_24^out,corepack"
],
"include": [
"plugin:nodejs"
]
But there are drawbacks with this workaround:
- You cannot pin the package with a version string
- It fails if you have already explicitly added another built-in plugin (due to Cannot explicitly add multiple built-in plugins #2790)
Steps to reproduce
devbox create --template node-yarncd node-yarndevbox rm nodejsdevbox add nodejs-slimdevbox shell --pure
Output:
Info: Ensuring packages are installed.
✓ Computed the Devbox environment.
Starting a devbox shell...
bash: corepack: command not found
bash: yarn: command not found
Command
shell
devbox.json
Devbox version
0.17.0
Nix version
nix (Nix) 2.26.2
What system does this bug occur on?
Linux (x86-64)
Debug logs
No response
Reactions are currently unavailable
{ "packages": ["nodejs-slim@latest"], "env": { "DEVBOX_COREPACK_ENABLED": "true" }, "shell": { "init_hook": [ "yarn install" ], "scripts": { "run_test": "yarn start" } } }