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

Breaking change: module 'pdm.cli.actions' has no attribute 'do_use' #2013

Closed
pawamoy opened this issue Jun 13, 2023 · 1 comment · Fixed by #2017
Closed

Breaking change: module 'pdm.cli.actions' has no attribute 'do_use' #2013

pawamoy opened this issue Jun 13, 2023 · 1 comment · Fixed by #2017
Assignees
Labels
🐛 bug Something isn't working

Comments

@pawamoy
Copy link
Sponsor Contributor

pawamoy commented Jun 13, 2023

Commit f08b414 moved functions out of pdm.cli.actions. To keep backward compatibility, the solution is to either re-export names from the new location, and/or add a __getattr__ method that issues a deprecation warning but still returns the imported name.

@pawamoy pawamoy added the 🐛 bug Something isn't working label Jun 13, 2023
@frostming frostming self-assigned this Jun 14, 2023
frostming added a commit that referenced this issue Jun 14, 2023
Fixes #2013

Signed-off-by: Frost Ming <me@frostming.com>
frostming added a commit that referenced this issue Jun 14, 2023
Fixes #2013

Signed-off-by: Frost Ming <me@frostming.com>
@pawamoy
Copy link
Sponsor Contributor Author

pawamoy commented Jun 14, 2023

Thanks a lot, that's perfect 🚀

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.

2 participants