You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lint a single file, currently only whole dirs can be linted
will be needed for ci usage
$ nix run github:siraben/nix-lint -- ./pkgs/top-level/all-packages.nix
✔ What anti-pattern do you want to debug? ·
Error: ENOTDIR: not a directory, scandir './pkgs/top-level/all-packages.nix'
at readdirSync (node:fs:1392:3)
at /nix/store/mka1y2a48sdq8gw254ibxdyllcj1pkzb-nix-lint/libexec/nix-lint/deps/nix-lint/built/index.js:84:34
at step (/nix/store/mka1y2a48sdq8gw254ibxdyllcj1pkzb-nix-lint/libexec/nix-lint/deps/nix-lint/built/index.js:34:23)
at Object.next (/nix/store/mka1y2a48sdq8gw254ibxdyllcj1pkzb-nix-lint/libexec/nix-lint/deps/nix-lint/built/index.js:15:53)
at /nix/store/mka1y2a48sdq8gw254ibxdyllcj1pkzb-nix-lint/libexec/nix-lint/deps/nix-lint/built/index.js:9:71
at new Promise (<anonymous>)
at __awaiter (/nix/store/mka1y2a48sdq8gw254ibxdyllcj1pkzb-nix-lint/libexec/nix-lint/deps/nix-lint/built/index.js:5:12)
at recurseDir (/nix/store/mka1y2a48sdq8gw254ibxdyllcj1pkzb-nix-lint/libexec/nix-lint/deps/nix-lint/built/index.js:82:12)
at /nix/store/mka1y2a48sdq8gw254ibxdyllcj1pkzb-nix-lint/libexec/nix-lint/deps/nix-lint/built/index.js:152:86
at Array.map (<anonymous>) {
errno: -20,
syscall: 'scandir',
code: 'ENOTDIR',
path: './pkgs/top-level/all-packages.nix'
}
The text was updated successfully, but these errors were encountered:
lint for configureFlags which are not lists
ex.
configureFlags = "--with-lua=yes";
should be
configureFlags = [ "--with-lua=yes" ];
more examples https://github.com/NixOS/nixpkgs/pull/44423/files
for stdenv: Deprecate string configureFlags NixOS/nixpkgs#45886
lint a single file, currently only whole dirs can be linted
will be needed for ci usage
The text was updated successfully, but these errors were encountered: