-
Notifications
You must be signed in to change notification settings - Fork 11
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
[Bug] second .jl
is added when package name is entered with .jl
attached
#373
Comments
I could not reproduce, did you run In theory this shouldn't happen via the Julia interface because we run
in the first line of log. |
No, I had the path already there, so I ran |
I can reproduce it, although it's not a bug. The There are a few ways to deal with this, though:
If you agree with the assessment, I will look into 3. |
Uses regex to make sure that the package name starts with a capital letter and contains only letters and numbers. Closes #373
Though a bit pedantic, I agree with the assessment. I think Copier lets you (at least) validate (https://copier.readthedocs.io/en/stable/configuring/#advanced-prompt-formatting) answers. Disallowing |
Thanks, it's done in #377 now. |
@allcontributors please add @jhidding for bug |
I've put up a pull request to add @jhidding! 🎉 |
Uses regex to make sure that the package name starts with a capital letter and contains only letters and numbers. Closes #373
Uses regex to make sure that the package name starts with a capital letter and contains only letters and numbers. Closes #373
Description
When asked for the package name, a not too careful reader may enter a package name with
.jl
included, resulting in a doubleMyPackage.jl.jl
. This could be easily caught.Package Version
v0.9.0
Julia Version
1.10
Reproduction steps
run
BestieTemplate.generate
enter a package name with.jl
Relevant log output
Your package ModuleMixins.jl.jl has been created successfully! 🎉
Operating System
Linux
The text was updated successfully, but these errors were encountered: