Open montchr opened 8 months ago
Reason: packages/shells/cod/default.nix
!= ./packages/shells/cod/default.nix
. You could run with explicit path rather than the default .
.
Should we canonicalize more paths?
Aha, you're right -- I included the leading ./
and that worked.
You could run with explicit path rather than the default
.
.
True, though the example I provided was limited to provide a demonstration. Basically my goal was to use --no-lambda-pattern-names
for everything under ./packages
, but omit that flag everywhere else. Here's what I ended up with in my project's Justfile:
deadnix-params := '--no-underscore'
# <- Lint files
lint: (deadnix '--fail')
statix check
# <- Write linter fixes to files
fix: (deadnix "--edit")
statix fix
[private]
deadnix ARGS='--fail':
fd -t f -e nix --exclude='packages/**/*.nix' --exec-batch \
deadnix {{ARGS}} {{deadnix-params}}
fd -t f -e nix . packages --exec-batch \
deadnix {{ARGS}} --no-lambda-pattern-names {{deadnix-params}}
Should we canonicalize more paths?
Could you clarify what you mean by "canonicalize" in this context?
Could you clarify what you mean by "canonicalize" in this context?
I mean adding more Path::canonicalize()
than we already have.
As titled:
Edit: This is v1.2.0 from nixos-unstable. I figured that'd be the most recent, but it looks like there's also v1.2.1. However, it makes no difference: