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

Check for "permissions-blindness" before calculating Artifacts git tree hashes #1573

Closed
wants to merge 2 commits into from

Conversation

staticfloat
Copy link
Member

We need this to be more general than just skipping Windows; if we are on
Linux but using an NFS share or FAT32 filesystems, (for instance) we can
run into the same issues. So we instead probe for the ability to have a
sane chmod()/isexecutable() run, and if that fails, we do not bother
to calculate git tree hashes. This should transparently start to
calculate the proper git tree hashes on Windows once
JuliaLang/julia#33212 is fixed

@staticfloat staticfloat force-pushed the sf/permissions_blind_filesystems branch from cc748dd to ba92a43 Compare December 31, 2019 00:08
@staticfloat
Copy link
Member Author

Ah, we explicitly run some git tree hash checks, so the Sys.isexecutable() change here breaks things.

@staticfloat staticfloat force-pushed the sf/permissions_blind_filesystems branch from 1b97a56 to 756f956 Compare December 31, 2019 01:12
@KristofferC
Copy link
Member

What's the status of this?

@staticfloat staticfloat force-pushed the sf/permissions_blind_filesystems branch 3 times, most recently from e60d1cf to 3f0e1ec Compare April 28, 2020 17:56
@staticfloat
Copy link
Member Author

This is good to go; I reverted the change to make use of Sys.isexecutable() until JuliaLang/julia#35625 is merged; once that's merged we can change the behavior here (although I suppose it should probably be version-gated)

…ee hashes

We need this to be more general than just skipping Windows; if we are on
Linux but using an NFS share or FAT32 filesystems, (for instance) we can
run into the same issues.  So we instead probe for the ability to have a
sane `chmod()`/`isexecutable()` run, and if that fails, we do not bother
to calculate git tree hashes.  This should transparently start to
calculate the proper git tree hashes on Windows once
JuliaLang/julia#33212 is fixed
@staticfloat
Copy link
Member Author

On further testing, it appears that when we use 7z as an extraction engine, it doesn't save permissions properly anyway. So let's go with the other option and just let the disk deal with things as it will.

@DilumAluthge DilumAluthge deleted the sf/permissions_blind_filesystems branch March 19, 2021 21:57
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