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

Fix: Allow complex file modes for debs and apks. #395

Merged
merged 1 commit into from
Nov 6, 2021

Conversation

erikgeiser
Copy link
Member

This PRs fixes #392 by passing the full file mode instead of just the permissions (which is the mode masked with 0o777) to the tar header. It also added acceptance tests with suid bit for all packagers and documentation that reminds users to specify the mode in octal.

@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Nov 5, 2021
@vercel vercel bot temporarily deployed to Preview November 5, 2021 20:12 Inactive
@codecov
Copy link

codecov bot commented Nov 5, 2021

Codecov Report

Merging #395 (fa18f85) into master (685352f) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #395      +/-   ##
==========================================
+ Coverage   64.66%   64.70%   +0.03%     
==========================================
  Files          14       14              
  Lines        1834     1836       +2     
==========================================
+ Hits         1186     1188       +2     
  Misses        512      512              
  Partials      136      136              
Impacted Files Coverage Δ
apk/apk.go 68.78% <100.00%> (+0.09%) ⬆️
deb/deb.go 66.10% <100.00%> (+0.07%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 685352f...fa18f85. Read the comment docs.

Copy link
Contributor

@djgilcrease djgilcrease left a comment

Choose a reason for hiding this comment

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

LGTM

@caarlos0 caarlos0 merged commit 563d480 into goreleaser:master Nov 6, 2021
@caarlos0
Copy link
Member

caarlos0 commented Nov 6, 2021

noice, thanks!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File Mode issue when using setuid bits
3 participants