opeco17 / poetry-audit-plugin

Poetry plugin for checking vulnerabilities in dependencies 🚀
MIT License
20 stars 7 forks source link

`poetry audit` fails on poetry version 1.2.0b3 #2

Closed zwade closed 1 year ago

zwade commented 1 year ago

Issue

poetry audit fails due to:

Locker.locked_repository() takes 1 positional argument but 2 were given

Patching line 26 of command.py to remove the argument to self.poetry.locker.locked_repository resolves the issues.

Versions

Python: 3.10.0 Poetry: 1.2.0b3 Poetry Audit Plugin: 0.1.1 OS: Mac OS 12.1

zwade commented 1 year ago

It looks like circa poetry 1.2.0b2 the with_dev_reqs option was removed: https://github.com/python-poetry/poetry/commit/0c6808ba2700c6a446c40633ed81ee929174a649

Would it be possible to either drop this argument outright, or case on the version of poetry before passing it?

opeco17 commented 1 year ago

@zwade Thank you for reporting the issue! This issue has been fixed thanks to the PR by @AdrianLopezGue !