Skip to content

cryptic spacetime init failure if template name is wrong #5124

@bfops

Description

@bfops

Using the wrong template name results in an error about a bad repository format:

➜ spacetime init --template next-js my-js-project
A new version of SpacetimeDB is available: v2.3.0 (current: v2.2.0)
Run `spacetime version upgrade` to update.

You are logged in to SpacetimeDB.
Project name: my-js-project
✔ Project path · ./my-js-project
✔ Database name · my-js-project-5o1kj
Template: next-js
Initializing project from template...
Error: Invalid repository format. Use 'owner/repo' or full git clone URL

is there something better we can do here? I don't think it's as simple as "assume it's a template name" since people might try to just type in their repo name as a value. Perhaps two different params? (--template vs --template-repo)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions