fly-apps / fly-apps/dockerfile-node

fly launch for Shopify apps fails: `shopify app deploy --force` — --force removed in Shopify CLI 4.x

オープン 初心者向け
#151 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
187
フォーク
11
PR マージ指標
30日以内にマージされた PR はありません

説明

`fly launch` aborts when scaffolding a Shopify app. `flyShopifyConfig` in `fly.js` runs:

```js
execSync(`shopify app deploy --force --config ${configFile}`, { stdio: 'inherit' })
```

but the `--force` flag was removed from `shopify app deploy` in current Shopify CLI (reproduced on **4.2.0**). The valid flags are now: `reset, allow-updates, allow-deletes, no-release, no-build, message, version, source-control-url, config, client-id, path`. So the command exits with:

```
✗ Nonexistent flag: --force
...
Error: failed to generate Dockerfile: exit status 1
at GDF.flyShopifyConfig (.../@flydotio/dockerfile/fly.js:395:7)
```

Because it throws inside Dockerfile generation, the **entire `fly launch` fails** — no `fly.toml` is produced.

**Versions:** `@flydotio/dockerfile@0.7.10`, `@shopify/cli@4.2.0`, Node 24.

**Fix:** drop `--force` (the flag is gone, and `--config` is still valid):

```js
execSync(`shopify app deploy --config ${configFile}`, { stdio: 'inherit' })
```

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

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

fly.js を開き、Dockerfile の生成中に Shopify のデプロイコマンドが組み立てられる flyShopifyConfig を調べます。@shopify/cli@4.2.0 で再現し、その後、存在しないフラグのエラーなしで fly launch が完了し、fly.toml が生成されることを確認します。

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

評価

技術スタック
javascript, node.js
領域
build-system
issue の種類
バグ
難易度
1/5
見積もり時間
1時間未満
活発さ
静か
明瞭さ
明確に書かれている
初心者へのやさしさ
84/100

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

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