-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Warn about untracked files in git repositories #7244
Conversation
Would this be disabled with |
At the moment, not. Should it? |
I'd like to postpone this until after #6530 is merged to avoid creating merge conflicts. |
yeah that'd be nice, some users have |
As I understand it, #6530 introduces a warning for files not under version control anyway, doesn't it? |
It'd be better to only warn when an untracked file would be accessed, such as in |
I don't consider this nice to have but absolutely required to not spam even more warnings when building. |
I'd consider dirtiness and having untracked files to be rather different scenarios. I would avoid warning about files that aren't accessed though. Some people keep untracked files around and unnecessary warnings could again lead to warning fatigue, just like we have with the dirty warning. |
Triaged in the Nix team meeting 2023-03-17: This was discussed briefly: the approach is too eager, we should only warn on access. No concrete decision was made how to proceed. @rti are you still interested in pursuing this? |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-03-17-nix-team-meeting-minutes-41/26614/1 |
@fricklerhandwerk Thanks a lot for the update. Unfortunately I don't have the resources for this any time soon. So I will just close this PR for now. |
This adds a warning about untracked files in fetched git repositories. Addresses #7107 and hopefully helps to avoid some confusion. Maybe this can help as a simple fix before #6530 gets merged.