-
Notifications
You must be signed in to change notification settings - Fork 523
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
nodejs_image build issue #3357
Comments
I can confirm that images that are built from Workaround is to have a nodejs_binary with the right toolchain attribute set then passed to nodejs_image. example for linux/amd64 images nodejs_binary(
name = "example",
toolchain = "@nodejs_linux_amd64//:node_toolchain"
...
)
nodejs_image(
name = "nodejs_image",
binary = ":example",
node_repository_name = "nodejs_linux_amd64"
) |
Thanks, I will try this out and get back to you, but looks like a non-intrusive workaround. |
@thesayyn sorry for the late response, but I wanted to confirm for you that workaround does in fact work. Thanks! |
fixed by #3373 in version 5.3.1 |
@thesayyn I am currently still using the workaround. With the fix, can I now remove the toolchain and node repository name from the binary and image rules? |
🐞 bug report
Affected Rule
The issue is caused by the rule:nodejs_image
Is this a regression?
Yes, the previous version in which this bug was not present was: ....This worked in previous versions
Description
This configuration will result in a build where the image layer contains the incorrect node_tool_path. This results in an error (see below) when attempting to run the nodejs_image.
The expected node_tool_path
The actual node_tool_path
🔬 Minimal Reproduction
A minimal reproduction has been attached. Please unzip the attached zipfile, cd into the project directory and run
make
.🔥 Exception or Error
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_nodejs version:
(Please check that you have matching versions between WORKSPACE file and
@bazel/*
npm packages.)Anything else relevant?
nodejs_image_issue.zip
The text was updated successfully, but these errors were encountered: