Skip to content

Comments

clone: more forcefully clean clones of untracked files and empty dirs#650

Merged
cole-h merged 1 commit intoNixOS:releasedfrom
lilyinstarlight:fix/clone-clean-untracked-files-empty-dirs
Sep 14, 2023
Merged

clone: more forcefully clean clones of untracked files and empty dirs#650
cole-h merged 1 commit intoNixOS:releasedfrom
lilyinstarlight:fix/clone-clean-untracked-files-empty-dirs

Conversation

@lilyinstarlight
Copy link
Member

This should fix the erroneous error at https://logs.ofborg.org/?attempt_id=6c11441a-6d97-47a2-968b-57581683ef63&key=nixos%2Fnixpkgs.252154

Basically on darwin with a case-insensitive filesystem, when checking out from commit NixOS/nixpkgs@17532e1 on PR NixOS/nixpkgs#252154 (which has a case clash) and then trying to later do a clean checkout, git leaves an empty directory behind due to the clash

When the nixpkgs tree was then later evaluated after NixOS/nixpkgs@f87dc39 (which removed the case clash), the empty directory was still there in the local clone which got copied to the nix store and the build then failed due to spurious files/directories

Copy link
Member

@cole-h cole-h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll get this deployed tomorrow.

@cole-h cole-h merged commit 653829c into NixOS:released Sep 14, 2023
@lilyinstarlight lilyinstarlight deleted the fix/clone-clean-untracked-files-empty-dirs branch September 14, 2023 21:35
@cole-h
Copy link
Member

cole-h commented Sep 15, 2023

(Deployed.)

@nixos-discourse
Copy link

@infinisil infinisil mentioned this pull request Dec 11, 2023
13 tasks
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.

3 participants