happy-pizza-3050708/25/2022, 4:57 PM
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-5443408/25/2022, 5:04 PM
which we use to gen the lock.
happy-pizza-3050708/25/2022, 5:43 PM
enough-analyst-5443408/25/2022, 5:46 PM
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 😕
pex3 lock export
which will export venvs and then in your main venv
and go from there. As I understand it. pip-audit can work with venv contents as well as requirements.txt
pip install pip-audit