Skip to content
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

swa deploy fails in Bazel #877

Open
vsesh opened this issue Aug 5, 2024 · 2 comments
Open

swa deploy fails in Bazel #877

vsesh opened this issue Aug 5, 2024 · 2 comments

Comments

@vsesh
Copy link

vsesh commented Aug 5, 2024

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

  1. Setup calling swa cli as 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(),
)
  1. Call bazel run release

Screenshots
With Bazel:
image

Without:
image

Desktop (please complete the following information):

  • OS: MacOS
  • Version 14.5
@vsesh
Copy link
Author

vsesh commented Aug 6, 2024

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.

@vsesh
Copy link
Author

vsesh commented Aug 7, 2024

Is it possible to show some additional logs from the binary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant