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

extract: normalize tarball modes (like git) #99

Merged
merged 1 commit into from
Apr 16, 2021

Conversation

StefanKarpinski
Copy link
Member

@StefanKarpinski StefanKarpinski commented Apr 9, 2021

This would require a minor version bump since it changes the way extraction handles permissions: this changes it to ignore the exact permissions in the tarball and only pay attention to whether each file is user-executable and then behave as if the permissions where the git-normlized ones of 0o644 and 0o755. Unlike the other permission changes, which were bugfixes to deal with filemode being unreliable on some platforms, this is a policy change. It's currently a draft since I need to change the docs back to an older version where they claimed this was the behavior even though it actually wasn't at the time.

@codecov
Copy link

codecov bot commented Apr 9, 2021

Codecov Report

Merging #99 (010f1a8) into master (61adcb8) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #99   +/-   ##
=======================================
  Coverage   96.36%   96.37%           
=======================================
  Files           4        4           
  Lines         633      634    +1     
=======================================
+ Hits          610      611    +1     
  Misses         23       23           
Impacted Files Coverage Δ
src/extract.jl 96.26% <100.00%> (+0.01%) ⬆️

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 61adcb8...010f1a8. Read the comment docs.

@StefanKarpinski StefanKarpinski force-pushed the sk/normalize-modes branch 3 times, most recently from 2dc5a54 to 39080f5 Compare April 16, 2021 16:35
Also update docs to reflect that we now normalize permissions on tarball
extraction as well as creation. This also adds more detail on
permissions in the relevant section of the README.
@StefanKarpinski StefanKarpinski marked this pull request as ready for review April 16, 2021 16:44
@StefanKarpinski
Copy link
Member Author

Updated the docs so this is now ready for merging.

@StefanKarpinski StefanKarpinski merged commit 82cc7dd into master Apr 16, 2021
@StefanKarpinski StefanKarpinski deleted the sk/normalize-modes branch April 16, 2021 22:09
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.

1 participant