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

Feature Request: --exclude parameter and builtin default excludes #239

Closed
phip1611 opened this issue Aug 26, 2024 · 2 comments
Closed

Feature Request: --exclude parameter and builtin default excludes #239

phip1611 opened this issue Aug 26, 2024 · 2 comments

Comments

@phip1611
Copy link

Hi there!

Currently, nixfmt . fails in projects where I use direnv as it tries to reformat something in .direnv:

nixfmt: ./.direnv/flake-inputs/pgildni8kbdhq7b28006b7px1qjf6jyp-source/nix: openTempFileWithDefaultPermissions: permission denied (Read-only file system)

A nice solution would be:

  • automatic excludes (gitignore file? hardcoded list, such as .direnv)
  • -E/--exclude parameter

Would be cool to see this in the future. Keep up the great work!

@infinisil
Copy link
Member

This is a known issue, but we decided to defer file filtering to other tools: #151 (comment)

@phip1611
Copy link
Author

Thanks!

@github-project-automation github-project-automation bot moved this from Todo to Done in Nix formatting Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants