build from-workflow prints a --json invocation the CLI refuses

オープン 初心者向け
#781 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
92/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
cli

調査の方向性

comfy_cli/command/distribution.py を開き、リカバリーヒントが組み立てられている from_workflow_cmd から始めます。issue に示されている root レベルのオプション構文に照らして、表示されるコマンドを確認します。ヒントが comfy --json build get <id> | jq .data.definition > def.json を出力し、呼び出し元が実行できるようになれば完了です。

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

説明

bug

comfy build from-workflow tells the caller how to pin baseComfyVersion when the import comes back with comfyVersionRequired: true. The command it prints does not run.

What it prints (comfy_cli/command/distribution.py, from_workflow_cmd):

comfy build get <id> --json | jq .data.definition > def.json

What that does:

$ comfy build get 42014768-dd52-4d37-82f5-821ef6e141e8 --json
Usage: comfy build get [OPTIONS] BUILD_ID
Error: No such option: --json

--json is a root-level option, so it has to precede the group:

$ comfy --json build get 42014768-dd52-4d37-82f5-821ef6e141e8
{"schema": "envelope/1", ..., "command": "build get", ...}

Why it matters: a workflow names no ComfyUI version, so comfyVersionRequired is true on every fresh import, which makes this hint the standard next step rather than an edge case. A caller who follows it hits a usage error on the one instruction that unblocks the cut.

Fix: print comfy --json build get <id> | jq .data.definition > def.json.

Found while writing the comfy-build skill's workflow path against this verb.

主要言語
Python
スター
1k
フォーク
176
平均マージ
1日 11時間
マージ済み PR(30日)
87

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Comfy-Org/comfy-cli のほかの issue

Comfy-Org/comfy-cli の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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