rules_swc icon indicating copy to clipboard operation
rules_swc copied to clipboard

[Bug]: Does not work with --experimental_sibling_repository_layout

Open matthewjh opened this issue 1 year ago • 3 comments

What happened?

When building an SWC output with --experimental_sibling_repository_layout, SWCCompile exits with an error:

src/main/tools/linux-sandbox-pid1.cc:548: "execvp(external/swc_linux-x64-gnu/swc-linux-x64-gnu, 0x14e1720)": No such file or directory  

Version

Development (host) and target OS/architectures:

Ubuntu 22, linux amd64

Output of bazel --version:

Version of the Aspect rules, or other relevant rules from your WORKSPACE or MODULE.bazel file:

rules_swc 2.0.0

Language(s) and/or frameworks involved: 7.4.1

How to reproduce

No response

Any other information?

No response

matthewjh avatar Nov 19 '24 13:11 matthewjh

FWIW I think almost every aspect ruleset using toolchains has this issue where we prepend external/ to the path of the binary, rules_esbuild being another example (which has the path prepended so I assume it has the bug).

jbedard avatar Dec 04 '24 21:12 jbedard

@matthewjh do you have any idea the severity of this issue - meaning, have you seen some indication this flag is going to be flipped and users will be broken unless we take action? Another way to ask: what led you to try that flag?

alexeagle avatar Dec 09 '24 03:12 alexeagle

@alexeagle I hit this issue, due an external directory in our source tree:

https://github.com/bazelbuild/bazel/issues/4508

matthewjh avatar Dec 20 '24 15:12 matthewjh

It seems like this flag isn't likely to be flipped https://github.com/bazelbuild/bazel/discussions/20500#discussioncomment-10623863 so I don't think we'd bother being compliant with its constraints.

alexeagle avatar May 02 '25 18:05 alexeagle