-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fetchTree has inconsistent behavior between Linux and Darwin (libarchive behavior) #9290
Comments
roberth
added
the
fetching
Networking with the outside (non-Nix) world, input locking
label
Nov 3, 2023
Possible fix:
|
Related: #9327 (comment) |
bryanhonof
added a commit
to bryanhonof/nix
that referenced
this issue
Dec 7, 2023
…y with AppleDouble files AppleDouble files were extracted differently on macOS machines than on other UNIX's. Setting `archive_read_set_format_option(this->archive, NULL ,"mac-ext",NULL)` fixes this problem, since it just ignores the AppleDouble filel and treats it as a normal one. This was a problem since it caused source archives to be different between macOS and Linux. Ref: NixOS#9290
bryanhonof
added a commit
to bryanhonof/nix
that referenced
this issue
Dec 7, 2023
…y with AppleDouble files AppleDouble files were extracted differently on macOS machines than on other UNIX's. Setting `archive_read_set_format_option(this->archive, NULL ,"mac-ext",NULL)` fixes this problem, since it just ignores the AppleDouble filel and treats it as a normal one. This was a problem since it caused source archives to be different between macOS and Linux. Ref: NixOS#9290
bryanhonof
added a commit
to bryanhonof/nix
that referenced
this issue
Dec 7, 2023
…y with AppleDouble files AppleDouble files were extracted differently on macOS machines than on other UNIX's. Setting `archive_read_set_format_option(this->archive, NULL ,"mac-ext",NULL)` fixes this problem, since it just ignores the AppleDouble file and treats it as a normal one. This was a problem since it caused source archives to be different between macOS and Linux. Ref: NixOS#9290
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cc: @tomberek
Describe the bug
When Nix tries to fetch a git repository that contains a so called AppleDouble file, it'll filter out that file on Darwin machines, but it will copy them over on Linux machines. This results in a NAR hash mismatch.
Steps To Reproduce
._
(dot underscore) as a prefixbuiltins.fetchTree
to fetch said repo on a Linux machineExpected behavior
The NAR hashes for source code should be the same, regardless of architecture.
nix-env --version
outputAdditional context
._
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: