happy-pizza-30507
08/25/2022, 4:57 PMpants generate-lockfiles
with poetry backend, how can I resolve the dependencies for multiple platforms in requirements.txt? Specifically I find that the lockfile, which is generated from linux by other team mate, is missing a few hashes that are needed on m1, causing the build to fail. Not sure if I have done anything obviously wrong here. Thanks!enough-analyst-54434
08/25/2022, 5:04 PMpoetry export
which we use to gen the lock.happy-pizza-30507
08/25/2022, 5:43 PMenough-analyst-54434
08/25/2022, 5:46 PMpex3 lock export
to do the same thing and get a requirements.txt out. BUT Pants adds a non-valid comment header to the Pants Pex lockfiles, so you 1st need to strip the comment lines off before you ask Pex to export the lock 😕./pants export
which will export venvs and then in your main venv pip install pip-audit
and go from there. As I understand it. pip-audit can work with venv contents as well as requirements.txt