Skip to content

pex files with different content gets same stamp #106

@elthariel

Description

@elthariel

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions