juspay / nix-health

REPO MOVED https://github.com/juspay/omnix/tree/main/crates/nix_health
https://github.com/juspay/omnix/tree/main/crates/nix_rs
29 stars 2 forks source link

Check for sanity of `.gitignore` #15

Open srid opened 4 months ago

srid commented 4 months ago

... when run in project-mode (nix-health <flake-path-or-url>).

For eg., to prevent people from (accidentally) committing the result symlink!

diff --git a/result b/result
new file mode 120000
index 0000000..7ea2df8
--- /dev/null
+++ b/result
@@ -0,0 +1 @@
+/nix/store/3i60q0ay9ig47x6vn81wz2hvgg6vk0ny-ab-haskell-0.1.0.0
\ No newline at end of file
srid commented 4 months ago

More generally, we can look for similar ignores: