https://pantsbuild.org/ logo
#general
Title
# general
h

high-yak-85899

05/09/2022, 7:35 PM
I'm trying to figure out some software update tooling things and looking to get some opinions here. I'm looking to build out a pex binary that is capable of updating itself (kind of like how you could
pip install -U pip
). Has anyone done this before and, if so, how?
1
w

wide-midnight-78598

05/09/2022, 7:39 PM
Do you mean a pex that updates its internals? Or something where you have a symlink to pex.old and then the update re-points a symlink to pex.new ?
h

high-yak-85899

05/09/2022, 7:41 PM
I guess I'm open to whatever. Core of the issue right now is say I have
my_pex
1.0 deployed and running. I want to be able to bump that to
my_pex
1.1 using
my_pex
.
w

wide-midnight-78598

05/09/2022, 7:43 PM
So, what I'm doing is similar to what I mentioned, but I have an external service responsible for the download
I guess you could bundle code that would do that in the pex, but seems brittle
h

high-yak-85899

05/09/2022, 7:44 PM
Where does your external service that does the updating come from/get updated?
w

wide-midnight-78598

05/09/2022, 8:03 PM
In my case, I have a systemd service that always runs (it's a pex too), but it is almost never updated
h

hundreds-father-404

05/12/2022, 3:57 PM
Yeah I can't envision any such mechanism other than something like what SJ describes
2 Views