Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for existing directory earlier #282

Open
AllenDowney opened this issue Aug 26, 2022 · 1 comment
Open

Check for existing directory earlier #282

AllenDowney opened this issue Aug 26, 2022 · 1 comment
Labels

Comments

@AllenDowney
Copy link
Contributor

As soon as the user enters the project name (or repo name? which is used for the directory name), check if the directory already exists and either quit or prompt for a new name.

Otherwise, the user has to answer all of the questions and THEN get an error message.

@pjbull
Copy link
Member

pjbull commented Aug 26, 2022

Related issue from cookiecutter (open since 2016): cookiecutter/cookiecutter#821

Ideally this would be fixed and/or enabled upstream. There's basically no support for validation at all in cookiecutter's current architecture, so we couldn't fail fast without replacing substantially more of the package than we currently patch.

I'll add this to things we consider for v2, but I suspect it may land out-of-scope

@pjbull pjbull added the v2-bug label Aug 26, 2022
@pjbull pjbull mentioned this issue Aug 26, 2022
49 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants