Skip to content

Instantly share code, notes, and snippets.

@thomasjm
Created July 9, 2024 03:30
Show Gist options
  • Save thomasjm/53c9211714f9c034c8f52a9f7257cb43 to your computer and use it in GitHub Desktop.
Save thomasjm/53c9211714f9c034c8f52a9f7257cb43 to your computer and use it in GitHub Desktop.
runtests.sh output
tom@desktop2 development/ruby-modules (master) » ./runtests.sh
++ dirname ./runtests.sh
+ cd .
+ find . -name text.nix
++ find . -name test.nix
+ testfiles='./with-packages/test.nix
./bundler-env/test.nix
./bundled-common/test.nix'
+ nix-build -E 'with import <nixpkgs> {}; callPackage testing/driver.nix { testFiles = [ ./with-packages/test.nix
./bundler-env/test.nix
./bundled-common/test.nix ]; }' --show-trace
error:
… while calling the 'derivationStrict' builtin
at /builtin/derivation.nix:9:12: (source not available)
… while evaluating derivation 'test-results.tap'
whose name attribute is located at /home/tom/tools/nixpkgs_other/pkgs/stdenv/generic/make-derivation.nix:331:7
… while evaluating attribute 'text' of derivation 'test-results.tap'
at /home/tom/tools/nixpkgs_other/pkgs/build-support/trivial-builders/default.nix:103:16:
102| ({
103| inherit text executable checkPhase allowSubstitutes preferLocalBuild;
| ^
104| passAsFile = [ "text" ]
… from call site
at /home/tom/tools/nixpkgs/pkgs/development/ruby-modules/testing/driver.nix:20:33:
19| in
20| writeText "test-results.tap" (tap.output results)
| ^
21|
… while calling 'output'
at /home/tom/tools/nixpkgs/pkgs/development/ruby-modules/testing/tap-support.nix:15:14:
14| {
15| output = reports: ''
| ^
16| TAP version 13
… while calling anonymous lambda
at /home/tom/tools/nixpkgs/pkgs/development/ruby-modules/testing/driver.nix:18:40:
17|
18| results = builtins.concatLists (map (file: callPackage file testTools) testFiles);
| ^
19| in
… from call site
at /home/tom/tools/nixpkgs/pkgs/development/ruby-modules/testing/driver.nix:18:46:
17|
18| results = builtins.concatLists (map (file: callPackage file testTools) testFiles);
| ^
19| in
… while calling 'callPackageWith'
at /home/tom/tools/nixpkgs_other/lib/customisation.nix:212:35:
211| */
212| callPackageWith = autoArgs: fn: args:
| ^
213| let
… from call site
at /home/tom/tools/nixpkgs_other/lib/customisation.nix:225:10:
224| # Filter out arguments that have a default value
225| (filterAttrs (name: value: ! value)
| ^
226| # Filter out arguments that would be passed
… while calling 'filterAttrs'
at /home/tom/tools/nixpkgs_other/lib/attrsets.nix:646:5:
645| pred:
646| set:
| ^
647| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));
… from call site
at /home/tom/tools/nixpkgs_other/lib/customisation.nix:215:15:
214| f = if isFunction fn then fn else import fn;
215| fargs = functionArgs f;
| ^
216|
… while calling 'functionArgs'
at /home/tom/tools/nixpkgs_other/lib/trivial.nix:913:18:
912| */
913| functionArgs = f:
| ^
914| if f ? __functor
error: 'functionArgs' requires a function
at «none»:0: (source not available)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment