Check if directory is free to be used#2075
Check if directory is free to be used#2075AdaOrbit wants to merge 17 commits intoalire-project:masterfrom
Conversation
|
@AldanTanneo @mosteo ready for review! |
|
Ideally, there would be an error (overridable with Is this done already elsewhere? |
|
The current behavior is to partially initialize a crate if And if I understand it correctly I tried finding something similar that does those checks in the code base but couldn't find anything. (Maybe you know more and could guide me?) Also a comment on the |
What I meant is not using Detecting when the directory is not empty would avoid the partial crate initialization altogether, and then using |
|
Of course, this can be on top of |
|
I should look more into the control flow to understand the current design better. I'll take a look at it again and see where it's best to check and add features. |
This PR solves #2066 by checking if the chosen project name is free.
for
--in-placeit looks ifalire.tomlalready exists. On normal project creation it checks for<project name>/alire.tomlPR creation checklist
doc/user-changes.mdhas been updated, if there are user-visible changes.doc/catalog-format-spec.mdhas been updated, if applicable.BREAKING.mdhas been updated for major changes inalr, minor/major in catalog format.