Skip to content

React template does not initialize #6

@mcmalt

Description

@mcmalt

When run by comfy node scaffold and React is 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.

if template_source.startswith("gh:") and frontend_type == "react":

When run, template_source => https://github.com/Comfy-Org/cookiecutter-comfy-extension.git, which does not start with gh, so submodules are never initialized

Removing 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 scaffold and cookiecutter gh:comfy-org/cookiecutter-comfy-extension

Edit 2: after looking at the cli source, cookiecutter is run on https://github.com/Comfy-Org/cookiecutter-comfy-extension.git not gh:comfy-org/cookiecutter-comfy-extension, so this may be the cause of the unexpected behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions