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

Exclude .bazeliskrc from git archive #431

Merged
merged 2 commits into from
Oct 18, 2023
Merged

Exclude .bazeliskrc from git archive #431

merged 2 commits into from
Oct 18, 2023

Conversation

aherrmann
Copy link
Member

Closes #373

The issue reported at #373 is that Zip archives are not allowed to include symlinks that go outside of the extracted folders. This is a problem for rules_nixpkgs, because the core and toolchain modules are meant to be extracted with strip_prefix set to core, toolchains/python, etc.

The specific issue with .bazelrc files has been resolved since, by replacing symlinks by textual load references in the files themselves.
However, since then the repository gained a new set of symlinks: .bazeliskrc files, introduced in fbeacfd. These cannot be replaced by textual references, and we cannot switch to a single toplevel .bazelversion file as that breaks with a Nix provided Bazel due to NixOS/nixpkgs#80950.

This PR solves the issue by excluding these files from Git generated archives via an export-ignore entry in .gitattributes.

@aherrmann aherrmann added the merge-queue merge on green CI label Oct 18, 2023
@mergify mergify bot merged commit 535887d into master Oct 18, 2023
15 checks passed
@mergify mergify bot deleted the zip-symlinks branch October 18, 2023 13:29
@mergify mergify bot removed the merge-queue merge on green CI label Oct 18, 2023
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.

Symlink to .bazelrc outside zip causes error when extracting 0.9.0 release archive
2 participants