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

Warn if files with “store” persistence would conflict with files in the worktree #84

Open
sellout opened this issue Aug 12, 2024 · 0 comments

Comments

@sellout
Copy link
Owner

sellout commented Aug 12, 2024

Even though these files won’t actually conflict, having files in both the Nix store and the worktree can lead to confusing and inconsistent behavior.

E.g., if clang-format is configured via Project Manager to look up its configuration in the Nix store, but there is also a .clang-format file in the worktree (whether committed or not), running clang-format outside of a Project Manager environment will use the configuration from the worktree while running it inside a Project Manager environment will use the configuration from the Nix store.

Warnings would alert users to these inconsistencies early. And there should be a configuration option to silence the warning for any or all files that could trigger this.

@sellout sellout changed the title Warn if files with “store” persistence _would_ conflict with files in the worktree Warn if files with “store” persistence would conflict with files in the worktree Aug 12, 2024
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

No branches or pull requests

1 participant