Skip to content
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

Ignore ownership and permissions of files in OTP source archives #515

Merged
merged 1 commit into from Mar 16, 2024

Conversation

vassilevsky
Copy link
Contributor

@vassilevsky vassilevsky commented Mar 12, 2024

When run as root in some environments (such as Kaniko build in Docker executor in GitLab CI), Tar tries to set extracted files' uid, gid, suid, sgid, etc exactly as in the archive. This process can fail, because the build system might not have them.

This change was discussed in issue #513.

I have checked BSD tar on macOS Sonoma, GNU tar in CentOS, Ubuntu, Debian (all latest), and these flags are present everywhere.

Copy link
Contributor

@paulo-ferraz-oliveira paulo-ferraz-oliveira left a comment

Choose a reason for hiding this comment

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

Change seems sane, and as per previous discussion.

@paulo-ferraz-oliveira
Copy link
Contributor

paulo-ferraz-oliveira commented Mar 12, 2024

@vassilevsky, before we merge this I'll ask you to rebase on top of a pull request I'll create and merge (that re-activates CI for pull requests - edit: #516). Sorry for the inconvenience, but I was hoping to have #507 merged, then decided to postpone it until 27.0-rc1 comes out.

@paulo-ferraz-oliveira
Copy link
Contributor

Sorry for the delay. CI was taking so long I moved to something else and kinda forgot about this. Feel free to rebase.

@vassilevsky
Copy link
Contributor Author

Rebased :)

When run as root in some environments (such as Kaniko build in Docker
executor in GitLab CI), Tar tries to set extracted files' uid, gid,
suid, sgid, etc exactly as in the archive. This process can fail,
because the build system might not have them.
@paulo-ferraz-oliveira
Copy link
Contributor

Thanks for this.

@paulo-ferraz-oliveira paulo-ferraz-oliveira merged commit f4efae4 into kerl:master Mar 16, 2024
9 checks passed
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.

None yet

2 participants