mirror of
https://github.com/Comfy-Org/cookiecutter-comfy-extension.git
synced 2026-11-04 23:47:39 +00:00
[GH-ISSUE #6] React template does not initialize #4
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/cookiecutter-comfy-extension#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mcmalt on GitHub (Aug 2, 2025).
Original GitHub issue: https://github.com/Comfy-Org/cookiecutter-comfy-extension/issues/6
When run by
comfy node scaffoldandReactis selected as a frontend type, the resulting directory does not contain anything from the react extension template.I'm not particularly familiar with cookiecutter, but I believe I have narrowed down the issue.
github.com/Comfy-Org/cookiecutter-comfy-extension@db6cfd9085/hooks/pre_gen_project.py (L64)When run,
template_source => https://github.com/Comfy-Org/cookiecutter-comfy-extension.git, which does not start withgh, so submodules are never initializedRemoving the condition
template_source.startswith("gh:")correctly initializes the submodule.I have not attempted running cookiecutter directly on the template, so perhaps the behavior is different between
comfy node scaffoldandcookiecutter gh:comfy-org/cookiecutter-comfy-extensionEdit 2: after looking at the cli source, cookiecutter is run on
https://github.com/Comfy-Org/cookiecutter-comfy-extension.gitnotgh:comfy-org/cookiecutter-comfy-extension, so this may be the cause of the unexpected behavior@zcfrank1st commented on GitHub (Aug 5, 2025):
+1
@christian-byrne commented on GitHub (Aug 6, 2025):
@jtydhr88 Any idea why this happens?
@jtydhr88 commented on GitHub (Aug 9, 2025):
I will take a look at it
@jtydhr88 commented on GitHub (Aug 9, 2025):
thanks @mcmalt feedback, fixed in https://github.com/Comfy-Org/comfy-cli/pull/310
@jtydhr88 commented on GitHub (Aug 10, 2025):
at the fixed merged in cli side, I will close it for now, please try later once we release a new version, and please feel free to reopen it if you still have questions
@mcmalt commented on GitHub (Aug 10, 2025):
I have manually tested it by mirroring the changes locally to my comfy_cli installation and it works as expected, so when the new version is released I expect it to work correctly. Thanks!