Diff of the two buildlogs: -- --- b1/build.log 2024-01-07 13:37:58.107070631 +0000 +++ b2/build.log 2024-01-07 13:49:53.631339888 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun Jan 7 01:35:22 -12 2024 -I: pbuilder-time-stamp: 1704634522 +I: Current time: Mon Jan 8 03:38:11 +14 2024 +I: pbuilder-time-stamp: 1704634691 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -18,7 +18,7 @@ I: copying [./node-yargs_15.3.1+repack-2.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' -gpgv: keyblock resource '/tmp/dpkg-verify-sig.H20CUKy_/trustedkeys.kbx': General error +gpgv: keyblock resource '/tmp/dpkg-verify-sig.j5hL9nSD/trustedkeys.kbx': General error gpgv: Signature made Sat Dec 5 17:08:10 2020 gpgv: using RSA key 00DFE58B8B555779D1005EC9F6D74CA7C999EEE9 gpgv: Can't check signature: No public key @@ -34,49 +34,80 @@ dpkg-source: info: applying remove-cross-spawn.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/23146/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/6517/tmp/hooks/D01_modify_environment starting +debug: Running on cbxi4b. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Jan 7 13:39 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/6517/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/6517/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=3 ' - DISTRIBUTION='bullseye' - HOME='/root' - HOST_ARCH='armhf' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="1" [2]="4" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") + BASH_VERSION='5.1.4(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=4 ' + DIRSTACK=() + DISTRIBUTION=bullseye + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='a71bda5f237a4e0e987f850d5b8e9630' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='23146' - PS1='# ' - PS2='> ' + INVOCATION_ID=da835999194a4133b15dc78dd7629563 + LANG=C + LANGUAGE=it_CH:it + LC_ALL=C + MACHTYPE=arm-unknown-linux-gnueabihf + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnueabihf + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=6517 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.Vibf6c0k/pbuilderrc_855m --distribution bullseye --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.Vibf6c0k/b1 --logfile b1/build.log node-yargs_15.3.1+repack-2.dsc' - SUDO_GID='114' - SUDO_UID='108' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:3142/' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.Vibf6c0k/pbuilderrc_si34 --distribution bullseye --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.Vibf6c0k/b2 --logfile b2/build.log node-yargs_15.3.1+repack-2.dsc' + SUDO_GID=116 + SUDO_UID=112 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:3142/ I: uname -a - Linux virt64a 6.1.0-17-arm64 #1 SMP Debian 6.1.69-1 (2023-12-30) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-17-armmp #1 SMP Debian 6.1.69-1 (2023-12-30) armv7l GNU/Linux I: ls -l /bin total 3580 -rwxr-xr-x 1 root root 816764 Mar 27 2022 bash @@ -136,7 +167,7 @@ -rwxr-xr-x 1 root root 30732 Sep 22 2020 rmdir -rwxr-xr-x 1 root root 14144 Sep 27 2020 run-parts -rwxr-xr-x 1 root root 76012 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Jan 7 09:29 sh -> dash + lrwxrwxrwx 1 root root 9 Jan 7 13:39 sh -> /bin/bash -rwxr-xr-x 1 root root 22532 Sep 22 2020 sleep -rwxr-xr-x 1 root root 55360 Sep 22 2020 stty -rwsr-xr-x 1 root root 46704 Jan 20 2022 su @@ -162,7 +193,7 @@ -rwxr-xr-x 1 root root 2206 Apr 10 2022 zless -rwxr-xr-x 1 root root 1842 Apr 10 2022 zmore -rwxr-xr-x 1 root root 4577 Apr 10 2022 znew -I: user script /srv/workspace/pbuilder/23146/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/6517/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -436,7 +467,7 @@ Get: 196 http://deb.debian.org/debian bullseye/main armhf node-traverse all 0.6.6-2 [7448 B] Get: 197 http://deb.debian.org/debian bullseye/main armhf node-hashish all 0.0.4+git34dfe43-1.1 [6088 B] Get: 198 http://deb.debian.org/debian bullseye/main armhf pkg-js-tools all 0.9.65 [38.0 kB] -Fetched 33.4 MB in 3s (9669 kB/s) +Fetched 33.4 MB in 11s (3041 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package bsdextrautils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 17486 files and directories currently installed.) @@ -1253,7 +1284,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/node-yargs-15.3.1+repack/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../node-yargs_15.3.1+repack-2_source.changes +I: user script /srv/workspace/pbuilder/6517/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for bullseye +I: user script /srv/workspace/pbuilder/6517/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/node-yargs-15.3.1+repack/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../node-yargs_15.3.1+repack-2_source.changes dpkg-buildpackage: info: source package node-yargs dpkg-buildpackage: info: source version 15.3.1+repack-2 dpkg-buildpackage: info: source distribution unstable @@ -1283,224 +1318,218 @@ + mocha --require ./test/before.js --timeout=30000 --check-leaks - ✓ should expose yargs-parser as Parser + ✓ should expose yargs-parser as Parser (67ms) Argsert - ✓ does not warn if optional argument is not provided - ✓ warn if wrong type is provided for optional argument - ✓ does not warn if optional argument is valid - ✓ warns if required argument is not provided - ✓ warns if required argument is of wrong type + ✓ does not warn if optional argument is not provided (104ms) + ✓ warn if wrong type is provided for optional argument (107ms) + ✓ does not warn if optional argument is valid (41ms) + ✓ warns if required argument is not provided (40ms) + ✓ warns if required argument is of wrong type (45ms) ✓ supports a combination of required and optional arguments - ✓ warns if too many arguments are provided + ✓ warns if too many arguments are provided (39ms) ✓ warn with argument position if wrong type is provided for argument - ✓ warn with generic argument position if wrong type is provided for seventh or greater argument - ✓ configures function to accept 0 parameters, if only arguments object is provided + ✓ warn with generic argument position if wrong type is provided for seventh or greater argument (53ms) + ✓ configures function to accept 0 parameters, if only arguments object is provided (49ms) ✓ allows for any type if * is provided ✓ should ignore trailing undefined values - ✓ should not ignore undefined values that are not trailing - ✓ supports null as special type + ✓ should not ignore undefined values that are not trailing (53ms) + ✓ supports null as special type (45ms) Command - ✓ preserves top-level envPrefix - ✓ respects order of positional arguments when matching commands - ✓ handles positional arguments if command is invoked using .parse() - ✓ invokes command handler repeatedly if parse() is called multiple times - ✓ allows command handler to be invoked repeatedly when help is enabled - ✓ does not require builder function to return - ✓ allows builder function to parse argv without returning - ✓ allows builder function to return parsed argv - ✓ ignores extra spaces in command string - ✓ executes a command via alias - ✓ should kick along [demand] configuration to commands (38ms) + ✓ preserves top-level envPrefix (602ms) + ✓ respects order of positional arguments when matching commands (151ms) + ✓ handles positional arguments if command is invoked using .parse() (187ms) + ✓ invokes command handler repeatedly if parse() is called multiple times (107ms) + ✓ allows command handler to be invoked repeatedly when help is enabled (193ms) + ✓ does not require builder function to return (112ms) + ✓ allows builder function to parse argv without returning (101ms) + ✓ allows builder function to return parsed argv (116ms) + ✓ ignores extra spaces in command string (136ms) + ✓ executes a command via alias (137ms) + ✓ should kick along [demand] configuration to commands (440ms) ✓ should support numeric commands - ✓ should not execute command if it is proceeded by another positional argument - ✓ should allow positional arguments for inner commands in strict mode, when no handler is provided + ✓ should not execute command if it is proceeded by another positional argument (40ms) + ✓ should allow positional arguments for inner commands in strict mode, when no handler is provided (63ms) ✓ does not coerce number from positional with leading "+" positional arguments - ✓ parses command string and populates optional and required positional arguments - ✓ populates inner argv with positional arguments - ✓ populates outer argv with positional arguments when unknown-options-as-args is not set - ✓ populates outer argv with positional arguments when unknown-options-as-args is set - ✓ populates argv with camel-case variants of arguments when possible - ✓ populates argv with camel-case variants of variadic args when possible - ✓ populates subcommand's inner argv with positional arguments - ✓ ignores positional args for aliases - ✓ does not overwrite existing values in argv for keys that are not positional - ✓ does not load config twice when command executed - ✓ handles -- in conjunction with positional arguments - ✓ continues to support populate-- for commands, post #1457 + ✓ parses command string and populates optional and required positional arguments (49ms) + ✓ populates inner argv with positional arguments (46ms) + ✓ populates outer argv with positional arguments when unknown-options-as-args is not set (42ms) + ✓ populates outer argv with positional arguments when unknown-options-as-args is set (86ms) + ✓ populates argv with camel-case variants of arguments when possible (84ms) + ✓ populates argv with camel-case variants of variadic args when possible (153ms) + ✓ populates subcommand's inner argv with positional arguments (91ms) + ✓ ignores positional args for aliases (51ms) + ✓ does not overwrite existing values in argv for keys that are not positional (52ms) + ✓ does not load config twice when command executed (107ms) + ✓ handles -- in conjunction with positional arguments (95ms) + ✓ continues to support populate-- for commands, post #1457 (105ms) variadic - ✓ allows required arguments to be variadic - ✓ allows optional arguments to be variadic - ✓ fails if required arguments are missing - ✓ does not fail if zero optional arguments are provided - ✓ only allows the last argument to be variadic - ✓ allows camel-case, variadic arguments, and strict mode to be combined + ✓ allows required arguments to be variadic (76ms) + ✓ allows optional arguments to be variadic (67ms) + ✓ fails if required arguments are missing (93ms) + ✓ does not fail if zero optional arguments are provided (95ms) + ✓ only allows the last argument to be variadic (71ms) + ✓ allows camel-case, variadic arguments, and strict mode to be combined (70ms) missing positional arguments - ✓ fails if a required argument is missing - ✓ does not fail if optional argument is missing + ✓ fails if a required argument is missing (44ms) + ✓ does not fail if optional argument is missing (44ms) API ✓ accepts string, string as first 2 arguments - ✓ accepts array, string as first 2 arguments - ✓ accepts string, boolean as first 2 arguments - ✓ accepts array, boolean as first 2 arguments - ✓ accepts function as 3rd argument - ✓ accepts options object as 3rd argument - ✓ accepts module (with builder function and handler function) as 3rd argument + ✓ accepts array, string as first 2 arguments (38ms) + ✓ accepts string, boolean as first 2 arguments (49ms) + ✓ accepts array, boolean as first 2 arguments (56ms) + ✓ accepts function as 3rd argument (41ms) + ✓ accepts options object as 3rd argument (41ms) + ✓ accepts module (with builder function and handler function) as 3rd argument (51ms) ✓ accepts module (with builder object and handler function) as 3rd argument ✓ accepts module (describe key, builder function) as 1st argument ✓ accepts module (description key, builder function) as 1st argument - ✓ accepts module (desc key, builder function) as 1st argument + ✓ accepts module (desc key, builder function) as 1st argument (40ms) ✓ accepts module (false describe, builder function) as 1st argument ✓ accepts module (missing describe, builder function) as 1st argument ✓ accepts module (describe key, builder object) as 1st argument - ✓ accepts module (missing handler function) as 1st argument - ✓ accepts module (with command array) as 1st argument - ✓ accepts module (with command string and aliases array) as 1st argument - ✓ accepts module (with command array and aliases array) as 1st argument - ✓ accepts module (with command string and aliases string) as 1st argument + ✓ accepts module (missing handler function) as 1st argument (40ms) + ✓ accepts module (with command array) as 1st argument (41ms) + ✓ accepts module (with command string and aliases array) as 1st argument (108ms) + ✓ accepts module (with command array and aliases array) as 1st argument (66ms) + ✓ accepts module (with command string and aliases string) as 1st argument (136ms) commandDir - ✓ supports relative dirs (49ms) - ✓ supports nested subcommands - ✓ supports a "recurse" boolean option - ✓ supports a "visit" function option - ✓ detects and ignores cyclic dir references - ✓ derives 'command' string from filename when not exported + ✓ supports relative dirs (350ms) + ✓ supports nested subcommands (187ms) + ✓ supports a "recurse" boolean option (203ms) + ✓ supports a "visit" function option (185ms) + ✓ detects and ignores cyclic dir references (166ms) + ✓ derives 'command' string from filename when not exported (164ms) help command - ✓ displays command help appropriately (45ms) + ✓ displays command help appropriately (205ms) positional aliases ✓ allows an alias to be defined for a required positional argument - ✓ allows an alias to be defined for an optional positional argument + ✓ allows an alias to be defined for an optional positional argument (40ms) ✓ allows variadic and positional arguments to be combined global parsing hints config - ✓ does not load config for command if global is false - ✓ loads config for command by default + ✓ does not load config for command if global is false (153ms) + ✓ loads config for command by default (102ms) validation - ✓ resets implies logic for command if global is false - ✓ applies conflicts logic for command by default - ✓ resets conflicts logic for command if global is false - ✓ applies custom checks globally by default - ✓ resets custom check if global is false - ✓ applies demandOption globally + ✓ resets implies logic for command if global is false (43ms) + ✓ applies conflicts logic for command by default (62ms) + ✓ resets conflicts logic for command if global is false (50ms) + ✓ applies custom checks globally by default (58ms) + ✓ resets custom check if global is false (45ms) + ✓ applies demandOption globally (62ms) strict - ✓ defaults to false when not called - ✓ can be enabled just for a command - ✓ applies strict globally by default - ✓ does not fail strict check due to postional command arguments - ✓ does not fail strict check due to postional command arguments in nested commands - ✓ allows a command to override global` - ✓ does not fire command if validation fails + ✓ defaults to false when not called (42ms) + ✓ can be enabled just for a command (47ms) + ✓ applies strict globally by default (50ms) + ✓ does not fail strict check due to postional command arguments (74ms) + ✓ does not fail strict check due to postional command arguments in nested commands (65ms) + ✓ allows a command to override global` (59ms) + ✓ does not fire command if validation fails (201ms) types - ✓ applies array type globally - ✓ allows global setting to be disabled for array type - ✓ applies choices type globally + ✓ applies array type globally (91ms) + ✓ allows global setting to be disabled for array type (70ms) + ✓ applies choices type globally (100ms) aliases - ✓ defaults to applying aliases globally - ✓ allows global application of alias to be disabled + ✓ defaults to applying aliases globally (76ms) + ✓ allows global application of alias to be disabled (71ms) coerce - ✓ defaults to applying coerce rules globally - ✓ should bubble errors thrown by coerce function inside commands + ✓ defaults to applying coerce rules globally (69ms) + ✓ should bubble errors thrown by coerce function inside commands (79ms) defaults - ✓ applies defaults globally + ✓ applies defaults globally (56ms) describe - ✓ flags an option as global if a description is set + ✓ flags an option as global if a description is set (137ms) help - ✓ applies help globally + ✓ applies help globally (167ms) version - ✓ applies version globally + ✓ applies version globally (101ms) groups - ✓ should apply custom option groups globally (56ms) + ✓ should apply custom option groups globally (154ms) default commands - ✓ executes default command if no positional arguments given - ✓ executes default command if undefined positional arguments and only command - ✓ executes default command if defined positional arguments and only command - ✓ allows $0 as an alias for a default command - ✓ does not execute default command if another command is provided - ✓ allows default command to be set as alias - ✓ allows command to be run when alias is default command - ✓ the last default command set should take precedence + ✓ executes default command if no positional arguments given (51ms) + ✓ executes default command if undefined positional arguments and only command (82ms) + ✓ executes default command if defined positional arguments and only command (114ms) + ✓ allows $0 as an alias for a default command (66ms) + ✓ does not execute default command if another command is provided (70ms) + ✓ allows default command to be set as alias (50ms) + ✓ allows command to be run when alias is default command (56ms) + ✓ the last default command set should take precedence (72ms) strict - ✓ executes default command when strict mode is enabled - ✓ allows default command aliases, when strict mode is enabled + ✓ executes default command when strict mode is enabled (75ms) + ✓ allows default command aliases, when strict mode is enabled (67ms) usage - ✓ allows you to configure a default command - ✓ throws exception if default command does not have leading $0 + ✓ allows you to configure a default command (107ms) + ✓ throws exception if default command does not have leading $0 (75ms) async - ✓ fails when the promise returned by the command handler rejects - ✓ succeeds when the promise returned by the command handler resolves - ✓ displays error and appropriate help message when handler fails + ✓ fails when the promise returned by the command handler rejects (205ms) + ✓ succeeds when the promise returned by the command handler resolves (195ms) + ✓ displays error and appropriate help message when handler fails (166ms) Completion default completion behavior - ✓ avoids repeating already included commands - ✓ avoids repeating already included options - ✓ avoids repeating options whose aliases are already included - ✓ completes short options with a single dash when the user did not already enter two dashes - ✓ completes short options with two dashes when the user already entered two dashes - ✓ completes single digit options with two dashes - ✓ completes with no- prefix flags defaulting to true when boolean-negation is set - ✓ avoids repeating flags whose negated counterparts are already included - ✓ ignores no- prefix flags when boolean-negation is not set - ✓ completes options for the correct command - ✓ does not complete hidden commands - ✓ does not include positional arguments - ✓ works if command has no options - ✓ returns arguments as completion suggestion, if next contains '-' + ✓ avoids repeating already included commands (180ms) + ✓ avoids repeating already included options (154ms) + ✓ avoids repeating options whose aliases are already included (144ms) + ✓ completes short options with a single dash when the user did not already enter two dashes (99ms) + ✓ completes short options with two dashes when the user already entered two dashes (44ms) + ✓ completes single digit options with two dashes (51ms) + ✓ completes with no- prefix flags defaulting to true when boolean-negation is set (115ms) + ✓ avoids repeating flags whose negated counterparts are already included (64ms) + ✓ ignores no- prefix flags when boolean-negation is not set (79ms) + ✓ completes options for the correct command (122ms) + ✓ does not complete hidden commands (53ms) + ✓ does not include positional arguments (79ms) + ✓ works if command has no options (213ms) + ✓ returns arguments as completion suggestion, if next contains '-' (89ms) generateCompletionScript() - ✓ replaces completion command variable with custom completion command in script - ✓ if $0 has a .js extension, a ./ prefix is added - ✓ allows $0 and cmd to be set + ✓ replaces completion command variable with custom completion command in script (106ms) + ✓ if $0 has a .js extension, a ./ prefix is added (72ms) + ✓ allows $0 and cmd to be set (66ms) completion() - ✓ shows completion script if command registered with completion(cmd) is called - ✓ allows a custom function to be registered for completion - ✓ passes current arg for completion and the parsed arguments thus far to custom function + ✓ shows completion script if command registered with completion(cmd) is called (76ms) + ✓ allows a custom function to be registered for completion (48ms) + ✓ passes current arg for completion and the parsed arguments thus far to custom function (48ms) ✓ if a promise is returned, completions can be asynchronous - ✓ if a promise is returned, errors are handled - ✓ if a callback parameter is provided, completions can be asynchronous + ✓ if a promise is returned, errors are handled (50ms) + ✓ if a callback parameter is provided, completions can be asynchronous (47ms) bash ✓ returns a list of commands as completion suggestions - ✓ avoids interruption from command recommendations - ✓ avoids interruption from default command - ✓ completes options for a command - ✓ does not apply validation when --get-yargs-completions is passed in + ✓ avoids interruption from command recommendations (77ms) + ✓ avoids interruption from default command (80ms) + ✓ completes options for a command (72ms) + ✓ does not apply validation when --get-yargs-completions is passed in (115ms) generateCompletionScript() - ✓ replaces application variable with $0 in script + ✓ replaces application variable with $0 in script (67ms) getCompletion() - ✓ returns default completion to callback - ✓ returns default completion to callback for options + ✓ returns default completion to callback (95ms) + ✓ returns default completion to callback for options (98ms) zsh - ✓ returns a list of commands as completion suggestions - ✓ avoids interruption from command recommendations - ✓ avoids interruption from default command - ✓ completes options for a command - ✓ replaces application variable with $0 in script - ✓ does not apply validation when --get-yargs-completions is passed in - ✓ bails out early when full command matches (49ms) + ✓ returns a list of commands as completion suggestions (88ms) + ✓ avoids interruption from command recommendations (99ms) + ✓ avoids interruption from default command (52ms) + ✓ completes options for a command (169ms) + ✓ replaces application variable with $0 in script (40ms) + ✓ does not apply validation when --get-yargs-completions is passed in (122ms) + ✓ bails out early when full command matches (91ms) getCompletion() - ✓ returns default completion to callback + ✓ returns default completion to callback (61ms) integration tests - ✓ should run as a shell script with no arguments (751ms) - ✓ should run as a shell script with arguments (917ms) - ✓ should run as a node script with no arguments (712ms) - ✓ should run as a node script with arguments (597ms) - ✓ allows --help to be completed without returning help message (699ms) - ✓ flushes all output when --help is executed (7492ms) - ✓ correctly fills positional command args with preceding option (556ms) - ✓ correctly fills positional command args with = assignment in preceding option (546ms) + ✓ should run as a shell script with no arguments (4664ms) + ✓ should run as a shell script with arguments (4449ms) + ✓ should run as a node script with no arguments (4839ms) + ✓ should run as a node script with arguments (6079ms) + ✓ allows --help to be completed without returning help message (4217ms) + 1) flushes all output when --help is executed + ✓ correctly fills positional command args with preceding option (5615ms) + ✓ correctly fills positional command args with = assignment in preceding option (5889ms) path returned by "which" - ✓ should match the actual path to the script file (525ms) - ✓ should match the actual path to the script file, with arguments (528ms) + ✓ should match the actual path to the script file (6530ms) + ✓ should match the actual path to the script file, with arguments (5271ms) load root package.json - version # - ✓ defaults to appropriate version # when yargs is installed normally (762ms) - ✓ defaults to appropriate version # when yargs is symlinked (550ms) - parser settings - ✓ reads parser config settings when yargs is installed normally (556ms) - ✓ reads parser config settings when yargs is installed as a symlink (521ms) - ✓ reads parser config settings when somebody obscures require.main (527ms) - ✓ reads parser config settings when entry file has no extension (530ms) + 2) "before all" hook in "load root package.json" + 3) "after all" hook in "load root package.json" isPromise ✓ returns `false` on non promise value @@ -1514,197 +1543,197 @@ ✓ should add a list of callbacks to global middleware ✓ should throw exception if middleware is not a function ✓ should add a single callback to global middleware - ✓ runs the middleware before reaching the handler - ✓ runs all middleware before reaching the handler + ✓ runs the middleware before reaching the handler (53ms) + ✓ runs all middleware before reaching the handler (45ms) ✓ should be able to register middleware regardless of when middleware is called - ✓ doesn't modify globalMiddleware array when executing middleware - ✓ allows middleware to be added in builder - ✓ passes yargs object to middleware + ✓ doesn't modify globalMiddleware array when executing middleware (39ms) + ✓ allows middleware to be added in builder (54ms) + ✓ passes yargs object to middleware (48ms) ✓ applies aliases before middleware is called async - ✓ fails when the promise returned by the middleware rejects - ✓ calls the command handler when all middleware promises resolve - ✓ calls an async middleware only once for nested subcommands + ✓ fails when the promise returned by the middleware rejects (167ms) + ✓ calls the command handler when all middleware promises resolve (274ms) + ✓ calls an async middleware only once for nested subcommands (145ms) applyBeforeValidation=true - ✓ runs before validation - ✓ throws an error if promise returned and applyBeforeValidation enabled - ✓ runs before validation, when middleware is added in builder - ✓ applies aliases before middleware is called, for global middleware - ✓ applies aliases before middleware is called, when middleware is added in builder + ✓ runs before validation (85ms) + ✓ throws an error if promise returned and applyBeforeValidation enabled (97ms) + ✓ runs before validation, when middleware is added in builder (73ms) + ✓ applies aliases before middleware is called, for global middleware (228ms) + ✓ applies aliases before middleware is called, when middleware is added in builder (126ms) ObjFilter ✓ returns a new reference to the original object if no filter function is given usage tests - ✓ should return valid values when check passes - ✓ should display missing arguments when check fails with a thrown exception - ✓ should display missing arguments when check fails with a return value - ✓ should return a valid result when check condition passes - ✓ should display a failed message when check condition fails - ✓ should return a valid result when demanding a count of non-hyphenated values - ✓ should return a failure message when not enough non-hyphenated arguments are found after a demand count - ✓ should return a custom failure message when not enough non-hyphenated arguments are found after a demand count - ✓ should return a valid result when setting defaults for singles - ✓ should return a valid result when default is set for an alias - ✓ should print a single line when failing and default is set for an alias - ✓ should allow you to set default values for a hash of options - ✓ should display example on fail + ✓ should return valid values when check passes (90ms) + ✓ should display missing arguments when check fails with a thrown exception (199ms) + ✓ should display missing arguments when check fails with a return value (118ms) + ✓ should return a valid result when check condition passes (90ms) + ✓ should display a failed message when check condition fails (145ms) + ✓ should return a valid result when demanding a count of non-hyphenated values (98ms) + ✓ should return a failure message when not enough non-hyphenated arguments are found after a demand count (167ms) + ✓ should return a custom failure message when not enough non-hyphenated arguments are found after a demand count (92ms) + ✓ should return a valid result when setting defaults for singles (76ms) + ✓ should return a valid result when default is set for an alias (83ms) + ✓ should print a single line when failing and default is set for an alias (334ms) + ✓ should allow you to set default values for a hash of options (233ms) + ✓ should display example on fail (173ms) ✓ should succeed when rebase - ✓ should not print usage string if help() is called without arguments - ✓ should add --help as an option for printing usage text if help() is called without arguments + ✓ should not print usage string if help() is called without arguments (90ms) + ✓ should add --help as an option for printing usage text if help() is called without arguments (127ms) demand options - ✓ should show an error along with a custom message on demand fail - ✓ should return valid values when demand passes - ✓ should not show a custom message if msg is null + ✓ should show an error along with a custom message on demand fail (74ms) + ✓ should return valid values when demand passes (102ms) + ✓ should not show a custom message if msg is null (103ms) using .demand() - ✓ should show an error along with the missing arguments on demand fail - ✓ missing argument message given if one command, but an argument not on the list is provided - ✓ missing command message if all the required arguments exist, but not enough commands are provided - ✓ no failure occurs if the required arguments and the required number of commands are provided - ✓ missing command message if all the required arguments exist, but not enough commands are provided + ✓ should show an error along with the missing arguments on demand fail (99ms) + ✓ missing argument message given if one command, but an argument not on the list is provided (103ms) + ✓ missing command message if all the required arguments exist, but not enough commands are provided (136ms) + ✓ no failure occurs if the required arguments and the required number of commands are provided (121ms) + ✓ missing command message if all the required arguments exist, but not enough commands are provided (148ms) using .require() - ✓ should show an error along with the missing arguments on demand fail - ✓ missing argument message given if one command and an argument not on the list are provided + ✓ should show an error along with the missing arguments on demand fail (79ms) + ✓ missing argument message given if one command and an argument not on the list are provided (148ms) min/max demanded count ✓ does not output an error if '_' count is within the min/max range ✓ outputs an error if '_' count is above max ✓ outputs an error if '_' count is below min - ✓ allows a customer error message to be provided - ✓ shouldn't interpret the second argument as a max when it is an array + ✓ allows a customer error message to be provided (62ms) + ✓ shouldn't interpret the second argument as a max when it is an array (47ms) deprecate options using .option(x, {deprecate: [boolean|string]}) - ✓ {deprecated: true} should show [deprecated] - ✓ {deprecated: string} should show [deprecated: string] - ✓ {deprecated: boolean} in sub-command - ✓ {deprecated: string} in sub-command + ✓ {deprecated: true} should show [deprecated] (66ms) + ✓ {deprecated: string} should show [deprecated: string] (64ms) + ✓ {deprecated: boolean} in sub-command (202ms) + ✓ {deprecated: string} in sub-command (94ms) using .deprecateOption(x, [string]) - ✓ .deprecateOption(x) should show [deprecated] - ✓ .deprecateOption(x, string) should show [deprecated: string] - ✓ .deprecateOption(x) in a sub-command - ✓ .deprecateOption(x, string) in a sub-command + ✓ .deprecateOption(x) should show [deprecated] (58ms) + ✓ .deprecateOption(x, string) should show [deprecated: string] (99ms) + ✓ .deprecateOption(x) in a sub-command (151ms) + ✓ .deprecateOption(x, string) in a sub-command (102ms) when exitProcess is false when check fails with a thrown exception - ✓ should display missing arguments once + ✓ should display missing arguments once (67ms) fail() - ✓ is called with the original error message as the first parameter - ✓ is invoked with yargs instance as third argument + ✓ is called with the original error message as the first parameter (69ms) + ✓ is invoked with yargs instance as third argument (80ms) when check() throws error - ✓ fail() is called with the original error object as the second parameter + ✓ fail() is called with the original error object as the second parameter (67ms) when command() throws error - ✓ fail() is called with the original error object as the second parameter + ✓ fail() is called with the original error object as the second parameter (87ms) required arguments - ✓ still requires argument if 'type' hints are given + ✓ still requires argument if 'type' hints are given (69ms) with options object - ✓ should show a failure message if a required option is missing - ✓ should show a failure message if more than one required option is missing + ✓ should show a failure message if a required option is missing (131ms) + ✓ should show a failure message if more than one required option is missing (76ms) with requiresArg method - ✓ should show a failure message if a required option is missing + ✓ should show a failure message if a required option is missing (78ms) with strict() option set - ✓ should fail given an option argument that is not demanded - ✓ should fail given an option argument without a corresponding description - ✓ should fail given multiple option arguments without corresponding descriptions - ✓ should pass given option arguments with corresponding descriptions + ✓ should fail given an option argument that is not demanded (80ms) + ✓ should fail given an option argument without a corresponding description (109ms) + ✓ should fail given multiple option arguments without corresponding descriptions (117ms) + ✓ should pass given option arguments with corresponding descriptions (62ms) with hyphens in options - ✓ fails when an invalid argument is provided - ✓ accepts valid options - ✓ works with aliases - ✓ accepts mixed options with values + ✓ fails when an invalid argument is provided (58ms) + ✓ accepts valid options (65ms) + ✓ works with aliases (61ms) + ✓ accepts mixed options with values (51ms) demand option with boolean flag - ✓ should not report missing required arguments when given an alias + ✓ should not report missing required arguments when given an alias (38ms) with demand option - ✓ should report missing required arguments + ✓ should report missing required arguments (129ms) with required option ✓ should report missing required arguments help option - ✓ should display usage - ✓ should not show both dashed and camelCase aliases - ✓ should use 2 dashes for general 1-digit usage - ✓ should use single dashes for 1-digit boolean key usage - ✓ should use single dashes for 1-digit boolean alias usage - ✓ should use 2 dashes for multiple-digit alias usage + ✓ should display usage (64ms) + ✓ should not show both dashed and camelCase aliases (87ms) + ✓ should use 2 dashes for general 1-digit usage (101ms) + ✓ should use single dashes for 1-digit boolean key usage (124ms) + ✓ should use single dashes for 1-digit boolean alias usage (199ms) + ✓ should use 2 dashes for multiple-digit alias usage (137ms) when exitProcess is false - ✓ should not validate arguments (required argument) - ✓ should not validate arguments (nargs) + ✓ should not validate arguments (required argument) (139ms) + ✓ should not validate arguments (nargs) (138ms) version option - ✓ should display version - ✓ accepts version option as first argument, and version number as second argument - ✓ should default to 'version' as version option + ✓ should display version (41ms) + ✓ accepts version option as first argument, and version number as second argument (48ms) + ✓ should default to 'version' as version option (65ms) when exitProcess is false - ✓ should not validate arguments (required argument) - ✓ should not validate arguments (nargs) + ✓ should not validate arguments (required argument) (84ms) + ✓ should not validate arguments (nargs) (108ms) showHelpOnFail - ✓ should display user supplied message + ✓ should display user supplied message (174ms) exitProcess - ✓ should not call process.exit on error if disabled + ✓ should not call process.exit on error if disabled (107ms) scriptName - ✓ should display user supplied scriptName - ✓ should not alter the user supplied scriptName + ✓ should display user supplied scriptName (242ms) + ✓ should not alter the user supplied scriptName (144ms) wrap - ✓ should wrap argument descriptions onto multiple lines - ✓ should not raise an exception when long default and description are provided - ✓ should wrap the left-hand-column if it takes up more than 50% of the screen - ✓ should not wrap left-hand-column if no description is provided - ✓ should wrap the usage string - ✓ should align span columns when ansi colors are not used in a description - ✓ should align span columns when ansi colors are used in a description + ✓ should wrap argument descriptions onto multiple lines (170ms) + ✓ should not raise an exception when long default and description are provided (68ms) + ✓ should wrap the left-hand-column if it takes up more than 50% of the screen (196ms) + ✓ should not wrap left-hand-column if no description is provided (133ms) + ✓ should wrap the usage string (126ms) + ✓ should align span columns when ansi colors are not used in a description (67ms) + ✓ should align span columns when ansi colors are used in a description (105ms) commands - ✓ should output a list of available commands - ✓ should not show hidden commands - ✓ allows completion command to be hidden - ✓ preserves global wrap() for commands that do not override it - ✓ allows a command to override global wrap() - ✓ resets groups for a command handler, respecting order - ✓ allows global option to be disabled - ✓ can add to preserved groups - ✓ can bump up preserved groups - ✓ should display global non empty groups for commands - ✓ should display global non empty groups for subcommands - ✓ should list a module command only once - ✓ allows a builder function to override default usage() string - ✓ allows a builder function to disable default usage() with null - ✓ displays given command chain with positional args in default usage for subcommand with builder object - ✓ displays given command chain with positional args in default usage for subcommand with builder function - ✓ displays aliases for commands that have them (no wrap) - ✓ displays aliases for commands that have them (with wrap) - ✓ allows a builder to add more than one usage with mutiple usage calls - ✓ allows a builder to disable usage with null after mutiple usage calls - ✓ does not display $0 twice when default commands are enabled + ✓ should output a list of available commands (60ms) + ✓ should not show hidden commands (60ms) + ✓ allows completion command to be hidden (64ms) + ✓ preserves global wrap() for commands that do not override it (136ms) + ✓ allows a command to override global wrap() (233ms) + ✓ resets groups for a command handler, respecting order (102ms) + ✓ allows global option to be disabled (139ms) + ✓ can add to preserved groups (116ms) + ✓ can bump up preserved groups (116ms) + ✓ should display global non empty groups for commands (109ms) + ✓ should display global non empty groups for subcommands (120ms) + ✓ should list a module command only once (48ms) + ✓ allows a builder function to override default usage() string (56ms) + ✓ allows a builder function to disable default usage() with null (62ms) + ✓ displays given command chain with positional args in default usage for subcommand with builder object (116ms) + ✓ displays given command chain with positional args in default usage for subcommand with builder function (64ms) + ✓ displays aliases for commands that have them (no wrap) (76ms) + ✓ displays aliases for commands that have them (with wrap) (170ms) + ✓ allows a builder to add more than one usage with mutiple usage calls (76ms) + ✓ allows a builder to disable usage with null after mutiple usage calls (76ms) + ✓ does not display $0 twice when default commands are enabled (109ms) epilogue - ✓ should display an epilog message at the end of the usage instructions - ✓ supports multiple epilogs - ✓ replaces $0 in epilog string + ✓ should display an epilog message at the end of the usage instructions (41ms) + ✓ supports multiple epilogs (84ms) + ✓ replaces $0 in epilog string (82ms) default - ✓ should indicate that the default is a generated-value, if function is provided - ✓ if a named function is provided, should use name rather than (generated-value) - ✓ default-description take precedence if one is provided - ✓ serializes object and array defaults + ✓ should indicate that the default is a generated-value, if function is provided (137ms) + ✓ if a named function is provided, should use name rather than (generated-value) (133ms) + ✓ default-description take precedence if one is provided (193ms) + ✓ serializes object and array defaults (207ms) defaultDescription using option() without default() - ✓ should output given desc with default value - ✓ should output given desc without default value + ✓ should output given desc with default value (102ms) + ✓ should output given desc without default value (119ms) ✓ should prefer given desc over function desc using option() with default() ✓ should prefer default() desc when given last ✓ should prefer option() desc when given last - ✓ should prefer option() desc over default() function + ✓ should prefer option() desc over default() function (59ms) using positional() without default() - ✓ should output given desc with default value - ✓ should output given desc without default value - ✓ should prefer given desc over function desc + ✓ should output given desc with default value (116ms) + ✓ should output given desc without default value (73ms) + ✓ should prefer given desc over function desc (116ms) using positional() with default() - ✓ should prefer default() desc when given last - ✓ should prefer positional() desc when given last - ✓ should prefer positional() desc over default() function + ✓ should prefer default() desc when given last (86ms) + ✓ should prefer positional() desc when given last (118ms) + ✓ should prefer positional() desc over default() function (183ms) normalizeAliases - ✓ should display 'description' string in help message if set for alias - ✓ should display 'required' string in help message if set for alias - ✓ should display 'type' string in help message if set for alias - ✓ should display 'type' number in help message if set for alias + ✓ should display 'description' string in help message if set for alias (211ms) + ✓ should display 'required' string in help message if set for alias (140ms) + ✓ should display 'type' string in help message if set for alias (159ms) + ✓ should display 'type' number in help message if set for alias (113ms) showHelp - ✓ should show help regardless of whether argv has been called - ✓ should print the help using console.error when no arguments were specified - ✓ should call the correct console.log method when specified - ✓ should call the callback to print when specified + ✓ should show help regardless of whether argv has been called (99ms) + ✓ should print the help using console.error when no arguments were specified (82ms) + ✓ should call the correct console.log method when specified (66ms) + ✓ should call the callback to print when specified (71ms) $0 ✓ is detected correctly for a basic script ✓ is detected correctly when argv contains "node" @@ -1715,92 +1744,92 @@ ✓ is detected correctly when dirname and argv contain "iojs" ✓ is detected correctly when argv contains "node.exe" ✓ is detected correctly when argv contains "iojs.exe" - ✓ is resolved to the relative path if it is shorter - ✓ is not resolved to the relative path if it is larger + ✓ is resolved to the relative path if it is shorter (46ms) + ✓ is not resolved to the relative path if it is larger (46ms) choices - ✓ should output choices when defined for non-hidden options - ✓ should not output choices when defined for hidden options + ✓ should output choices when defined for non-hidden options (123ms) + ✓ should not output choices when defined for hidden options (103ms) count - ✓ should indicate when an option is a count + ✓ should indicate when an option is a count (84ms) array - ✓ should indicate when an option is an array + ✓ should indicate when an option is an array (51ms) group - ✓ allows an an option to be placed in an alternative group - ✓ does not print the 'Options:' group if no keys are in it - ✓ displays alias keys appropriately within a grouping - ✓ allows a group to be provided as the only information about an option - ✓ allows multiple options to be grouped at the same time - ✓ allows group to be provided in the options object - ✓ only displays a duplicated option once per group + ✓ allows an an option to be placed in an alternative group (115ms) + ✓ does not print the 'Options:' group if no keys are in it (204ms) + ✓ displays alias keys appropriately within a grouping (112ms) + ✓ allows a group to be provided as the only information about an option (132ms) + ✓ allows multiple options to be grouped at the same time (118ms) + ✓ allows group to be provided in the options object (155ms) + ✓ only displays a duplicated option once per group (226ms) cjk - ✓ should calculate width of cjk text correctly + ✓ should calculate width of cjk text correctly (75ms) default command - ✓ should display top-level help with no command given (69ms) - ✓ should display top-level help with sorting with no command given if sorting enabled (59ms) - ✓ should display default command as ./$0 if it has no aliases - ✓ should display positionals that have been configured - ✓ should display options that have been configured + ✓ should display top-level help with no command given (516ms) + ✓ should display top-level help with sorting with no command given if sorting enabled (787ms) + ✓ should display default command as ./$0 if it has no aliases (301ms) + ✓ should display positionals that have been configured (204ms) + ✓ should display options that have been configured (198ms) positional - ✓ should display help section for positionals (45ms) - ✓ shows that variadic positional arguments are arrays - ✓ indicates that positional arguments are required - ✓ displays aliases appropriately - ✓ displays type information - ✓ displays choices array + ✓ should display help section for positionals (282ms) + ✓ shows that variadic positional arguments are arrays (117ms) + ✓ indicates that positional arguments are required (194ms) + ✓ displays aliases appropriately (144ms) + ✓ displays type information (206ms) + ✓ displays choices array (241ms) hidden options - ✓ --help should display all options except for hidden ones - ✓ --help should display all options except for hidden ones even with a default - ✓ --help should display all options except for hidden ones even in a group - ✓ --help should display all groups except for ones with only hidden options - ✓ --help should display all options (including hidden ones) with --show-hidden - ✓ --help should display all groups (including ones with only hidden options) with --show-hidden - ✓ --help should display --custom-show-hidden - ✓ --help should display all options with --custom-show-hidden + ✓ --help should display all options except for hidden ones (106ms) + ✓ --help should display all options except for hidden ones even with a default (85ms) + ✓ --help should display all options except for hidden ones even in a group (82ms) + ✓ --help should display all groups except for ones with only hidden options (96ms) + ✓ --help should display all options (including hidden ones) with --show-hidden (114ms) + ✓ --help should display all groups (including ones with only hidden options) with --show-hidden (228ms) + ✓ --help should display --custom-show-hidden (128ms) + ✓ --help should display all options with --custom-show-hidden (226ms) help message caching - ✓ should display proper usage when an async handler fails (115ms) - ✓ should not display a cached help message for the next parsing (129ms) + ✓ should display proper usage when an async handler fails (351ms) + ✓ should not display a cached help message for the next parsing (407ms) validation tests implies - ✓ fails if '_' populated, and implied argument not set - ✓ fails if key implies values in '_', but '_' is not populated - ✓ fails if either implied argument is not set and displays only failed - ✓ fails if --no-foo's implied argument is not set - ✓ fails if a key is set, along with a key that it implies should not be set - ✓ fails if implied key (with "no" in the name) is not set - ✓ doesn't fail if implied key (with "no" in the name) is set - ✓ fails if implied key (with "no" in the name) is given when it should not - ✓ doesn't fail if implied key (with "no" in the name) that should not be given is not set - ✓ allows key to be specified with option shorthand + ✓ fails if '_' populated, and implied argument not set (135ms) + ✓ fails if key implies values in '_', but '_' is not populated (69ms) + ✓ fails if either implied argument is not set and displays only failed (178ms) + ✓ fails if --no-foo's implied argument is not set (59ms) + ✓ fails if a key is set, along with a key that it implies should not be set (94ms) + ✓ fails if implied key (with "no" in the name) is not set (111ms) + ✓ doesn't fail if implied key (with "no" in the name) is set (117ms) + ✓ fails if implied key (with "no" in the name) is given when it should not (94ms) + ✓ doesn't fail if implied key (with "no" in the name) that should not be given is not set (92ms) + ✓ allows key to be specified with option shorthand (139ms) conflicts - ✓ fails if both arguments are supplied - ✓ fails if argument is supplied along with either conflicting argument - ✓ should not fail if no conflicting arguments are provided - ✓ should not fail if argument with conflict is provided, but not the argument it conflicts with - ✓ should not fail if conflicting argument is provided, without argument with conflict - ✓ allows an object to be provided defining conflicting option pairs - ✓ takes into account aliases when applying conflicts logic - ✓ allows key to be specified with option shorthand + ✓ fails if both arguments are supplied (95ms) + ✓ fails if argument is supplied along with either conflicting argument (125ms) + ✓ should not fail if no conflicting arguments are provided (59ms) + ✓ should not fail if argument with conflict is provided, but not the argument it conflicts with (88ms) + ✓ should not fail if conflicting argument is provided, without argument with conflict (53ms) + ✓ allows an object to be provided defining conflicting option pairs (104ms) + ✓ takes into account aliases when applying conflicts logic (79ms) + ✓ allows key to be specified with option shorthand (109ms) ✓ should fail if alias of conflicting argument is provided ✓ should fail if alias of argument with conflict is provided - ✓ should use appropriate translation + ✓ should use appropriate translation (125ms) demand - ✓ fails with standard error message if msg is not defined - ✓ fails in strict mode with invalid command - ✓ fails in strict mode with extra positionals - ✓ does not fail in strict mode when no commands configured - ✓ should recognize context variables in strict mode - ✓ should recognize context variables in strict mode, when running sub-commands - ✓ fails when a required argument is missing - ✓ fails when required arguments are present, but a command is missing - ✓ fails without a message if msg is null - ✓ custom failure message should be printed for both min and max constraints - ✓ interprets min relative to command - ✓ interprets max relative to command + ✓ fails with standard error message if msg is not defined (95ms) + ✓ fails in strict mode with invalid command (74ms) + ✓ fails in strict mode with extra positionals (139ms) + ✓ does not fail in strict mode when no commands configured (72ms) + ✓ should recognize context variables in strict mode (136ms) + ✓ should recognize context variables in strict mode, when running sub-commands (71ms) + ✓ fails when a required argument is missing (68ms) + ✓ fails when required arguments are present, but a command is missing (87ms) + ✓ fails without a message if msg is null (75ms) + ✓ custom failure message should be printed for both min and max constraints (74ms) + ✓ interprets min relative to command (82ms) + ✓ interprets max relative to command (119ms) requiresArg - ✓ fails when a required argument value of type number is missing - ✓ fails when a required argument value of type string is missing - ✓ fails when a required argument value of type boolean is missing + ✓ fails when a required argument value of type number is missing (159ms) + ✓ fails when a required argument value of type string is missing (358ms) + ✓ fails when a required argument value of type boolean is missing (165ms) ✓ fails when a required argument value of type array is missing ✓ does not fail if argument with required value is not provided ✓ does not fail if argument with required value is not provided to subcommand @@ -1809,108 +1838,108 @@ ✓ fails with one valid and one invalid value ✓ fails with multiple invalid values for same argument ✓ fails with case-insensitive value - ✓ fails with multiple invalid arguments - ✓ fails when demandOption is true and choice is not provided - ✓ succeeds when demandOption is false and no choice is provided - ✓ succeeds when demandOption is not provided and no choice is provided + ✓ fails with multiple invalid arguments (64ms) + ✓ fails when demandOption is true and choice is not provided (61ms) + ✓ succeeds when demandOption is false and no choice is provided (44ms) + ✓ succeeds when demandOption is not provided and no choice is provided (47ms) config - ✓ should raise an appropriate error if JSON file is not found - ✓ should not raise an exception if config file is set as default argument value - ✓ should be displayed in the help message - ✓ should be displayed in the help message with its default name - ✓ should allow help message to be overridden - ✓ outputs an error returned by the parsing function - ✓ outputs an error if thrown by the parsing function + ✓ should raise an appropriate error if JSON file is not found (103ms) + ✓ should not raise an exception if config file is set as default argument value (112ms) + ✓ should be displayed in the help message (151ms) + ✓ should be displayed in the help message with its default name (85ms) + ✓ should allow help message to be overridden (111ms) + ✓ outputs an error returned by the parsing function (115ms) + ✓ outputs an error if thrown by the parsing function (120ms) defaults - ✓ should not fail when demanded options with defaults are missing + ✓ should not fail when demanded options with defaults are missing (49ms) strict mode - ✓ does not fail when command with subcommands called - ✓ does not fail for hidden options - ✓ does not fail if an alias is provided, rather than option itself - ✓ does not fail when unrecognized option is passed after -- + ✓ does not fail when command with subcommands called (160ms) + ✓ does not fail for hidden options (64ms) + ✓ does not fail if an alias is provided, rather than option itself (47ms) + ✓ does not fail when unrecognized option is passed after -- (84ms) demandOption - ✓ allows an array of options to be demanded + ✓ allows an array of options to be demanded (59ms) ✓ allows demandOption in option shorthand demandCommand - ✓ should return a custom failure message when too many non-hyphenated arguments are found after a demand count - ✓ allows a custom min message to be provided - ✓ allows a custom min and max message to be provided - ✓ defaults to demanding 1 command + ✓ should return a custom failure message when too many non-hyphenated arguments are found after a demand count (40ms) + ✓ allows a custom min message to be provided (48ms) + ✓ allows a custom min and max message to be provided (40ms) + ✓ defaults to demanding 1 command (56ms) strictCommands - ✓ succeeds in parse if command is known - ✓ succeeds in parse if top level and inner command are known - ✓ fails with error if command is unknown - ✓ fails with error if inner command is unknown - ✓ does not apply implicit strictCommands to inner commands - ✓ allows strictCommands to be applied to inner commands + ✓ succeeds in parse if command is known (82ms) + ✓ succeeds in parse if top level and inner command are known (89ms) + ✓ fails with error if command is unknown (62ms) + ✓ fails with error if inner command is unknown (77ms) + ✓ does not apply implicit strictCommands to inner commands (80ms) + ✓ allows strictCommands to be applied to inner commands (72ms) yargs dsl tests - ✓ should use bin name for $0, eliminating path - ✓ should not remove the 1st argument of bundled electron apps - ✓ should remove the 1st argument of unbundled electron apps + ✓ should use bin name for $0, eliminating path (71ms) + ✓ should not remove the 1st argument of bundled electron apps (145ms) + ✓ should remove the 1st argument of unbundled electron apps (126ms) ✓ accepts an object for aliases ✓ do not populates argv with placeholder keys for unset options ✓ accepts an object for implies - ✓ accepts an object for describes + ✓ accepts an object for describes (44ms) ✓ a function can be provided, to execute when a parsing failure occurs - ✓ should set alias to string if option is string + ✓ should set alias to string if option is string (51ms) ✓ should allow a valid choice ✓ should ignore a missing array choice with an empty default ✓ should allow defaultDescription to be set with .option() - ✓ should not require config object for an option - ✓ should not fail if command handler freezes object - ✓ should allow array and requires arg to be used in conjunction + ✓ should not require config object for an option (52ms) + ✓ should not fail if command handler freezes object (52ms) + ✓ should allow array and requires arg to be used in conjunction (61ms) hide - ✓ should add the key to hiddenOptions + ✓ should add the key to hiddenOptions (44ms) showHidden - ✓ should have a default show-hidden private option pre-configured + ✓ should have a default show-hidden private option pre-configured (44ms) ✓ should not have show-hidden as an actual option described by default - ✓ should set show-hidden option + ✓ should set show-hidden option (61ms) ✓ should set custom-show-hidden option showHelpOnFail - ✓ should display custom failure message, if string is provided as first argument - ✓ calling with no arguments should default to displaying help + ✓ should display custom failure message, if string is provided as first argument (64ms) + ✓ calling with no arguments should default to displaying help (58ms) exitProcess - ✓ should set exit process to true, if no argument provided + ✓ should set exit process to true, if no argument provided (89ms) when exitProcess is set to false and a failure occurs - ✓ should throw an exception - ✓ should output the errors to stderr once + ✓ should throw an exception (56ms) + ✓ should output the errors to stderr once (106ms) reset - ✓ should put yargs back into its initial state - ✓ does not invoke parse with an error if reset has been called and option is not global + ✓ should put yargs back into its initial state (83ms) + ✓ does not invoke parse with an error if reset has been called and option is not global (155ms) command - ✓ executes command handler with parsed argv - ✓ runs all middleware before reaching the handler - ✓ recommends a similar command if no command handler is found - ✓ does not recommend a similiar command if no similar command exists - ✓ recommends the longest match first - ✓ does not print command recommendation if help message will be shown - ✓ skips executing root-level command if builder's help is executed - ✓ executes top-level help if no handled command is provided - ✓ accepts an object for describing a command's options - ✓ accepts a module with a 'builder' and 'handler' key - ✓ accepts a module with a keys 'command', 'describe', 'builder', and 'handler' - ✓ derives 'command' string from filename when missing - ✓ throws error for non-module command object missing 'command' string + ✓ executes command handler with parsed argv (188ms) + ✓ runs all middleware before reaching the handler (64ms) + ✓ recommends a similar command if no command handler is found (236ms) + ✓ does not recommend a similiar command if no similar command exists (89ms) + ✓ recommends the longest match first (182ms) + ✓ does not print command recommendation if help message will be shown (162ms) + ✓ skips executing root-level command if builder's help is executed (114ms) + ✓ executes top-level help if no handled command is provided (100ms) + ✓ accepts an object for describing a command's options (184ms) + ✓ accepts a module with a 'builder' and 'handler' key (107ms) + ✓ accepts a module with a keys 'command', 'describe', 'builder', and 'handler' (89ms) + ✓ derives 'command' string from filename when missing (85ms) + ✓ throws error for non-module command object missing 'command' string (124ms) number ✓ accepts number arguments when a number type is specified - ✓ should expose an options short-hand for numbers + ✓ should expose an options short-hand for numbers (39ms) choices ✓ accepts an object ✓ accepts a string and array ✓ accepts a string and single value locale ✓ uses english as a default locale - ✓ detects the operating system's locale - ✓ should not detect the OS locale if detectLocale is 'false' - ✓ allows a locale other than the default 'en' to be specified - ✓ handles a missing locale - ✓ properly translates a region-specific locale file - ✓ uses locale string for help option default desc on .locale().help() - ✓ uses locale string for help option default desc on .help().locale() + ✓ detects the operating system's locale (79ms) + ✓ should not detect the OS locale if detectLocale is 'false' (182ms) + ✓ allows a locale other than the default 'en' to be specified (50ms) + ✓ handles a missing locale (254ms) + ✓ properly translates a region-specific locale file (198ms) + ✓ uses locale string for help option default desc on .locale().help() (86ms) + ✓ uses locale string for help option default desc on .help().locale() (39ms) updateLocale - ✓ allows you to override the default locale strings - ✓ allows you to use updateStrings() as an alias for updateLocale() + ✓ allows you to override the default locale strings (63ms) + ✓ allows you to use updateStrings() as an alias for updateLocale() (61ms) env ✓ translates no arg as empty prefix (parser applies all env vars) ✓ accepts true as a valid prefix (parser applies all env vars) @@ -1918,49 +1947,49 @@ ✓ accepts a string prefix ✓ translates false as undefined prefix (disables parsing of env vars) parse - ✓ parses a simple string - ✓ parses a quoted string - ✓ parses an array + ✓ parses a simple string (136ms) + ✓ parses a quoted string (53ms) + ✓ parses an array (43ms) ✓ ignores implicit help command (with short-circuit) ✓ allows an optional context object to be provided ✓ overrides parsed value of argv with context object - ✓ parses process.parse() if no arguments are provided - ✓ can be called multiple times with the same behavior + ✓ parses process.parse() if no arguments are provided (117ms) + ✓ can be called multiple times with the same behavior (104ms) parsed ✓ should be false before parsing ✓ should not be false after parsing function passed as second argument to parse - ✓ does not print to stdout - ✓ gets passed error as first argument - ✓ gets passed argv as second argument - ✓ gets passed output as third argument + ✓ does not print to stdout (80ms) + ✓ gets passed error as first argument (39ms) + ✓ gets passed argv as second argument (50ms) + ✓ gets passed output as third argument (138ms) ✓ reinstates original exitProcess setting after invocation - ✓ does not call callback if subsequently called without callback (39ms) + ✓ does not call callback if subsequently called without callback (49ms) ✓ resets error state between calls to parse commands - ✓ does not invoke command handler if output is populated + ✓ does not invoke command handler if output is populated (172ms) ✓ invokes command handler normally if no output is populated ✓ allows context object to be passed to parse ✓ does not fail if context object has cyclical reference - ✓ allows nested sub-commands to be invoked multiple times - ✓ overwrites the prior context object, when parse is called multiple times - ✓ populates argv appropriately when parse is called multiple times - ✓ populates output appropriately when parse is called multiple times - ✓ resets errors when parse is called multiple times + ✓ allows nested sub-commands to be invoked multiple times (236ms) + ✓ overwrites the prior context object, when parse is called multiple times (115ms) + ✓ populates argv appropriately when parse is called multiple times (100ms) + ✓ populates output appropriately when parse is called multiple times (87ms) + ✓ resets errors when parse is called multiple times (38ms) ✓ preserves top-level config when parse is called multiple times config - ✓ allows a parsing function to be provided as a second argument - ✓ allows key to be specified with option shorthand - ✓ can be disabled with option shorthand + ✓ allows a parsing function to be provided as a second argument (38ms) + ✓ allows key to be specified with option shorthand (40ms) + ✓ can be disabled with option shorthand (38ms) ✓ allows to pass a configuration object extends - ✓ applies default configurations when given config object + ✓ applies default configurations when given config object (46ms) ✓ protects against circular extended configurations ✓ handles aboslute paths - ✓ tolerates null prototype config objects - ✓ ignores an extends key that does not look like a path or module - ✓ allows files with .*rc extension to be extended - ✓ deep merges configs when extending when deep-merge-config=true + ✓ tolerates null prototype config objects (40ms) + ✓ ignores an extends key that does not look like a path or module (78ms) + ✓ allows files with .*rc extension to be extended (56ms) + ✓ deep merges configs when extending when deep-merge-config=true (62ms) ✓ deep merges multiple configs when extending when deep-merge-config=true ✓ does not deep merge objects by default normalize @@ -1971,42 +2000,42 @@ narg ✓ accepts a key as the first argument and a count as the second ✓ accepts a hash of keys and counts - ✓ allows key to be specified with option shorthand + ✓ allows key to be specified with option shorthand (50ms) global - ✓ does not reset a global options when reset is called + ✓ does not reset a global options when reset is called (84ms) ✓ does not reset alias of global option ✓ should set help to global option by default ✓ should set version to global option by default ✓ should not reset usage descriptions of global options ✓ should not reset implications of global options - ✓ should expose an options short-hand for declaring global options + ✓ should expose an options short-hand for declaring global options (40ms) pkgConf ✓ uses values from package.json ✓ combines yargs defaults with package.json values - ✓ should use value from package.json, if argv value is using default value - ✓ should apply value from config object to all aliases - ✓ is cool with a key not existing - ✓ allows an alternative cwd to be specified - ✓ doesn't mess up other pkg lookups when cwd is specified - ✓ handles an invalid package.json - ✓ should apply default configurations from extended packages + ✓ should use value from package.json, if argv value is using default value (164ms) + ✓ should apply value from config object to all aliases (59ms) + ✓ is cool with a key not existing (60ms) + ✓ allows an alternative cwd to be specified (109ms) + ✓ doesn't mess up other pkg lookups when cwd is specified (51ms) + ✓ handles an invalid package.json (47ms) + ✓ should apply default configurations from extended packages (57ms) ✓ should apply extended configurations from cwd when no path is given parserConfiguration - ✓ overrides the default parser configuration - ✓ supports --unknown-options-as-args + ✓ overrides the default parser configuration (162ms) + ✓ supports --unknown-options-as-args (142ms) skipValidation - ✓ skips validation if an option with skipValidation is present - ✓ does not skip validation if no option with skipValidation is present - ✓ allows key to be specified with option shorthand - ✓ allows having an option that skips validation but not skipping validation if that option is not used + ✓ skips validation if an option with skipValidation is present (66ms) + ✓ does not skip validation if no option with skipValidation is present (67ms) + ✓ allows key to be specified with option shorthand (57ms) + ✓ allows having an option that skips validation but not skipping validation if that option is not used (71ms) .help() - ✓ enables `--help` option and `help` command without arguments - ✓ enables `--help` option and `help` command with `true` argument - ✓ enables given string as help option and command with string argument - ✓ enables given string as help option and command with custom description with two string arguments - ✓ enables given string as help option and command with custom description with two string arguments and `true` argument + ✓ enables `--help` option and `help` command without arguments (61ms) + ✓ enables `--help` option and `help` command with `true` argument (106ms) + ✓ enables given string as help option and command with string argument (174ms) + ✓ enables given string as help option and command with custom description with two string arguments (98ms) + ✓ enables given string as help option and command with custom description with two string arguments and `true` argument (144ms) .help() with .alias() - ✓ uses multi-char (but not single-char) help alias as command + ✓ uses multi-char (but not single-char) help alias as command (49ms) .coerce() ✓ supports string and function args (as option key and coerce function) ✓ supports object arg (as map of multiple options) @@ -2015,7 +2044,7 @@ ✓ supports an option alias ✓ supports a global option within command ✓ is supported by .option() - ✓ supports positional and variadic args for a command + ✓ supports positional and variadic args for a command (168ms) ✓ returns camelcase args for a command ✓ allows an error from positional arg to be handled by fail() handler stop parsing @@ -2027,14 +2056,14 @@ positional ✓ defaults array with no arguments to [] ✓ populates array with appropriate arguments - ✓ allows a conflicting argument to be specified - ✓ allows a default to be set - ✓ allows a defaultDescription to be set - ✓ allows an implied argument to be specified - ✓ allows an alias to be provided - ✓ allows normalize to be specified - ✓ allows a choices array to be specified - ✓ allows a coerce method to be provided + ✓ allows a conflicting argument to be specified (147ms) + ✓ allows a default to be set (107ms) + ✓ allows a defaultDescription to be set (252ms) + ✓ allows an implied argument to be specified (505ms) + ✓ allows an alias to be provided (89ms) + ✓ allows normalize to be specified (65ms) + ✓ allows a choices array to be specified (104ms) + ✓ allows a coerce method to be provided (98ms) ✓ allows a boolean type to be specified ✓ allows a number type to be specified ✓ allows a string type to be specified @@ -2042,119 +2071,68 @@ ✓ can only be used as part of a command's builder function ✓ does not parse large scientific notation values, when type string onFinishCommand - ✓ use with promise - ✓ use without promise + ✓ use with promise (65ms) + ✓ use without promise (99ms) "nargs" with "array" - ✓ should not consume more than nargs items - ✓ should apply nargs with higher precedence than requiresArg: true - ✓ should apply nargs with higher precedence than requiresArg() - ✓ should raise error if not enough values follow nargs key + ✓ should not consume more than nargs items (42ms) + ✓ should apply nargs with higher precedence than requiresArg: true (74ms) + ✓ should apply nargs with higher precedence than requiresArg() (82ms) + ✓ should raise error if not enough values follow nargs key (38ms) should not pollute the prototype ✓ does not pollute, when .parse() is called - ✓ does not pollute, when .argv is called + ✓ does not pollute, when .argv is called (104ms) ✓ does not pollute, when options are set - 622 passing (32s) + 615 passing (3m) + 3 failing + + 1) integration tests + flushes all output when --help is executed: + Error: Timeout of 30000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/build/reproducible-path/node-yargs-15.3.1+repack/test/integration.js) + at Test.Runnable._timeoutError (/usr/share/nodejs/mocha/lib/runnable.js:432:10) + at Timeout. (/usr/share/nodejs/mocha/lib/runnable.js:244:24) + at listOnTimeout (internal/timers.js:554:17) + at processTimers (internal/timers.js:497:7) + + 2) integration tests + load root package.json + "before all" hook in "load root package.json": + Error: Timeout of 10000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/build/reproducible-path/node-yargs-15.3.1+repack/test/integration.js) + at Hook.Runnable._timeoutError (/usr/share/nodejs/mocha/lib/runnable.js:432:10) + at Timeout. (/usr/share/nodejs/mocha/lib/runnable.js:244:24) + at listOnTimeout (internal/timers.js:554:17) + at processTimers (internal/timers.js:497:7) + + 3) integration tests + load root package.json + "after all" hook in "load root package.json": + Error: ENOENT: no such file or directory, unlink './test/fixtures/yargs-symlink' + at Object.unlinkSync (fs.js:1136:3) + at Context. (test/integration.js:198:12) + at callFn (/usr/share/nodejs/mocha/lib/runnable.js:364:21) + at Hook.Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:352:5) + at next (/usr/share/nodejs/mocha/lib/runner.js:510:10) + at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:572:5) + at processImmediate (internal/timers.js:461:21) -Removing node_modules/yargs - create-stamp debian/debhelper-build-stamp - dh_prep - dh_auto_install --buildsystem=nodejs -dh_auto_install: warning: ./package.json#files: completion.sh.hbs does not exists - -dh_auto_install: warning: ./package.json#files: completion.zsh.hbs does not exists - -dh_auto_install: warning: ### Missing ./completion.sh.hbs, skipping - -dh_auto_install: warning: ### Missing ./completion.zsh.hbs, skipping - -dh_auto_install: warning: ### Missing ./build/config.gypi, skipping - -Found "files" field in ./package.json, using it - mkdir -p /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/ - cp --reflink=auto -a ./index.js /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs// - cp --reflink=auto -a ./yargs.js /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs// - mkdir -p /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/lib - cp --reflink=auto -a ./lib/completion-templates.js /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/lib/ - cp --reflink=auto -a ./lib/completion.js /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/lib/ - cp --reflink=auto -a ./lib/validation.js /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/lib/ - cp --reflink=auto -a ./lib/process-argv.js /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/lib/ - cp --reflink=auto -a ./lib/is-promise.js /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/lib/ - cp --reflink=auto -a ./lib/usage.js /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/lib/ - cp --reflink=auto -a ./lib/yerror.js /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/lib/ - cp --reflink=auto -a ./lib/obj-filter.js /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/lib/ - cp --reflink=auto -a ./lib/argsert.js /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/lib/ - cp --reflink=auto -a ./lib/apply-extends.js /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/lib/ - cp --reflink=auto -a ./lib/command.js /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/lib/ - cp --reflink=auto -a ./lib/middleware.js /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/lib/ - cp --reflink=auto -a ./lib/levenshtein.js /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/lib/ - mkdir -p /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales - cp --reflink=auto -a ./locales/th.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/be.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/nl.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/zh_TW.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/fr.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/ko.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/id.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/it.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/pl.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/es.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/de.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/ja.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/en.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/tr.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/hu.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/pt_BR.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/nn.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/nb.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/pirate.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/fi.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/pt.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/ru.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/hi.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./locales/zh_CN.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs/locales/ - cp --reflink=auto -a ./package.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs// - cp --reflink=auto -a ./package.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/yargs// -dh_auto_install: warning: ### Missing types-yargs/build/config.gypi, skipping - -No "files" field in types-yargs/package.json, install all files - mkdir -p /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/\@types/yargs/ - cp --reflink=auto -a types-yargs/yargs.d.ts /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/\@types/yargs// - cp --reflink=auto -a types-yargs/package.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/\@types/yargs// - cp --reflink=auto -a types-yargs/index.d.ts /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/\@types/yargs// - cp --reflink=auto -a types-yargs/package.json /build/reproducible-path/node-yargs-15.3.1\+repack/debian/node-yargs//usr/share/nodejs/\@types/yargs// -Populate ${nodejs:Provides}: - + node-types-yargs (= 15.0.9) -Set ${nodejs:Version} to 12.22.12~dfsg - dh_installdocs - dh_installchangelogs - dh_installexamples - dh_perl - dh_link - dh_strip_nondeterminism - dh_compress - dh_fixperms - dh_missing - dh_installdeb - dh_gencontrol -dpkg-gencontrol: warning: package node-yargs: substitution variable ${nodejs:Version} unused, but is defined - dh_md5sums - dh_builddeb -dpkg-deb: building package 'node-yargs' in '../node-yargs_15.3.1+repack-2_all.deb'. - dpkg-genbuildinfo --build=binary - dpkg-genchanges --build=binary >../node-yargs_15.3.1+repack-2_armhf.changes -dpkg-genchanges: info: binary-only upload (no source code included) - dpkg-source --after-build . -dpkg-buildpackage: info: binary-only upload (no source included) -dpkg-genchanges: info: not including original source code in upload + + +dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 3 +make: *** [debian/rules:8: binary] Error 25 +dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 I: copying local configuration +E: Failed autobuilding of package +I: user script /srv/workspace/pbuilder/6517/tmp/hooks/C01_cleanup starting +debug output: disk usage on i-capture-the-hostname at Sun Jan 7 13:49:39 UTC 2024 +Filesystem Size Used Avail Use% Mounted on +tmpfs 1.9G 0 1.9G 0% /dev/shm + +I: user script /srv/workspace/pbuilder/6517/tmp/hooks/C01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/23146 and its subdirectories -I: Current time: Sun Jan 7 01:37:54 -12 2024 -I: pbuilder-time-stamp: 1704634674 +I: removing directory /srv/workspace/pbuilder/6517 and its subdirectories