-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Hi !
I'm building a small CLI tool and I'm using please to produce a .pex file that I want to distribute to my user.
My problem is that if I distribute a newer version of the .pex file, it appears to get the same stamp, and will try to extract to the same cache folder. Since the pex has already been extracted here, it's not extracted again, and the old code runs.
If my understanding is correct, the __PEX_STAMP__ value, which is used to select the path where the pex file is extracted comes from $RULE_HASH which doesn't change when the built content changes, but only when the rules themselves changes.
I'm not sure I really understand why the rule hash is used instead of the content of the built files themselves. Since I'm not building for a container use case, I need to be able to update the app of my user's boxes.
Would you accept a PR allowing to use the hash of the files instead of the rule hash ? Would that be a fix ?