-
-
Notifications
You must be signed in to change notification settings - Fork 808
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
Restricted Project Naming #1728
Comments
Thanks for the report, this must have been very annoying. I would suggest that in these instances we could print something like this "We were not able to create your project as Would you like is to create a project named
This is already the case! Unfortunately we take the project name as the argument here and use the director name as the same. |
Maybe fully formulating what the project name must be helps? Like:
|
Not annoying at all! No worries. I think coupling the solution from @inoas with the automated |
Fab, I agree. Let's do it |
The solution: make it suggest an alternative name. The full list of problems could be suggested in the text also, though the main problem would need to be presented first and foremost as today. |
@lpil Would be okay if I tackle this issue? I have been a developer for a over a year now, but for some reason, I have been intimidated in tackling a truly open source project. I am super excited about gleam and would like the language to be my first open source project to start contributing to. This would be a good first issue to stretch my legs. |
Yes please! That'd be great. Do ask any questions if you have any while working on it. |
Hey @lpil , |
Great! Yes please @Tar-Tarus !! |
I had a look into it in PR #3913. |
Thank you!! |
Description
When creating a new Gleam project with
gleam new
, there are situations where thegleam
CLI will respond with errors due to disallowed project naming patterns:Context: based on this Twitter thread
Ideas
gleam
prefix) as well as underscore conventiongleam-demo
,gleam
, andgleam_demo
I like this idea the most of the three proposed here; this is allowed in, for example, a new Rust/Cargo project. You can create projects with analogous name
rust-demo
,rust
, andrust_demo
:Let me know if you have other ideas. I'm happy to take this on after a consensus is reached!
The text was updated successfully, but these errors were encountered: