`poetry new` refuses to run on an existing dir - no way to override according to help options.
See original GitHub issue- [x ] I am on the latest Poetry version.
- [x ] I have searched the issues of this repo and believe that this is not a duplicate.
Issue
I was just trying to start a new project. I created a git repo, then ran “poetry new --src .” and it failed as follows:
[RuntimeError]
Destination /.../myproject exists and is not empty
Caution in a tool of this nature is well warranted, but allowing me to say “I know, I don’t care, just do it” should also be an option.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:8 (1 by maintainers)
Top Results From Across the Web
`poetry new` refuses to run on an existing dir - no way ... - GitHub
Issue I was just trying to start a new project. ... poetry new refuses to run on an existing dir - no way...
Read more >Commands | Documentation | Poetry - Python dependency ...
This command will help you kickstart your new Python project by creating a directory structure suitable for most projects. poetry new my-package. will...
Read more >python - How to update Poetry's lock file without upgrading ...
There is a specific option for the lock command: poetry lock --no-update. This makes it possible to remove a dependency from pyproject.toml ...
Read more >pytest fixtures: explicit, modular, scalable
fixtures are implemented in a modular manner, as each fixture name triggers a fixture function which can itself use other fixtures. fixture management...
Read more >MacPorts Guide
Always make sure to install the latest available version of Xcode for your macOS ... Run port help search for an exhaustive list...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jdemilledt is correct.
poetry new
is for creating a new project. It creates a folder (and thus can’t create one if you pass it an existing folder). So proper use ispoetry new non-existing-folder
For an exising folder use
poetry init
I’m not the developer, so I can’t fully answer your question, but I think the new command exists for people who don’t already have an existing project structure.
On Mon, Oct 14, 2019 at 5:42 PM Curtis Maloney notifications@github.com wrote:
– Julian DeMille
CEO, demilleTech, LLC.
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.