diff options
| author | Berk D. Demir <bdd@mindcast.org> | 2025-05-12 09:22:13 -0700 |
|---|---|---|
| committer | Berk D. Demir <bdd@mindcast.org> | 2025-05-12 09:58:28 -0700 |
| commit | e4bf5ce70d7290428e2e315a77ac16b4727a8f14 (patch) | |
| tree | b4630cfa4074c0f5c6c1b1a24afbb54dfe7506c6 /pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch | |
| parent | 1f2b2b8ef51ac2221e9131b0b7828d5c6d9557fb (diff) | |
nixos/activation: Fix shellcheck test failure
lib/test.nix relies on `fileset.toSource` which creates a source dir
with the files of interest. `testers.shellcheck` passes all the files in
the source dir to shellcheck. The issue is related to relative path
sourcing, i.e. `source ./lib.sh` where shellcheck cannot make any
assumptions about the working directory.
Options were:
1) Disable this warning with a directive
Prior disabling in the tree:
- pkgs/tools/nix/info/info.sh
- nixos/modules/testing/test-instrumentation.nix
2) Set source-path to SCRIPTDIR with a directive
https://github.com/koalaman/shellcheck/wiki/Directive#source-path
Even though we don't enable external script following for shellcheck
with `-x` flag given every file in the source dir is passed, this
directive seems to capture the intent to help shellcheck a bit
better.
Went with option 2.
Diffstat (limited to 'pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch')
0 files changed, 0 insertions, 0 deletions
