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

Aperta Adatta ai principianti
#781 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
92/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Apri comfy_cli/command/distribution.py e inizia da from_workflow_cmd, dove viene assemblato il suggerimento per il ripristino. Verifica il comando stampato rispetto alla sintassi delle opzioni a livello root mostrata nell’issue. È fatto quando il suggerimento stampa comfy --json build get <id> | jq .data.definition > def.json, così i chiamanti possono eseguirlo.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
1k
Fork
176
Merge medio
1g 11h
PR unite (30g)
87

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Comfy-Org/comfy-cli

Tutte le issue di Comfy-Org/comfy-cli

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.