-
Notifications
You must be signed in to change notification settings - Fork 17
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 fails when using npm workspaces and node_modules
is required during build and launch
#498
Comments
Not sure if this failure is related, or caused by issues with how workspaces are handled in npm-install paketo-buildpacks/node-run-script#230 |
Also this one was related to workspaces, fixed / changed in 1.1.0: #492 |
Are you sure? I can still reproduce this with |
I'm also experiencing the same issue with version |
This has not yet been resolved. I'm currently finishing up a PR to resolve it. |
No I was just being unclear. I simply meant that the fix #492 did change something in relation to workspace handling, and might be worth looking into. |
Expected Behavior
build should succeed, when using project with npm workspaces and
node_modules
are required at bothbuild
andlaunch
.Current Behavior
build fails during the
Executing launch environment install process
phase:From what we can see, there are currently several issues with the workspace handling:
symlinkerResolver.Resolve
inside theif launch
block is done with the same set of parameters, as within theif build
block.After the first call, the source folder no longer exists (it gets deleted by
linker.Link()
function). Also, the target folder is already present in thebuild-modules
layernpm-install/build.go
Lines 142 to 145 in 56c8312
npm-install/build.go
Line 242 in 56c8312
npm-install/build.go
Lines 252 to 255 in 56c8312
projectPath
are pointing to nonexistent directory in the/tmp
folder,create-symlinks
helper manages only symlink to thenode_modules
folder.Steps to Reproduce
build = true
here:npm-install/integration/testdata/workspaces/commonjs/plan.toml
Lines 10 to 11 in 56c8312
Motivations
The text was updated successfully, but these errors were encountered: