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

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

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
2 checks passed
@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

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/introducing-the-nixpkgs-contributors-open-collective-empowering-nixos-growth-to-contributors/33799/13

@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.

None yet

3 participants