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

pdm search inserts __pypackages__ in current working directory #993

Closed
1 task done
dranjan opened this issue Mar 24, 2022 · 0 comments · Fixed by #995
Closed
1 task done

pdm search inserts __pypackages__ in current working directory #993

dranjan opened this issue Mar 24, 2022 · 0 comments · Fixed by #995
Labels
🐛 bug Something isn't working

Comments

@dranjan
Copy link
Contributor

dranjan commented Mar 24, 2022

  • I have searched the issue tracker and believe that this is not a duplicate.

Make sure you run commands with -v flag before pasting the output.

Steps to reproduce

Run pdm search pdm in an empty directory.

Actual behavior

The expected console output is printed, but __pypackages__ and .pdm.toml are created as well:

% pdm --version
Python Development Master (PDM), version 1.13.5
% ls -a
./  ../
% pdm search pdm
pdm (1.13.5)         - Python Development Master
pdm-packer (0.3.0)   - A PDM plugin that packs your packages into a zipapp
(... etc. ...)

% ls -a
./  ../  .pdm.toml  __pypackages__/

Expected behavior

The console output is printed, but no files are created.

Environment Information

# Paste the output of `pdm info && pdm info --env` below:
[ProjectError]: The pyproject.toml has not been initialized yet. You can do this by running 'pdm init'.

(PDM is being run outside of a project in this case.)

@dranjan dranjan added the 🐛 bug Something isn't working label Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant