Azure / Azure/static-web-apps-cli

swa deploy fails in Bazel

オープン
#877 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
668
フォーク
156
PR マージ指標
30日以内にマージされた PR はありません

説明

**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(),
)
```
2. Call `bazel run release`

**Screenshots**
With Bazel:
image

Without:
image

**Desktop (please complete the following information):**

- OS: MacOS
- Version 14.5

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、提供された Bazel ターゲットを `bazel run release` で再現し、その出力を macOS 上で直接 `swa deploy` を実行した場合の出力と比較します。子プロセスの失敗と、バイナリパスまたは作業ディレクトリに関する厳密な挙動を追跡します。同じデプロイが Bazel 経由で未知のエラーなしに成功すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, typescript
領域
build-system, cli, cloud
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。