Skip to content

hack(util): ignore uid/gid chances for envbuilder binary in CacheHasher() #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 3, 2024

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Aug 2, 2024

I spent way too long looking at RedoHasher but this is the place.
Calling DoCacheProbe from a separate binary breaks the assumption that envbuilder is running as root, which means we suddenly have to care about ownership of certain files.
My regrettable workaround for this right now is to selectively lie about it.

@johnstcn johnstcn requested a review from mafredri August 2, 2024 20:44
@johnstcn johnstcn self-assigned this Aug 2, 2024
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wish we didn't need this, but LFG!

@johnstcn johnstcn merged commit 10d1800 into main Aug 3, 2024
9 checks passed
@johnstcn johnstcn deleted the cj/ignore-uid-gid-changes-for-envbuilder branch August 3, 2024 15:35
johnstcn added a commit that referenced this pull request Aug 7, 2024
johnstcn added a commit that referenced this pull request Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants