You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was prototyping installing sharp (https://sharp.pixelplumbing.com/) using bazel.
The created artifact (regardless of using --platform=... flag and constraints for linux) was being built for host's arch (darwin_arm64). I would like the artifact to be build for the requested architecture (driven by --platforms flag or field or transition).
In particular it led to a situation where the artifact couldn't be packed into docker image (using rules_oci), as the built module was for darwin. The node runtime embedded into image was proper, but the dependency was wrong:
(Propesed fix contributed in: #1226)
What happened?
I was prototyping installing
sharp
(https://sharp.pixelplumbing.com/) using bazel.The created artifact (regardless of using
--platform=...
flag and constraints forlinux
) was being built for host's arch (darwin_arm64). I would like the artifact to be build for the requested architecture (driven by--platforms
flag or field or transition).In particular it led to a situation where the artifact couldn't be packed into docker image (using rules_oci), as the built module was for
darwin
. Thenode
runtime embedded into image was proper, but the dependency was wrong:I will send for review a PR with an idea for a fix: #1226
Version
How to reproduce
The text was updated successfully, but these errors were encountered: