Ah no worries already found the solution :grimacin...
# general
i
Ah no worries already found the solution 😬
πŸŽ‰ 2
πŸ‘ 1
b
What’s the solution? In case someone else has a similar issue (https://xkcd.com/979/ πŸ˜„ )
i
I realised that I could just build another pex solely for running the alembic. Then every time I need to run a new migration, I can just spin up a temporary k8s pod that runs the alembic migration. Feels fine to me because that also means I don't need to package the alembic artifacts into the actual binary
πŸ‘ 1
e
I will note that thread's feature request is now implemented in Pex with support in Pants 2.16+ (https://www.pantsbuild.org/v2.16/docs/reference-pex_binary#codeargscode) but, IIUC, you just needed `PEX_SCRIPT=foo ./my.pex foo-args`: https://pex.readthedocs.io/en/v2.1.137/api/vars.html#PEX_SCRIPT