swa deploy fails in Bazel
Describe the bug
I am trying to move the swa deploy command to Bazel. But I consistently get an unknown error.
Everything works without Bazel.
I suppose it could be related to the strict path to binary folders. But I am not fully sure about it.
It looks like the issue happens during creating a child process.
To Reproduce
- Setup calling
swa clias binary in Bazel config. Like this:
swa_bin.swa_binary(
name = "release",
args = ["deploy"],
data = ["/.out"],
env = {
"SWA_CLI_OUTPUT_LOCATION": "./out",
"SWA_CLI_DEPLOY_ENV": "production",
},
chdir = native.package_name(),
)
- Call
bazel run release
Screenshots
With Bazel:
Without:
Desktop (please complete the following information):
- OS: MacOS
- Version 14.5
I investigated it. This issue happened in a binary. If I understood correctly, binaries are not in open source - I can't exactly understand what happened. Probably it could be related to writing from the subprocess to output folder.
Is it possible to show some additional logs from the binary?