Skip to content

fix(syft-job): sort submission files by posix path for Windows - #9596

Merged
koenvanderveen merged 4 commits into
devfrom
koen/digest-posix-sort
Oct 29, 2026
Merged

koenvanderveen merged 4 commits into
devfrom
koen/digest-posix-sort

Conversation

@koenvanderveen

Copy link
Copy Markdown
Collaborator

WindowsPath sorts case-insensitively and PosixPath case-sensitively, so a DS on Windows and a DO on Linux fed files into the submission hash in a different order and the hashes did not match. _digest now sorts on the relative posix path.

Taken from #9584 by @nethantd. The CRLF part of that PR was dropped, since #9593 sends job files byte for byte and both sides hash raw bytes.

Part of #9551.

🤖 Generated with Claude Code

WindowsPath sorts case-insensitively and PosixPath case-sensitively, so a
DS on Windows and a DO on Linux hashed files in a different order. The CRLF
part of this PR is no longer needed since #9593 sends job files byte for byte.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@koenvanderveen
koenvanderveen merged commit 9e34ea0 into dev Oct 29, 2026
19 checks passed
@koenvanderveen
koenvanderveen deleted the koen/digest-posix-sort branch October 29, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants