Skip to content

Conversation

@sgillespie
Copy link
Contributor

Description

When copying files from the nix store to the intermediate directory, ignore the source file permissions. These are coming from the nix store, so they will not be writable.

Without this change, this will result in unexpected Permission denied when manipulating extracted files.

Fixes: #2022

Checklist

  • Commit sequence broadly makes sense
  • Commits have useful messages
  • New tests are added if needed and existing tests are updated
  • Any changes are noted in the changelog
  • Code is formatted with fourmolu on version 0.10.1.0 (which can be run with scripts/fourmolize.sh)
  • Self-reviewed the diff

Migrations

  • The pr causes a breaking change of type a,b or c
  • If there is a breaking change, the pr includes a database migration and/or a fix process for old values, so that upgrade is possible
  • Resyncing and running the migrations provided will result in the same database semantically

If there is a breaking change, especially a big one, please add a justification here. Please elaborate
more what the migration achieves, what it cannot achieve or why a migration is not possible.

When copying files from the nix store to the intermediate directory,
ignore the source file permissions. These are coming from the nix store,
so they will not be writable.

Without this change, this will result in unexpected `Permission denied`
when manipulating extracted files.

Fixes: IntersectMBO#2022
@sgillespie sgillespie requested a review from a team as a code owner November 12, 2025 15:48
@sgillespie sgillespie merged commit 88c1947 into IntersectMBO:master Nov 12, 2025
12 checks passed
@sgillespie sgillespie deleted the fix/dist-perms branch November 12, 2025 19:41
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.

Make schema directory in tarball attached to the GitHub release writable

3 participants