I: pbuilder: network access will be disabled during build I: Current time: Mon Nov 15 15:50:33 +14 2021 I: pbuilder-time-stamp: 1636941033 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration I: mounting /proc filesystem I: mounting /sys filesystem I: creating /{dev,run}/shm I: mounting /dev/pts filesystem I: redirecting /dev/ptmx to /dev/pts/ptmx I: policy-rc.d already exists I: Copying source file I: copying [golang-github-rogpeppe-go-internal_1.6.2-1.dsc] I: copying [./golang-github-rogpeppe-go-internal_1.6.2.orig.tar.gz] I: copying [./golang-github-rogpeppe-go-internal_1.6.2-1.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/tmp/dpkg-verify-sig.tJ9OZ9sN/trustedkeys.kbx': General error gpgv: Signature made Fri Oct 23 23:09:39 2020 +14 gpgv: using RSA key 142421B19AD4A95996F95072EA2500B412C59ACF gpgv: issuer "foka@debian.org" gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./golang-github-rogpeppe-go-internal_1.6.2-1.dsc dpkg-source: info: extracting golang-github-rogpeppe-go-internal in golang-github-rogpeppe-go-internal-1.6.2 dpkg-source: info: unpacking golang-github-rogpeppe-go-internal_1.6.2.orig.tar.gz dpkg-source: info: unpacking golang-github-rogpeppe-go-internal_1.6.2-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps I: user script /srv/workspace/pbuilder/4151103/tmp/hooks/D01_modify_environment starting debug: Running on ionos1-amd64. 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 Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by 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/4151103/tmp/hooks/D01_modify_environment finished I: user script /srv/workspace/pbuilder/4151103/tmp/hooks/D02_print_environment starting I: set 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]="x86_64-pc-linux-gnu") BASH_VERSION='5.1.4(1)-release' BUILDDIR=/build BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' BUILDUSERNAME=pbuilder2 BUILD_ARCH=amd64 DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=15' DIRSTACK=() DISTRIBUTION= EUID=0 FUNCNAME=([0]="Echo" [1]="main") GROUPS=() HOME=/root HOSTNAME=i-capture-the-hostname HOSTTYPE=x86_64 HOST_ARCH=amd64 IFS=' ' INVOCATION_ID=c51714010ab24b4aa9d4a1de7ab07ba2 LANG=C LANGUAGE=et_EE:et LC_ALL=C MACHTYPE=x86_64-pc-linux-gnu MAIL=/var/mail/root OPTERR=1 OPTIND=1 OSTYPE=linux-gnu 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=4151103 PS4='+ ' 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/tmp.CiOisHghmb/pbuilderrc_m5Fx --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.CiOisHghmb/b2 --logfile b2/build.log golang-github-rogpeppe-go-internal_1.6.2-1.dsc' SUDO_GID=110 SUDO_UID=105 SUDO_USER=jenkins TERM=unknown TZ=/usr/share/zoneinfo/Etc/GMT-14 UID=0 USER=root _='I: set' http_proxy=http://78.137.99.97:3128 I: uname -a Linux i-capture-the-hostname 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux I: ls -l /bin total 5476 -rwxr-xr-x 1 root root 1234376 Aug 5 10:25 bash -rwxr-xr-x 3 root root 38984 Jul 21 2020 bunzip2 -rwxr-xr-x 3 root root 38984 Jul 21 2020 bzcat lrwxrwxrwx 1 root root 6 Jul 21 2020 bzcmp -> bzdiff -rwxr-xr-x 1 root root 2225 Jul 21 2020 bzdiff lrwxrwxrwx 1 root root 6 Jul 21 2020 bzegrep -> bzgrep -rwxr-xr-x 1 root root 4877 Sep 5 2019 bzexe lrwxrwxrwx 1 root root 6 Jul 21 2020 bzfgrep -> bzgrep -rwxr-xr-x 1 root root 3775 Jul 21 2020 bzgrep -rwxr-xr-x 3 root root 38984 Jul 21 2020 bzip2 -rwxr-xr-x 1 root root 18424 Jul 21 2020 bzip2recover lrwxrwxrwx 1 root root 6 Jul 21 2020 bzless -> bzmore -rwxr-xr-x 1 root root 1297 Jul 21 2020 bzmore -rwxr-xr-x 1 root root 43936 Sep 24 2020 cat -rwxr-xr-x 1 root root 72672 Sep 24 2020 chgrp -rwxr-xr-x 1 root root 64448 Sep 24 2020 chmod -rwxr-xr-x 1 root root 72672 Sep 24 2020 chown -rwxr-xr-x 1 root root 151168 Sep 24 2020 cp -rwxr-xr-x 1 root root 125560 Dec 11 2020 dash -rwxr-xr-x 1 root root 113664 Sep 24 2020 date -rwxr-xr-x 1 root root 80968 Sep 24 2020 dd -rwxr-xr-x 1 root root 93936 Sep 24 2020 df -rwxr-xr-x 1 root root 147176 Sep 24 2020 dir -rwxr-xr-x 1 root root 84440 Jul 29 09:09 dmesg lrwxrwxrwx 1 root root 8 Nov 8 2019 dnsdomainname -> hostname lrwxrwxrwx 1 root root 8 Nov 8 2019 domainname -> hostname -rwxr-xr-x 1 root root 39712 Sep 24 2020 echo -rwxr-xr-x 1 root root 28 Nov 10 2020 egrep -rwxr-xr-x 1 root root 39680 Sep 24 2020 false -rwxr-xr-x 1 root root 28 Nov 10 2020 fgrep -rwxr-xr-x 1 root root 69032 Jul 29 09:09 findmnt -rwsr-xr-x 1 root root 34896 Feb 27 2021 fusermount -rwxr-xr-x 1 root root 203072 Nov 10 2020 grep -rwxr-xr-x 2 root root 2346 Mar 3 2021 gunzip -rwxr-xr-x 1 root root 6376 Mar 3 2021 gzexe -rwxr-xr-x 1 root root 98048 Mar 3 2021 gzip -rwxr-xr-x 1 root root 22600 Nov 8 2019 hostname -rwxr-xr-x 1 root root 72840 Sep 24 2020 ln -rwxr-xr-x 1 root root 56952 Feb 8 2020 login -rwxr-xr-x 1 root root 147176 Sep 24 2020 ls -rwxr-xr-x 1 root root 149736 Jul 29 09:09 lsblk -rwxr-xr-x 1 root root 85184 Sep 24 2020 mkdir -rwxr-xr-x 1 root root 76896 Sep 24 2020 mknod -rwxr-xr-x 1 root root 48064 Sep 24 2020 mktemp -rwxr-xr-x 1 root root 59632 Jul 29 09:09 more -rwsr-xr-x 1 root root 55528 Jul 29 09:09 mount -rwxr-xr-x 1 root root 18664 Jul 29 09:09 mountpoint -rwxr-xr-x 1 root root 147080 Sep 24 2020 mv lrwxrwxrwx 1 root root 8 Nov 8 2019 nisdomainname -> hostname lrwxrwxrwx 1 root root 14 Apr 19 2021 pidof -> /sbin/killall5 -rwxr-xr-x 1 root root 43872 Sep 24 2020 pwd lrwxrwxrwx 1 root root 4 Aug 5 10:25 rbash -> bash -rwxr-xr-x 1 root root 52032 Sep 24 2020 readlink -rwxr-xr-x 1 root root 72704 Sep 24 2020 rm -rwxr-xr-x 1 root root 52032 Sep 24 2020 rmdir -rwxr-xr-x 1 root root 27472 Sep 28 2020 run-parts -rwxr-xr-x 1 root root 122224 Dec 23 2018 sed lrwxrwxrwx 1 root root 4 Nov 15 15:50 sh -> bash lrwxrwxrwx 1 root root 4 Nov 8 11:57 sh.distrib -> dash -rwxr-xr-x 1 root root 43808 Sep 24 2020 sleep -rwxr-xr-x 1 root root 84928 Sep 24 2020 stty -rwsr-xr-x 1 root root 71912 Jul 29 09:09 su -rwxr-xr-x 1 root root 39744 Sep 24 2020 sync -rwxr-xr-x 1 root root 531928 Feb 17 2021 tar -rwxr-xr-x 1 root root 14456 Sep 28 2020 tempfile -rwxr-xr-x 1 root root 101408 Sep 24 2020 touch -rwxr-xr-x 1 root root 39680 Sep 24 2020 true -rwxr-xr-x 1 root root 14328 Feb 27 2021 ulockmgr_server -rwsr-xr-x 1 root root 35040 Jul 29 09:09 umount -rwxr-xr-x 1 root root 39744 Sep 24 2020 uname -rwxr-xr-x 2 root root 2346 Mar 3 2021 uncompress -rwxr-xr-x 1 root root 147176 Sep 24 2020 vdir -rwxr-xr-x 1 root root 63744 Jul 29 09:09 wdctl lrwxrwxrwx 1 root root 8 Nov 8 2019 ypdomainname -> hostname -rwxr-xr-x 1 root root 1984 Mar 3 2021 zcat -rwxr-xr-x 1 root root 1678 Mar 3 2021 zcmp -rwxr-xr-x 1 root root 5880 Mar 3 2021 zdiff -rwxr-xr-x 1 root root 29 Mar 3 2021 zegrep -rwxr-xr-x 1 root root 29 Mar 3 2021 zfgrep -rwxr-xr-x 1 root root 2081 Mar 3 2021 zforce -rwxr-xr-x 1 root root 7585 Mar 3 2021 zgrep -rwxr-xr-x 1 root root 2206 Mar 3 2021 zless -rwxr-xr-x 1 root root 1842 Mar 3 2021 zmore -rwxr-xr-x 1 root root 4553 Mar 3 2021 znew I: user script /srv/workspace/pbuilder/4151103/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy Version: 0.invalid.0 Architecture: amd64 Maintainer: Debian Pbuilder Team Description: Dummy package to satisfy dependencies with aptitude - created by pbuilder This package was created automatically by pbuilder to satisfy the build-dependencies of the package being currently built. Depends: debhelper-compat (= 13), dh-golang (>= 1.46~), golang-any, golang-gopkg-errgo.v2-dev (>= 2.1.0~) dpkg-deb: building package 'pbuilder-satisfydepends-dummy' in '/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'. Selecting previously unselected package pbuilder-satisfydepends-dummy. (Reading database ... 19655 files and directories currently installed.) Preparing to unpack .../pbuilder-satisfydepends-dummy.deb ... Unpacking pbuilder-satisfydepends-dummy (0.invalid.0) ... dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring anyway as you requested: pbuilder-satisfydepends-dummy depends on debhelper-compat (= 13); however: Package debhelper-compat is not installed. pbuilder-satisfydepends-dummy depends on dh-golang (>= 1.46~); however: Package dh-golang is not installed. pbuilder-satisfydepends-dummy depends on golang-any; however: Package golang-any is not installed. pbuilder-satisfydepends-dummy depends on golang-gopkg-errgo.v2-dev (>= 2.1.0~); however: Package golang-gopkg-errgo.v2-dev is not installed. Setting up pbuilder-satisfydepends-dummy (0.invalid.0) ... Reading package lists... Building dependency tree... Reading state information... Initializing package states... Writing extended state information... Building tag database... pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) The following NEW packages will be installed: autoconf{a} automake{a} autopoint{a} autotools-dev{a} bsdextrautils{a} debhelper{a} dh-autoreconf{a} dh-golang{a} dh-strip-nondeterminism{a} dwz{a} file{a} gettext{a} gettext-base{a} golang-1.15-go{a} golang-1.15-src{a} golang-any{a} golang-github-creack-pty-dev{a} golang-github-kr-pretty-dev{a} golang-github-kr-text-dev{a} golang-go{a} golang-gopkg-check.v1-dev{a} golang-gopkg-errgo.v2-dev{a} golang-src{a} groff-base{a} intltool-debian{a} libarchive-zip-perl{a} libdebhelper-perl{a} libelf1{a} libfile-stripnondeterminism-perl{a} libicu67{a} libmagic-mgc{a} libmagic1{a} libpipeline1{a} libsigsegv2{a} libsub-override-perl{a} libtool{a} libuchardet0{a} libxml2{a} m4{a} man-db{a} po-debconf{a} sensible-utils{a} The following packages are RECOMMENDED but will NOT be installed: curl libarchive-cpio-perl libltdl-dev libmail-sendmail-perl lynx pkg-config pkgconf wget 0 packages upgraded, 42 newly installed, 0 to remove and 0 not upgraded. Need to get 79.7 MB of archives. After unpacking 427 MB will be used. Writing extended state information... Get: 1 http://deb.debian.org/debian bullseye/main amd64 bsdextrautils amd64 2.36.1-8 [145 kB] Get: 2 http://deb.debian.org/debian bullseye/main amd64 libuchardet0 amd64 0.0.7-1 [67.8 kB] Get: 3 http://deb.debian.org/debian bullseye/main amd64 groff-base amd64 1.22.4-6 [936 kB] Get: 4 http://deb.debian.org/debian bullseye/main amd64 libpipeline1 amd64 1.5.3-1 [34.3 kB] Get: 5 http://deb.debian.org/debian bullseye/main amd64 man-db amd64 2.9.4-2 [1354 kB] Get: 6 http://deb.debian.org/debian bullseye/main amd64 sensible-utils all 0.0.14 [14.8 kB] Get: 7 http://deb.debian.org/debian bullseye/main amd64 libmagic-mgc amd64 1:5.39-3 [273 kB] Get: 8 http://deb.debian.org/debian bullseye/main amd64 libmagic1 amd64 1:5.39-3 [126 kB] Get: 9 http://deb.debian.org/debian bullseye/main amd64 file amd64 1:5.39-3 [69.1 kB] Get: 10 http://deb.debian.org/debian bullseye/main amd64 gettext-base amd64 0.21-4 [175 kB] Get: 11 http://deb.debian.org/debian bullseye/main amd64 libsigsegv2 amd64 2.13-1 [34.8 kB] Get: 12 http://deb.debian.org/debian bullseye/main amd64 m4 amd64 1.4.18-5 [204 kB] Get: 13 http://deb.debian.org/debian bullseye/main amd64 autoconf all 2.69-14 [313 kB] Get: 14 http://deb.debian.org/debian bullseye/main amd64 autotools-dev all 20180224.1+nmu1 [77.1 kB] Get: 15 http://deb.debian.org/debian bullseye/main amd64 automake all 1:1.16.3-2 [814 kB] Get: 16 http://deb.debian.org/debian bullseye/main amd64 autopoint all 0.21-4 [510 kB] Get: 17 http://deb.debian.org/debian bullseye/main amd64 libdebhelper-perl all 13.3.4 [189 kB] Get: 18 http://deb.debian.org/debian bullseye/main amd64 libtool all 2.4.6-15 [513 kB] Get: 19 http://deb.debian.org/debian bullseye/main amd64 dh-autoreconf all 20 [17.1 kB] Get: 20 http://deb.debian.org/debian bullseye/main amd64 libarchive-zip-perl all 1.68-1 [104 kB] Get: 21 http://deb.debian.org/debian bullseye/main amd64 libsub-override-perl all 0.09-2 [10.2 kB] Get: 22 http://deb.debian.org/debian bullseye/main amd64 libfile-stripnondeterminism-perl all 1.12.0-1 [26.3 kB] Get: 23 http://deb.debian.org/debian bullseye/main amd64 dh-strip-nondeterminism all 1.12.0-1 [15.4 kB] Get: 24 http://deb.debian.org/debian bullseye/main amd64 libelf1 amd64 0.183-1 [165 kB] Get: 25 http://deb.debian.org/debian bullseye/main amd64 dwz amd64 0.13+20210201-1 [175 kB] Get: 26 http://deb.debian.org/debian bullseye/main amd64 libicu67 amd64 67.1-7 [8622 kB] Get: 27 http://deb.debian.org/debian bullseye/main amd64 libxml2 amd64 2.9.10+dfsg-6.7 [693 kB] Get: 28 http://deb.debian.org/debian bullseye/main amd64 gettext amd64 0.21-4 [1311 kB] Get: 29 http://deb.debian.org/debian bullseye/main amd64 intltool-debian all 0.35.0+20060710.5 [26.8 kB] Get: 30 http://deb.debian.org/debian bullseye/main amd64 po-debconf all 1.0.21+nmu1 [248 kB] Get: 31 http://deb.debian.org/debian bullseye/main amd64 debhelper all 13.3.4 [1049 kB] Get: 32 http://deb.debian.org/debian bullseye/main amd64 dh-golang all 1.51 [24.6 kB] Get: 33 http://deb.debian.org/debian bullseye/main amd64 golang-1.15-src amd64 1.15.9-6 [13.8 MB] Get: 34 http://deb.debian.org/debian bullseye/main amd64 golang-1.15-go amd64 1.15.9-6 [47.4 MB] Get: 35 http://deb.debian.org/debian bullseye/main amd64 golang-src amd64 2:1.15~1 [4856 B] Get: 36 http://deb.debian.org/debian bullseye/main amd64 golang-go amd64 2:1.15~1 [23.9 kB] Get: 37 http://deb.debian.org/debian bullseye/main amd64 golang-any amd64 2:1.15~1 [4976 B] Get: 38 http://deb.debian.org/debian bullseye/main amd64 golang-github-creack-pty-dev all 1.1.11-1 [8380 B] Get: 39 http://deb.debian.org/debian bullseye/main amd64 golang-github-kr-text-dev all 0.2.0-1 [11.1 kB] Get: 40 http://deb.debian.org/debian bullseye/main amd64 golang-github-kr-pretty-dev all 0.2.1+git20200831.59b4212-1 [14.6 kB] Get: 41 http://deb.debian.org/debian bullseye/main amd64 golang-gopkg-check.v1-dev all 0.0+git20200902.038fdea-1 [32.1 kB] Get: 42 http://deb.debian.org/debian bullseye/main amd64 golang-gopkg-errgo.v2-dev all 2.1.0-2 [8980 B] Fetched 79.7 MB in 1s (95.6 MB/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 ... 19655 files and directories currently installed.) Preparing to unpack .../00-bsdextrautils_2.36.1-8_amd64.deb ... Unpacking bsdextrautils (2.36.1-8) ... Selecting previously unselected package libuchardet0:amd64. Preparing to unpack .../01-libuchardet0_0.0.7-1_amd64.deb ... Unpacking libuchardet0:amd64 (0.0.7-1) ... Selecting previously unselected package groff-base. Preparing to unpack .../02-groff-base_1.22.4-6_amd64.deb ... Unpacking groff-base (1.22.4-6) ... Selecting previously unselected package libpipeline1:amd64. Preparing to unpack .../03-libpipeline1_1.5.3-1_amd64.deb ... Unpacking libpipeline1:amd64 (1.5.3-1) ... Selecting previously unselected package man-db. Preparing to unpack .../04-man-db_2.9.4-2_amd64.deb ... Unpacking man-db (2.9.4-2) ... Selecting previously unselected package sensible-utils. Preparing to unpack .../05-sensible-utils_0.0.14_all.deb ... Unpacking sensible-utils (0.0.14) ... Selecting previously unselected package libmagic-mgc. Preparing to unpack .../06-libmagic-mgc_1%3a5.39-3_amd64.deb ... Unpacking libmagic-mgc (1:5.39-3) ... Selecting previously unselected package libmagic1:amd64. Preparing to unpack .../07-libmagic1_1%3a5.39-3_amd64.deb ... Unpacking libmagic1:amd64 (1:5.39-3) ... Selecting previously unselected package file. Preparing to unpack .../08-file_1%3a5.39-3_amd64.deb ... Unpacking file (1:5.39-3) ... Selecting previously unselected package gettext-base. Preparing to unpack .../09-gettext-base_0.21-4_amd64.deb ... Unpacking gettext-base (0.21-4) ... Selecting previously unselected package libsigsegv2:amd64. Preparing to unpack .../10-libsigsegv2_2.13-1_amd64.deb ... Unpacking libsigsegv2:amd64 (2.13-1) ... Selecting previously unselected package m4. Preparing to unpack .../11-m4_1.4.18-5_amd64.deb ... Unpacking m4 (1.4.18-5) ... Selecting previously unselected package autoconf. Preparing to unpack .../12-autoconf_2.69-14_all.deb ... Unpacking autoconf (2.69-14) ... Selecting previously unselected package autotools-dev. Preparing to unpack .../13-autotools-dev_20180224.1+nmu1_all.deb ... Unpacking autotools-dev (20180224.1+nmu1) ... Selecting previously unselected package automake. Preparing to unpack .../14-automake_1%3a1.16.3-2_all.deb ... Unpacking automake (1:1.16.3-2) ... Selecting previously unselected package autopoint. Preparing to unpack .../15-autopoint_0.21-4_all.deb ... Unpacking autopoint (0.21-4) ... Selecting previously unselected package libdebhelper-perl. Preparing to unpack .../16-libdebhelper-perl_13.3.4_all.deb ... Unpacking libdebhelper-perl (13.3.4) ... Selecting previously unselected package libtool. Preparing to unpack .../17-libtool_2.4.6-15_all.deb ... Unpacking libtool (2.4.6-15) ... Selecting previously unselected package dh-autoreconf. Preparing to unpack .../18-dh-autoreconf_20_all.deb ... Unpacking dh-autoreconf (20) ... Selecting previously unselected package libarchive-zip-perl. Preparing to unpack .../19-libarchive-zip-perl_1.68-1_all.deb ... Unpacking libarchive-zip-perl (1.68-1) ... Selecting previously unselected package libsub-override-perl. Preparing to unpack .../20-libsub-override-perl_0.09-2_all.deb ... Unpacking libsub-override-perl (0.09-2) ... Selecting previously unselected package libfile-stripnondeterminism-perl. Preparing to unpack .../21-libfile-stripnondeterminism-perl_1.12.0-1_all.deb ... Unpacking libfile-stripnondeterminism-perl (1.12.0-1) ... Selecting previously unselected package dh-strip-nondeterminism. Preparing to unpack .../22-dh-strip-nondeterminism_1.12.0-1_all.deb ... Unpacking dh-strip-nondeterminism (1.12.0-1) ... Selecting previously unselected package libelf1:amd64. Preparing to unpack .../23-libelf1_0.183-1_amd64.deb ... Unpacking libelf1:amd64 (0.183-1) ... Selecting previously unselected package dwz. Preparing to unpack .../24-dwz_0.13+20210201-1_amd64.deb ... Unpacking dwz (0.13+20210201-1) ... Selecting previously unselected package libicu67:amd64. Preparing to unpack .../25-libicu67_67.1-7_amd64.deb ... Unpacking libicu67:amd64 (67.1-7) ... Selecting previously unselected package libxml2:amd64. Preparing to unpack .../26-libxml2_2.9.10+dfsg-6.7_amd64.deb ... Unpacking libxml2:amd64 (2.9.10+dfsg-6.7) ... Selecting previously unselected package gettext. Preparing to unpack .../27-gettext_0.21-4_amd64.deb ... Unpacking gettext (0.21-4) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../28-intltool-debian_0.35.0+20060710.5_all.deb ... Unpacking intltool-debian (0.35.0+20060710.5) ... Selecting previously unselected package po-debconf. Preparing to unpack .../29-po-debconf_1.0.21+nmu1_all.deb ... Unpacking po-debconf (1.0.21+nmu1) ... Selecting previously unselected package debhelper. Preparing to unpack .../30-debhelper_13.3.4_all.deb ... Unpacking debhelper (13.3.4) ... Selecting previously unselected package dh-golang. Preparing to unpack .../31-dh-golang_1.51_all.deb ... Unpacking dh-golang (1.51) ... Selecting previously unselected package golang-1.15-src. Preparing to unpack .../32-golang-1.15-src_1.15.9-6_amd64.deb ... Unpacking golang-1.15-src (1.15.9-6) ... Selecting previously unselected package golang-1.15-go. Preparing to unpack .../33-golang-1.15-go_1.15.9-6_amd64.deb ... Unpacking golang-1.15-go (1.15.9-6) ... Selecting previously unselected package golang-src:amd64. Preparing to unpack .../34-golang-src_2%3a1.15~1_amd64.deb ... Unpacking golang-src:amd64 (2:1.15~1) ... Selecting previously unselected package golang-go. Preparing to unpack .../35-golang-go_2%3a1.15~1_amd64.deb ... Unpacking golang-go (2:1.15~1) ... Selecting previously unselected package golang-any:amd64. Preparing to unpack .../36-golang-any_2%3a1.15~1_amd64.deb ... Unpacking golang-any:amd64 (2:1.15~1) ... Selecting previously unselected package golang-github-creack-pty-dev. Preparing to unpack .../37-golang-github-creack-pty-dev_1.1.11-1_all.deb ... Unpacking golang-github-creack-pty-dev (1.1.11-1) ... Selecting previously unselected package golang-github-kr-text-dev. Preparing to unpack .../38-golang-github-kr-text-dev_0.2.0-1_all.deb ... Unpacking golang-github-kr-text-dev (0.2.0-1) ... Selecting previously unselected package golang-github-kr-pretty-dev. Preparing to unpack .../39-golang-github-kr-pretty-dev_0.2.1+git20200831.59b4212-1_all.deb ... Unpacking golang-github-kr-pretty-dev (0.2.1+git20200831.59b4212-1) ... Selecting previously unselected package golang-gopkg-check.v1-dev. Preparing to unpack .../40-golang-gopkg-check.v1-dev_0.0+git20200902.038fdea-1_all.deb ... Unpacking golang-gopkg-check.v1-dev (0.0+git20200902.038fdea-1) ... Selecting previously unselected package golang-gopkg-errgo.v2-dev. Preparing to unpack .../41-golang-gopkg-errgo.v2-dev_2.1.0-2_all.deb ... Unpacking golang-gopkg-errgo.v2-dev (2.1.0-2) ... Setting up libpipeline1:amd64 (1.5.3-1) ... Setting up bsdextrautils (2.36.1-8) ... update-alternatives: using /usr/bin/write.ul to provide /usr/bin/write (write) in auto mode Setting up golang-github-creack-pty-dev (1.1.11-1) ... Setting up libicu67:amd64 (67.1-7) ... Setting up libmagic-mgc (1:5.39-3) ... Setting up golang-1.15-src (1.15.9-6) ... Setting up libarchive-zip-perl (1.68-1) ... Setting up libdebhelper-perl (13.3.4) ... Setting up libmagic1:amd64 (1:5.39-3) ... Setting up gettext-base (0.21-4) ... Setting up file (1:5.39-3) ... Setting up autotools-dev (20180224.1+nmu1) ... Setting up golang-github-kr-text-dev (0.2.0-1) ... Setting up libsigsegv2:amd64 (2.13-1) ... Setting up autopoint (0.21-4) ... Setting up sensible-utils (0.0.14) ... Setting up libuchardet0:amd64 (0.0.7-1) ... Setting up libsub-override-perl (0.09-2) ... Setting up golang-src:amd64 (2:1.15~1) ... Setting up golang-1.15-go (1.15.9-6) ... Setting up libelf1:amd64 (0.183-1) ... Setting up libxml2:amd64 (2.9.10+dfsg-6.7) ... Setting up golang-github-kr-pretty-dev (0.2.1+git20200831.59b4212-1) ... Setting up libfile-stripnondeterminism-perl (1.12.0-1) ... Setting up gettext (0.21-4) ... Setting up libtool (2.4.6-15) ... Setting up golang-go (2:1.15~1) ... Setting up m4 (1.4.18-5) ... Setting up golang-gopkg-check.v1-dev (0.0+git20200902.038fdea-1) ... Setting up golang-any:amd64 (2:1.15~1) ... Setting up intltool-debian (0.35.0+20060710.5) ... Setting up autoconf (2.69-14) ... Setting up dh-strip-nondeterminism (1.12.0-1) ... Setting up dwz (0.13+20210201-1) ... Setting up groff-base (1.22.4-6) ... Setting up golang-gopkg-errgo.v2-dev (2.1.0-2) ... Setting up automake (1:1.16.3-2) ... update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode Setting up po-debconf (1.0.21+nmu1) ... Setting up man-db (2.9.4-2) ... Not building database; man-db/auto-update is not 'true'. Setting up dh-autoreconf (20) ... Setting up debhelper (13.3.4) ... Setting up dh-golang (1.51) ... Processing triggers for libc-bin (2.31-13+deb11u2) ... Reading package lists... Building dependency tree... Reading state information... Reading extended state information... Initializing package states... Writing extended state information... Building tag database... -> Finished parsing the build-deps I: Building the package hostname: Name or service not known I: Running cd /build/golang-github-rogpeppe-go-internal-1.6.2/ && 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 > ../golang-github-rogpeppe-go-internal_1.6.2-1_source.changes dpkg-buildpackage: info: source package golang-github-rogpeppe-go-internal dpkg-buildpackage: info: source version 1.6.2-1 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Anthony Fok dpkg-source --before-build . dpkg-buildpackage: info: host architecture amd64 debian/rules clean dh clean --buildsystem=golang --with golang dh_auto_clean -O--buildsystem=golang dh_autoreconf_clean -O--buildsystem=golang dh_clean -O--buildsystem=golang debian/rules binary dh binary --buildsystem=golang --with golang dh_update_autotools_config -O--buildsystem=golang dh_autoreconf -O--buildsystem=golang dh_auto_configure -O--buildsystem=golang dh_auto_build -O--buildsystem=golang cd obj-x86_64-linux-gnu && go install -trimpath -v -p 15 github.com/rogpeppe/go-internal/cache github.com/rogpeppe/go-internal/cmd/testscript github.com/rogpeppe/go-internal/cmd/txtar-addmod github.com/rogpeppe/go-internal/cmd/txtar-c github.com/rogpeppe/go-internal/cmd/txtar-goproxy github.com/rogpeppe/go-internal/cmd/txtar-x github.com/rogpeppe/go-internal/dirhash github.com/rogpeppe/go-internal/fmtsort github.com/rogpeppe/go-internal/goproxytest github.com/rogpeppe/go-internal/gotooltest github.com/rogpeppe/go-internal/imports github.com/rogpeppe/go-internal/internal/os/execpath github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/registry github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll github.com/rogpeppe/go-internal/internal/textutil github.com/rogpeppe/go-internal/lockedfile github.com/rogpeppe/go-internal/lockedfile/internal/filelock github.com/rogpeppe/go-internal/modfile github.com/rogpeppe/go-internal/module github.com/rogpeppe/go-internal/par github.com/rogpeppe/go-internal/renameio github.com/rogpeppe/go-internal/semver github.com/rogpeppe/go-internal/testenv github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/txtar internal/race unicode/utf8 unicode/utf16 encoding internal/unsafeheader internal/cpu runtime/internal/sys github.com/rogpeppe/go-internal/semver math/bits sync/atomic crypto/internal/subtle crypto/subtle vendor/golang.org/x/crypto/cryptobyte/asn1 vendor/golang.org/x/crypto/internal/subtle container/list unicode runtime/internal/atomic internal/goversion internal/nettrace runtime/cgo github.com/rogpeppe/go-internal/internal/syscall/windows runtime/internal/math github.com/rogpeppe/go-internal/internal/syscall/windows/registry github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll internal/testlog internal/bytealg math runtime gopkg.in/errgo.v2/errors internal/reflectlite sync internal/singleflight math/rand github.com/rogpeppe/go-internal/par errors sort io internal/oserror vendor/golang.org/x/net/dns/dnsmessage strconv syscall crypto/internal/randutil bytes hash strings crypto/hmac hash/crc32 vendor/golang.org/x/crypto/hkdf vendor/golang.org/x/text/transform crypto crypto/rc4 reflect path regexp/syntax bufio internal/syscall/execenv internal/syscall/unix time regexp context internal/poll os encoding/binary internal/fmtsort github.com/rogpeppe/go-internal/fmtsort encoding/base64 crypto/sha256 crypto/cipher crypto/sha512 crypto/ed25519/internal/edwards25519 crypto/md5 crypto/sha1 vendor/golang.org/x/crypto/poly1305 fmt path/filepath runtime/debug internal/lazyregexp github.com/rogpeppe/go-internal/lockedfile/internal/filelock net encoding/pem crypto/des vendor/golang.org/x/crypto/chacha20 crypto/aes io/ioutil os/exec github.com/rogpeppe/go-internal/renameio vendor/golang.org/x/sys/cpu github.com/rogpeppe/go-internal/internal/os/execpath vendor/golang.org/x/crypto/chacha20poly1305 encoding/hex flag github.com/rogpeppe/go-internal/module github.com/rogpeppe/go-internal/txtar log compress/flate net/url math/big vendor/golang.org/x/crypto/curve25519 encoding/json mime vendor/golang.org/x/net/http2/hpack vendor/golang.org/x/text/unicode/norm github.com/rogpeppe/go-internal/cache mime/quotedprintable net/http/internal vendor/golang.org/x/text/unicode/bidi github.com/rogpeppe/go-internal/imports github.com/rogpeppe/go-internal/internal/textutil runtime/trace gopkg.in/errgo.v2/fmt/errors go/token text/template/parse internal/execabs testing github.com/rogpeppe/go-internal/cmd/txtar-addmod github.com/rogpeppe/go-internal/cmd/txtar-c github.com/rogpeppe/go-internal/cmd/txtar-x github.com/rogpeppe/go-internal/lockedfile compress/gzip archive/zip internal/goroot go/scanner github.com/rogpeppe/go-internal/modfile vendor/golang.org/x/text/secure/bidirule vendor/golang.org/x/net/idna go/ast github.com/rogpeppe/go-internal/dirhash github.com/rogpeppe/go-internal/testenv text/template github.com/rogpeppe/go-internal/testscript crypto/rand crypto/dsa encoding/asn1 crypto/elliptic crypto/ed25519 crypto/rsa go/parser vendor/golang.org/x/crypto/cryptobyte crypto/x509/pkix go/doc crypto/ecdsa go/build github.com/rogpeppe/go-internal/gotooltest vendor/golang.org/x/net/http/httpproxy net/textproto crypto/x509 vendor/golang.org/x/net/http/httpguts mime/multipart crypto/tls net/http/httptrace net/http github.com/rogpeppe/go-internal/goproxytest github.com/rogpeppe/go-internal/cmd/testscript github.com/rogpeppe/go-internal/cmd/txtar-goproxy debian/rules override_dh_auto_test make[1]: Entering directory '/build/golang-github-rogpeppe-go-internal-1.6.2' GOPROXY="" dh_auto_test cd obj-x86_64-linux-gnu && go test -vet=off -v -p 15 github.com/rogpeppe/go-internal/cache github.com/rogpeppe/go-internal/cmd/testscript github.com/rogpeppe/go-internal/cmd/txtar-addmod github.com/rogpeppe/go-internal/cmd/txtar-c github.com/rogpeppe/go-internal/cmd/txtar-goproxy github.com/rogpeppe/go-internal/cmd/txtar-x github.com/rogpeppe/go-internal/dirhash github.com/rogpeppe/go-internal/fmtsort github.com/rogpeppe/go-internal/goproxytest github.com/rogpeppe/go-internal/gotooltest github.com/rogpeppe/go-internal/imports github.com/rogpeppe/go-internal/internal/os/execpath github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/registry github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll github.com/rogpeppe/go-internal/internal/textutil github.com/rogpeppe/go-internal/lockedfile github.com/rogpeppe/go-internal/lockedfile/internal/filelock github.com/rogpeppe/go-internal/modfile github.com/rogpeppe/go-internal/module github.com/rogpeppe/go-internal/par github.com/rogpeppe/go-internal/renameio github.com/rogpeppe/go-internal/semver github.com/rogpeppe/go-internal/testenv github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/txtar === RUN TestBasic --- PASS: TestBasic (0.04s) === RUN TestGrowth --- PASS: TestGrowth (1.09s) === RUN TestVerifyPanic cache_test.go:139: go: internal cache error: cache verify failed: id=0100000000000000000000000000000000000000000000000000000000000000 changed:<<< >>> old: cb8379ac2098aa165029e3938a51da0bcecfc008fd6795f401178647f96c5b34 3 new: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad 3 --- PASS: TestVerifyPanic (0.02s) === RUN TestCacheLog --- PASS: TestCacheLog (0.02s) === RUN TestCacheTrim --- PASS: TestCacheTrim (0.06s) === RUN TestDefaultDir --- PASS: TestDefaultDir (0.00s) === RUN TestHash --- PASS: TestHash (0.00s) === RUN TestHashFile --- PASS: TestHashFile (0.00s) PASS ok github.com/rogpeppe/go-internal/cache 1.241s === RUN TestScripts === RUN TestScripts/env_var_no_go === PAUSE TestScripts/env_var_no_go === RUN TestScripts/env_var_with_go === PAUSE TestScripts/env_var_with_go === RUN TestScripts/error === PAUSE TestScripts/error === RUN TestScripts/help === PAUSE TestScripts/help === RUN TestScripts/nogo === PAUSE TestScripts/nogo === RUN TestScripts/noproxy === PAUSE TestScripts/noproxy === RUN TestScripts/simple === PAUSE TestScripts/simple === RUN TestScripts/skip === PAUSE TestScripts/skip === RUN TestScripts/work === PAUSE TestScripts/work === CONT TestScripts/env_var_no_go === CONT TestScripts/noproxy === CONT TestScripts/skip === CONT TestScripts/simple === CONT TestScripts/work === CONT TestScripts/help === CONT TestScripts/nogo === CONT TestScripts/error === CONT TestScripts/env_var_with_go === CONT TestScripts/help testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.15 GOINTERNALMODPATH=. GONOSUMDB=* # Simply sanity check on help output (0.017s) > ! testscript -help [stderr] The testscript command runs github.com/rogpeppe/go-internal/testscript scripts in a fresh temporary work directory tree. Usage: testscript [-v] [-e VAR]... files... The testscript command is designed to make it easy to create self-contained reproductions of command sequences. Each file is opened as a script and run as described in the documentation for github.com/rogpeppe/go-internal/testscript. The special filename "-" is interpreted as the standard input. As a special case, supporting files/directories in the .gomodproxy subdirectory will be served via a github.com/rogpeppe/go-internal/goproxytest server which is available to each script via the GOPROXY environment variable. The contents of the .gomodproxy subdirectory are not available to the script except via the proxy server. See the documentation for github.com/rogpeppe/go-internal/goproxytest for details on the format of these files/directories. Environment variables can be passed through to each script with the -e flag, where VAR is the name of the variable. Variables override testscript-defined values, with the exception of WORK which cannot be overridden. The -e flag can appear multiple times to specify multiple variables. Examples ======== The following example, fruit.txt, shows a simple reproduction that includes .gomodproxy supporting files: go get -m fruit.com go list fruit.com/... stdout 'fruit.com/fruit' -- go.mod -- module mod -- .gomodproxy/fruit.com_v1.0.0/.mod -- module fruit.com -- .gomodproxy/fruit.com_v1.0.0/.info -- {"Version":"v1.0.0","Time":"2018-10-22T18:45:39Z"} -- .gomodproxy/fruit.com_v1.0.0/fruit/fruit.go -- package fruit const Name = "Apple" Running testscript -v fruit.txt we get: ... > go get -m fruit.com [stderr] go: finding fruit.com v1.0.0 > go list fruit.com/... [stdout] fruit.com/fruit [stderr] go: downloading fruit.com v1.0.0 > stdout 'fruit.com/fruit' PASS The following example, goimports.txt, shows a simple reproduction involving goimports: go install golang.org/x/tools/cmd/goimports # check goimports help information exec goimports -d main.go stdout 'import "math"' -- go.mod -- module mod require golang.org/x/tools v0.0.0-20181221235234-d00ac6d27372 -- main.go -- package mod const Pi = math.Pi Running testscript -v goimports.txt we get: ... > go install golang.org/x/tools/cmd/goimports [stderr] go: finding golang.org/x/tools v0.0.0-20181221235234-d00ac6d27372 go: downloading golang.org/x/tools v0.0.0-20181221235234-d00ac6d27372 # check goimports help information (0.015s) > exec goimports -d main.go [stdout] diff -u main.go.orig main.go --- main.go.orig 2019-01-08 16:03:35.861907738 +0000 +++ main.go 2019-01-08 16:03:35.861907738 +0000 @@ -1,3 +1,5 @@ package mod +import "math" + const Pi = math.Pi > stdout 'import "math"' PASS [exit status 2] > ! stdout .+ > stderr 'The testscript command' > stderr 'Examples' PASS === CONT TestScripts/nogo testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.15 GOINTERNALMODPATH=. GONOSUMDB=* # should support skip (0.026s) > unquote file.txt > env PATH= > ! testscript -v file.txt [stdout] WORK=$WORK PATH= HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= > go env FAIL: $WORK/tmp/testscript717166722/0/script.txt:1: unknown command "go" [stderr] error running file.txt in $WORK/tmp/testscript717166722/0 [exit status 1] > stdout 'unknown command "go"' > stderr 'error running file.txt in' PASS === CONT TestScripts/skip testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.15 GOINTERNALMODPATH=. GONOSUMDB=* # should support skip (0.086s) > unquote file.txt > testscript -v file.txt [stdout] WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.15 > go version [stdout] go version go1.15.9 linux/amd64 > skip > stdout 'go version' > ! stderr .+ PASS === CONT TestScripts/work testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.15 GOINTERNALMODPATH=. GONOSUMDB=* # should support skip (0.094s) > unquote file.txt > testscript -v -work file.txt [stdout] WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.15 > exec true PASS [stderr] temporary work directory: $WORK/tmp/testscript023805673 > stderr '\Qtemporary work directory: '$WORK'\E[/\\]tmp[/\\]' PASS === CONT TestScripts/env_var_no_go testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.15 GOINTERNALMODPATH=. GONOSUMDB=* # Test passing environment variables to scripts with no go command on PATH # # This is the counterpart to env_var_with_go.txt (0.000s) > unquote noproxy.txt > unquote withproxy.txt > dropgofrompath > env BANANA=banana > env GOPATH=$WORK/ourgopath > env GOPROXY= # no GOPROXY, no pass-through, no proxy (0.015s) > testscript -v noproxy.txt [stdout] WORK=$WORK PATH=/usr/sbin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= > env BANANA BANANA= > env GOPATH GOPATH= > env GOPROXY GOPROXY= PASS > stdout ^BANANA=$ > stdout ^GOPATH=$ > stdout ^GOPROXY=$ > ! stderr .+ # no GOPROXY, no pass-through, with proxy (0.021s) > testscript -v withproxy.txt [stdout] WORK=$WORK PATH=/usr/sbin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPROXY=http://127.0.0.1:44607/mod GONOSUMDB=* > env BANANA BANANA= > env GOPATH GOPATH= > env GOPROXY GOPROXY=http://127.0.0.1:44607/mod PASS > stdout ^BANANA=$ > stdout ^GOPATH=$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ # no GOPROXY, with pass-through, no proxy (0.008s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK PATH=/usr/sbin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= BANANA=banana GOPATH=$WORK/ourgopath GOPROXY= > env BANANA BANANA=banana > env GOPATH GOPATH=$WORK/ourgopath > env GOPROXY GOPROXY= PASS > stdout ^BANANA=banana$ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$ > ! stderr .+ # no GOPROXY, with pass-through, with proxy (0.011s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK PATH=/usr/sbin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPROXY= GONOSUMDB=* BANANA=banana GOPATH=$WORK/ourgopath > env BANANA BANANA=banana > env GOPATH GOPATH=$WORK/ourgopath > env GOPROXY GOPROXY= PASS > stdout ^BANANA=banana$ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$ > ! stderr .+ > setfilegoproxy $WORK/proxy # with GOPROXY, no pass-through, no proxy (0.016s) > testscript -v noproxy.txt [stdout] WORK=$WORK PATH=/usr/sbin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= > env BANANA BANANA= > env GOPATH GOPATH= > env GOPROXY GOPROXY= PASS > stdout ^BANANA=$ > stdout ^GOPATH=$ > stdout ^GOPROXY=$ > ! stderr .+ # with GOPROXY, no pass-through, with proxy (0.013s) > testscript -v withproxy.txt [stdout] WORK=$WORK PATH=/usr/sbin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPROXY=http://127.0.0.1:43561/mod GONOSUMDB=* > env BANANA BANANA= > env GOPATH GOPATH= > env GOPROXY GOPROXY=http://127.0.0.1:43561/mod PASS > stdout ^BANANA=$ > stdout ^GOPATH=$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ # with GOPROXY, with pass-through, no proxy (0.012s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK PATH=/usr/sbin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= BANANA=banana GOPATH=$WORK/ourgopath GOPROXY=file://$WORK/proxy > env BANANA BANANA=banana > env GOPATH GOPATH=$WORK/ourgopath > env GOPROXY GOPROXY=file://$WORK/proxy PASS > stdout ^BANANA=banana$ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ # with GOPROXY, with pass-through, with proxy (0.010s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK PATH=/usr/sbin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPROXY=file://$WORK/proxy GONOSUMDB=* BANANA=banana GOPATH=$WORK/ourgopath > env BANANA BANANA=banana > env GOPATH GOPATH=$WORK/ourgopath > env GOPROXY GOPROXY=file://$WORK/proxy PASS > stdout ^BANANA=banana$ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ PASS === CONT TestScripts/simple testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.15 GOINTERNALMODPATH=. GONOSUMDB=* # With .gomodproxy supporting files, any GOPROXY from the # environment should be overridden by the test proxy. (0.118s) > env GOPROXY=0.1.2.3 > unquote file.txt > testscript -v file.txt [stdout] WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=http://127.0.0.1:36577/mod goversion=1.15 GONOSUMDB=* > go list -m [stdout] example.com/mod > stdout 'example.com/mod' > go list fruit.com/... [stdout] fruit.com/coretest fruit.com/fruit [stderr] go: downloading fruit.com v1.0.0 > stdout 'fruit.com/fruit' > stdout 'fruit.com/coretest' PASS > stdout 'example.com/mod' > ! stderr .+ PASS === CONT TestScripts/error testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.15 GOINTERNALMODPATH=. GONOSUMDB=* # should support skip (0.000s) > unquote file.txt # stdin (0.088s) > stdin file.txt > ! testscript -v [stdout] WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.15 > exec false [exit status 1] FAIL: $WORK/tmp/testscript155505391/0/script.txt:1: unexpected command failure [stderr] error running in $WORK/tmp/testscript155505391/0 [exit status 1] > stderr 'error running in' # file-based (0.065s) > ! testscript -v file.txt [stdout] WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.15 > exec false [exit status 1] FAIL: $WORK/tmp/testscript281465071/0/script.txt:1: unexpected command failure [stderr] error running file.txt in $WORK/tmp/testscript281465071/0 [exit status 1] > stderr 'error running file.txt in' PASS === CONT TestScripts/noproxy testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.15 GOINTERNALMODPATH=. GONOSUMDB=* # With no .gomodproxy supporting files, we use the GOPROXY from # the environment. (0.161s) > env GOPROXY=0.1.2.3 > unquote file.txt > testscript -v file.txt [stdout] WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=0.1.2.3 goversion=1.15 > go env [stdout] GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build" GOENV="/no-home/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="$WORK/gopath/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="$WORK/gopath" GOPRIVATE="" GOPROXY="0.1.2.3" GOROOT="/usr/lib/go-1.15" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/lib/go-1.15/pkg/tool/linux_amd64" GCCGO="gccgo" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/tmp/go-build977259203=/tmp/go-build -gno-record-gcc-switches" > [!windows] stdout '^GOPROXY="0.1.2.3"$' > [windows] stdout '^set GOPROXY=0.1.2.3$' PASS PASS === CONT TestScripts/env_var_with_go testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.15 GOINTERNALMODPATH=. GONOSUMDB=* # Test passing environment variables to scripts with the go command on PATH # # Below where we check the output of testscript -v, we have to match against # the string literal $WORK because testscript rewrites the actual directory # to $WORK. Hence we don't want to expand this script's $WORK in such a comparison. # # This is the counterpart to env_var_no_go.txt (0.000s) > unquote noproxy.txt > unquote withproxy.txt # Baseline (0.082s) > testscript -v noproxy.txt [stdout] WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.15 > env BANANA BANANA= > env GOPATH GOPATH=$WORK/gopath > env GOPROXY GOPROXY=https://proxy.golang.org,direct PASS > stdout ^BANANA=$ > stdout '^GOPATH=\$WORK[/\\]gopath'$ > [!go1.13] stdout ^GOPROXY=$ > [go1.13] stdout ^GOPROXY=https://proxy.golang.org,direct$ > ! stderr .+ > env BANANA=banana > env GOPATH=$WORK/ourgopath > env GOPROXY= # no GOPROXY, no pass-through, no proxy (0.060s) > testscript -v noproxy.txt [stdout] WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.15 > env BANANA BANANA= > env GOPATH GOPATH=$WORK/gopath > env GOPROXY GOPROXY=https://proxy.golang.org,direct PASS > stdout ^BANANA=$ > stdout '^GOPATH=\$WORK[/\\]gopath'$ > [!go1.13] stdout ^GOPROXY=$ > [go1.13] stdout ^GOPROXY=https://proxy.golang.org,direct$ > ! stderr .+ # no GOPROXY, no pass-through, with proxy (0.045s) > testscript -v withproxy.txt [stdout] WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=http://127.0.0.1:40515/mod goversion=1.15 GONOSUMDB=* > env BANANA BANANA= > env GOPATH GOPATH=$WORK/gopath > env GOPROXY GOPROXY=http://127.0.0.1:40515/mod PASS > stdout ^BANANA=$ > stdout '^GOPATH=\$WORK[/\\]gopath'$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ # no GOPROXY, with pass-through, no proxy (0.047s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/ourgopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY= goversion=1.15 BANANA=banana > env BANANA BANANA=banana > env GOPATH GOPATH=$WORK/ourgopath > env GOPROXY GOPROXY= PASS > stdout ^BANANA=banana$ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$ > ! stderr .+ # no GOPROXY, with pass-through, with proxy (0.043s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/ourgopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY= goversion=1.15 GONOSUMDB=* BANANA=banana > env BANANA BANANA=banana > env GOPATH GOPATH=$WORK/ourgopath > env GOPROXY GOPROXY= PASS > stdout ^BANANA=banana$ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$ > ! stderr .+ > setfilegoproxy $WORK/proxy # with GOPROXY, no pass-through, no proxy (0.043s) > testscript -v noproxy.txt [stdout] WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=file://$WORK/proxy goversion=1.15 > env BANANA BANANA= > env GOPATH GOPATH=$WORK/gopath > env GOPROXY GOPROXY=file://$WORK/proxy PASS > stdout ^BANANA=$ > stdout '^GOPATH=\$WORK[/\\]gopath'$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ # with GOPROXY, no pass-through, with proxy (0.047s) > testscript -v withproxy.txt [stdout] WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=http://127.0.0.1:42065/mod goversion=1.15 GONOSUMDB=* > env BANANA BANANA= > env GOPATH GOPATH=$WORK/gopath > env GOPROXY GOPROXY=http://127.0.0.1:42065/mod PASS > stdout ^BANANA=$ > stdout '^GOPATH=\$WORK[/\\]gopath'$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ # with GOPROXY, with pass-through, no proxy (0.048s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/ourgopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=file://$WORK/proxy goversion=1.15 BANANA=banana > env BANANA BANANA=banana > env GOPATH GOPATH=$WORK/ourgopath > env GOPROXY GOPROXY=file://$WORK/proxy PASS > stdout ^BANANA=banana$ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ # with GOPROXY, with pass-through, with proxy (0.062s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/ourgopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=file://$WORK/proxy goversion=1.15 GONOSUMDB=* BANANA=banana > env BANANA BANANA=banana > env GOPATH GOPATH=$WORK/ourgopath > env GOPROXY GOPROXY=file://$WORK/proxy PASS > stdout ^BANANA=banana$ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ PASS --- PASS: TestScripts (0.05s) --- PASS: TestScripts/help (0.02s) --- PASS: TestScripts/nogo (0.03s) --- PASS: TestScripts/skip (0.09s) --- PASS: TestScripts/work (0.10s) --- PASS: TestScripts/env_var_no_go (0.11s) --- PASS: TestScripts/simple (0.12s) --- PASS: TestScripts/error (0.15s) --- PASS: TestScripts/noproxy (0.16s) --- PASS: TestScripts/env_var_with_go (0.48s) PASS ok github.com/rogpeppe/go-internal/cmd/testscript 0.543s === RUN TestScripts === RUN TestScripts/encode === PAUSE TestScripts/encode === RUN TestScripts/to_stdout === PAUSE TestScripts/to_stdout === RUN TestScripts/txtar-addmod-self === PAUSE TestScripts/txtar-addmod-self === CONT TestScripts/encode === CONT TestScripts/txtar-addmod-self === CONT TestScripts/to_stdout go proxy: no archive github.com v0.0.0-20171119174359-809beceb2371 go proxy: no archive github.com/shurcooL v0.0.0-20171119174359-809beceb2371 === CONT TestScripts/encode testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=http://127.0.0.1:42297/mod goversion=1.15 GONOSUMDB=* > mkdir $WORK/out > txtar-addmod $WORK/out github.com/shurcooL/httpfs@v0.0.0-20171119174359-809beceb2371 > ! stdout .+ > ! stderr .+ > exists $WORK/out/github.com_shurcoo!l_httpfs_v0.0.0-20171119174359-809beceb2371.txt PASS === CONT TestScripts/to_stdout testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=http://127.0.0.1:42297/mod goversion=1.15 GONOSUMDB=* > unquote expect > txtar-addmod - github.com/gobin-testrepos/simple-main [stdout] -- .gomodproxy/github.com_gobin-testrepos_simple-main_v1.0.0/.mod -- module github.com/gobin-testrepos/simple-main -- .gomodproxy/github.com_gobin-testrepos_simple-main_v1.0.0/.info -- {"Version":"v1.0.0","Time":"2018-10-22T18:45:39Z"} -- .gomodproxy/github.com_gobin-testrepos_simple-main_v1.0.0/go.mod -- module github.com/gobin-testrepos/simple-main -- .gomodproxy/github.com_gobin-testrepos_simple-main_v1.0.0/main.go -- package main import "fmt" func main() { fmt.Println("I am a simple module-based main") } > cmp stdout expect > ! stderr .+ PASS === CONT TestScripts/txtar-addmod-self testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=http://127.0.0.1:42297/mod goversion=1.15 GONOSUMDB=* > mkdir $WORK/out > txtar-addmod $WORK/out github.com/gobin-testrepos/simple-main > ! stdout .+ > ! stderr .+ > exists $WORK/out/github.com_gobin-testrepos_simple-main_v1.0.0.txt > ! grep foobar $WORK/out/github.com_gobin-testrepos_simple-main_v1.0.0.txt > txtar-addmod -all $WORK/out github.com/gobin-testrepos/simple-main > grep '-- foobar --' $WORK/out/github.com_gobin-testrepos_simple-main_v1.0.0.txt PASS --- PASS: TestScripts (0.04s) --- PASS: TestScripts/encode (0.07s) --- PASS: TestScripts/to_stdout (0.10s) --- PASS: TestScripts/txtar-addmod-self (0.21s) PASS ok github.com/rogpeppe/go-internal/cmd/txtar-addmod 0.265s === RUN TestScripts === RUN TestScripts/all === PAUSE TestScripts/all === RUN TestScripts/needquote === PAUSE TestScripts/needquote === RUN TestScripts/quote === PAUSE TestScripts/quote === RUN TestScripts/txtar-savedir-self === PAUSE TestScripts/txtar-savedir-self === CONT TestScripts/all === CONT TestScripts/quote === CONT TestScripts/needquote === CONT TestScripts/txtar-savedir-self === CONT TestScripts/quote testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= > unquote blah/withsep > unquote expect > txtar-c -quote blah [stdout] unquote withsep -- withsep -- >-- separator -- >foo > ! stderr .+ > cmp stdout expect PASS === CONT TestScripts/needquote testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= > unquote blah/withsep > unquote expect > txtar-c blah [stdout] -- nosep -- bar [stderr] txtar-c: blah/withsep: ignoring file with txtar marker in > stderr 'txtar-c: blah.withsep: ignoring file with txtar marker in' > cmp stdout expect PASS === CONT TestScripts/txtar-savedir-self testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= > unquote expect > txtar-c blah [stdout] -- go.mod -- module example.com/blah -- main.go -- package main import "fmt" func main() { fmt.Println("Hello, world!") } -- subdir/x -- x contents > ! stderr .+ > cmp stdout expect PASS === CONT TestScripts/all testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= > unquote expect-all > unquote expect-no-all # Without the -a flag, it should ignore . files. (0.010s) > txtar-c blah [stdout] -- go.mod -- module example.com/blah -- main.go -- package main import "fmt" func main() { fmt.Println("Hello, world!") } > ! stderr .+ > cmp stdout expect-no-all # With the -a flag, it should include them. (0.004s) > txtar-c -a blah [stdout] -- .foo/foo -- foo -- .other -- other -- go.mod -- module example.com/blah -- main.go -- package main import "fmt" func main() { fmt.Println("Hello, world!") } > ! stderr .+ > cmp stdout expect-all PASS --- PASS: TestScripts (0.00s) --- PASS: TestScripts/quote (0.01s) --- PASS: TestScripts/needquote (0.01s) --- PASS: TestScripts/txtar-savedir-self (0.01s) --- PASS: TestScripts/all (0.02s) PASS ok github.com/rogpeppe/go-internal/cmd/txtar-c 0.025s ? github.com/rogpeppe/go-internal/cmd/txtar-goproxy [no test files] === RUN TestScripts === RUN TestScripts/extract-dir === PAUSE TestScripts/extract-dir === RUN TestScripts/extract-out-of-bounds === PAUSE TestScripts/extract-out-of-bounds === RUN TestScripts/extract-stdin === PAUSE TestScripts/extract-stdin === RUN TestScripts/extract === PAUSE TestScripts/extract === CONT TestScripts/extract-dir === CONT TestScripts/extract-stdin === CONT TestScripts/extract === CONT TestScripts/extract-out-of-bounds === CONT TestScripts/extract-dir testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= > unquote file.txtar > txtar-x -C x/y file.txtar > cmp x/y/foo expect/foo > cmp x/y/a/b/bar expect/a/b/bar PASS === CONT TestScripts/extract testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= > unquote file.txtar > txtar-x file.txtar > cmp foo expect/foo > cmp a/b/bar expect/a/b/bar PASS === CONT TestScripts/extract-stdin testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= > unquote file.txtar > stdin file.txtar > txtar-x > cmp foo expect/foo > cmp a/b/bar expect/a/b/bar PASS === CONT TestScripts/extract-out-of-bounds testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= > unquote file1.txtar file2.txtar > ! txtar-x file1.txtar [stderr] txtar-x: "../foo": outside parent directory [exit status 1] > stderr '"\.\./foo": outside parent directory' > ! txtar-x file2.txtar [stderr] txtar-x: "/foo": outside parent directory [exit status 1] > stderr '"/foo": outside parent directory' PASS --- PASS: TestScripts (0.00s) --- PASS: TestScripts/extract-dir (0.01s) --- PASS: TestScripts/extract (0.01s) --- PASS: TestScripts/extract-out-of-bounds (0.01s) --- PASS: TestScripts/extract-stdin (0.01s) PASS ok github.com/rogpeppe/go-internal/cmd/txtar-x 0.019s === RUN TestHash1 --- PASS: TestHash1 (0.00s) === RUN TestHashDir --- PASS: TestHashDir (0.00s) === RUN TestHashZip --- PASS: TestHashZip (0.00s) === RUN TestDirFiles --- PASS: TestDirFiles (0.00s) PASS ok github.com/rogpeppe/go-internal/dirhash 0.023s === RUN TestCompare --- PASS: TestCompare (0.00s) === RUN TestOrder --- PASS: TestOrder (0.00s) === RUN TestInterface --- PASS: TestInterface (0.00s) PASS ok github.com/rogpeppe/go-internal/fmtsort 0.005s === RUN TestScripts === RUN TestScripts/list === PAUSE TestScripts/list === CONT TestScripts/list testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=http://127.0.0.1:40567/mod goversion=1.15 GONOSUMDB=* # prior to go 1.12 you cannot list a module without a requirement (0.049s) > [!go1.12] go get fruit.com > go list -m -versions fruit.com [stdout] fruit.com v1.0.0 v1.1.0 > stdout 'v1.0.0 v1.1.0' > go get -d fruit.com@v1.0.0 [stderr] go: downloading fruit.com v1.0.0 > go get -d fruit.com@v1.1.0 [stderr] go: downloading fruit.com v1.1.0 PASS --- PASS: TestScripts (0.04s) --- PASS: TestScripts/list (0.05s) PASS ok github.com/rogpeppe/go-internal/goproxytest 0.104s === RUN TestSimple === RUN TestSimple/version === PAUSE TestSimple/version === CONT TestSimple/version testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GOPATH=$WORK/gopath CCACHE_DISABLE=1 GOARCH=amd64 GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-x86_64-linux-gnu/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.15 > go list -f '{{context.ReleaseTags}}' runtime [stdout] [go1.1 go1.2 go1.3 go1.4 go1.5 go1.6 go1.7 go1.8 go1.9 go1.10 go1.11 go1.12 go1.13 go1.14 go1.15] > [go1.11] [!go1.12] stdout go1\.11 > [go1.11] [!go1.12] ! stdout go1\.12 > [go1.12] stdout go1\.12 PASS --- PASS: TestSimple (0.05s) --- PASS: TestSimple/version (0.05s) PASS ok github.com/rogpeppe/go-internal/gotooltest 0.107s === RUN TestReadImports --- PASS: TestReadImports (0.00s) === RUN TestReadComments --- PASS: TestReadComments (0.00s) === RUN TestReadFailures --- PASS: TestReadFailures (0.00s) === RUN TestReadFailuresIgnored --- PASS: TestReadFailuresIgnored (0.00s) === RUN TestScan --- PASS: TestScan (0.00s) === RUN TestScanStar --- PASS: TestScanStar (0.00s) PASS ok github.com/rogpeppe/go-internal/imports 0.013s ? github.com/rogpeppe/go-internal/internal/os/execpath [no test files] ? github.com/rogpeppe/go-internal/internal/syscall/windows [no test files] ? github.com/rogpeppe/go-internal/internal/syscall/windows/registry [no test files] ? github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll [no test files] === RUN TestDiff --- PASS: TestDiff (0.00s) PASS ok github.com/rogpeppe/go-internal/internal/textutil 0.009s === RUN TestMutexExcludes === PAUSE TestMutexExcludes === RUN TestReadWaitsForLock === PAUSE TestReadWaitsForLock === RUN TestCanLockExistingFile === PAUSE TestCanLockExistingFile === RUN TestSpuriousEDEADLK --- PASS: TestSpuriousEDEADLK (0.03s) === CONT TestMutexExcludes lockedfile_test.go:74: mu := MutexAt(_) lockedfile_test.go:80: unlock, _ := mu.Lock() lockedfile_test.go:83: mu2 := MutexAt(mu.Path) === CONT TestCanLockExistingFile === CONT TestReadWaitsForLock lockedfile_test.go:123: WriteString("part 1\n") = === CONT TestMutexExcludes lockedfile_test.go:96: unlock() lockedfile_test.go:91: unlock2, _ := mu2.Lock() lockedfile_test.go:92: unlock2() --- PASS: TestCanLockExistingFile (0.01s) --- PASS: TestMutexExcludes (0.01s) === CONT TestReadWaitsForLock lockedfile_test.go:145: WriteString("part 2\n") = lockedfile_test.go:135: Read(_) = "part 1\npart 2\n" --- PASS: TestReadWaitsForLock (0.01s) PASS ok github.com/rogpeppe/go-internal/lockedfile 0.046s === RUN TestLockExcludesLock === PAUSE TestLockExcludesLock === RUN TestLockExcludesRLock === PAUSE TestLockExcludesRLock === RUN TestRLockExcludesOnlyLock === PAUSE TestRLockExcludesOnlyLock === RUN TestLockNotDroppedByExecCommand filelock_test.go:190: fd 7 = /tmp/TestLockNotDroppedByExecCommand400792575 filelock_test.go:193: Lock(fd 7) = filelock_test.go:195: fd 8 = os.Open("/tmp/TestLockNotDroppedByExecCommand400792575") filelock_test.go:206: Lock(fd 8) is blocked (as expected) filelock_test.go:207: Unlock(fd 7) = asm_amd64.s:1374: Lock(fd 8) = filelock_test.go:209: Unlock(fd 8) = --- PASS: TestLockNotDroppedByExecCommand (0.02s) === CONT TestLockExcludesLock filelock_test.go:124: fd 7 = /tmp/TestLockExcludesLock594653010 filelock_test.go:127: fd 8 = os.Open("/tmp/TestLockExcludesLock594653010") filelock_test.go:130: Lock(fd 7) = === CONT TestRLockExcludesOnlyLock filelock_test.go:156: fd 9 = /tmp/TestRLockExcludesOnlyLock781806217 filelock_test.go:158: RLock(fd 9) = filelock_test.go:160: fd 10 = os.Open("/tmp/TestRLockExcludesOnlyLock781806217") filelock_test.go:172: RLock(fd 10) = filelock_test.go:175: fd 11 = os.Open("/tmp/TestRLockExcludesOnlyLock781806217") === CONT TestLockExcludesRLock filelock_test.go:140: fd 12 = /tmp/TestLockExcludesRLock779808340 filelock_test.go:143: fd 13 = os.Open("/tmp/TestLockExcludesRLock779808340") filelock_test.go:146: Lock(fd 12) = === CONT TestLockExcludesLock filelock_test.go:131: Lock(fd 8) is blocked (as expected) filelock_test.go:132: Unlock(fd 7) = asm_amd64.s:1374: Lock(fd 8) = filelock_test.go:134: Unlock(fd 8) = --- PASS: TestLockExcludesLock (0.01s) === CONT TestRLockExcludesOnlyLock filelock_test.go:177: Lock(fd 11) is blocked (as expected) filelock_test.go:179: Unlock(fd 10) = === CONT TestLockExcludesRLock filelock_test.go:147: RLock(fd 13) is blocked (as expected) === CONT TestRLockExcludesOnlyLock filelock_test.go:181: Unlock(fd 9) = === CONT TestLockExcludesRLock filelock_test.go:148: Unlock(fd 12) = asm_amd64.s:1374: RLock(fd 13) = filelock_test.go:150: Unlock(fd 13) = --- PASS: TestLockExcludesRLock (0.01s) === CONT TestRLockExcludesOnlyLock asm_amd64.s:1374: Lock(fd 11) = filelock_test.go:184: Unlock(fd 11) = --- PASS: TestRLockExcludesOnlyLock (0.02s) PASS ok github.com/rogpeppe/go-internal/lockedfile/internal/filelock 0.077s === RUN TestPrintGolden --- PASS: TestPrintGolden (0.00s) === RUN TestParseLax --- PASS: TestParseLax (0.00s) === RUN TestPrintParse --- PASS: TestPrintParse (0.00s) === RUN TestModulePath === RUN TestModulePath/module_"github.com/rsc/vgotest" === RUN TestModulePath/module_github.com/rsc/vgotest === RUN TestModulePath/module__"github.com/rsc/vgotest" === RUN TestModulePath/module__github.com/rsc/vgotest === RUN TestModulePath/module_`github.com/rsc/vgotest` === RUN TestModulePath/module_"github.com/rsc/vgotest/v2" === RUN TestModulePath/module_github.com/rsc/vgotest/v2 === RUN TestModulePath/module_"gopkg.in/yaml.v2" === RUN TestModulePath/module_gopkg.in/yaml.v2 === RUN TestModulePath/module_"gopkg.in/check.v1"_ === RUN TestModulePath/module_"gopkg.in/check.v1_" === RUN TestModulePath/module_gopkg.in/check.v1_ === RUN TestModulePath/module_"gopkg.in/check.v1"__ === RUN TestModulePath/module_gopkg.in/check.v1__ === RUN TestModulePath/module_"gopkg.in/check.v1"__#01 === RUN TestModulePath/module_gopkg.in/check.v1__#01 === RUN TestModulePath/module__"gopkg.in/check.v1"__ === RUN TestModulePath/module__gopkg.in/check.v1__ === RUN TestModulePath/module_"gopkg.in/check.v1"asd === RUN TestModulePath/module__"gopkg.in/check.v1"__#01 === RUN TestModulePath/module__gopkg.in/check.v1__#01 === RUN TestModulePath/module_"gopkg.in/check.v1"asd#01 === RUN TestModulePath/module___module_a/b/c_ === RUN TestModulePath/module_"___" === RUN TestModulePath/module___ === RUN TestModulePath/module_"__a/b/c__" === RUN TestModulePath/module_"github.com/rsc/vgotest1"_//_with_a_comment --- PASS: TestModulePath (0.00s) --- PASS: TestModulePath/module_"github.com/rsc/vgotest" (0.00s) --- PASS: TestModulePath/module_github.com/rsc/vgotest (0.00s) --- PASS: TestModulePath/module__"github.com/rsc/vgotest" (0.00s) --- PASS: TestModulePath/module__github.com/rsc/vgotest (0.00s) --- PASS: TestModulePath/module_`github.com/rsc/vgotest` (0.00s) --- PASS: TestModulePath/module_"github.com/rsc/vgotest/v2" (0.00s) --- PASS: TestModulePath/module_github.com/rsc/vgotest/v2 (0.00s) --- PASS: TestModulePath/module_"gopkg.in/yaml.v2" (0.00s) --- PASS: TestModulePath/module_gopkg.in/yaml.v2 (0.00s) --- PASS: TestModulePath/module_"gopkg.in/check.v1"_ (0.00s) --- PASS: TestModulePath/module_"gopkg.in/check.v1_" (0.00s) --- PASS: TestModulePath/module_gopkg.in/check.v1_ (0.00s) --- PASS: TestModulePath/module_"gopkg.in/check.v1"__ (0.00s) --- PASS: TestModulePath/module_gopkg.in/check.v1__ (0.00s) --- PASS: TestModulePath/module_"gopkg.in/check.v1"__#01 (0.00s) --- PASS: TestModulePath/module_gopkg.in/check.v1__#01 (0.00s) --- PASS: TestModulePath/module__"gopkg.in/check.v1"__ (0.00s) --- PASS: TestModulePath/module__gopkg.in/check.v1__ (0.00s) --- PASS: TestModulePath/module_"gopkg.in/check.v1"asd (0.00s) --- PASS: TestModulePath/module__"gopkg.in/check.v1"__#01 (0.00s) --- PASS: TestModulePath/module__gopkg.in/check.v1__#01 (0.00s) --- PASS: TestModulePath/module_"gopkg.in/check.v1"asd#01 (0.00s) --- PASS: TestModulePath/module___module_a/b/c_ (0.00s) --- PASS: TestModulePath/module_"___" (0.00s) --- PASS: TestModulePath/module___ (0.00s) --- PASS: TestModulePath/module_"__a/b/c__" (0.00s) --- PASS: TestModulePath/module_"github.com/rsc/vgotest1"_//_with_a_comment (0.00s) === RUN TestAddDropReplace === RUN TestAddDropReplace/#0 === RUN TestAddDropReplace/#1 === RUN TestAddDropReplace/#2 --- PASS: TestAddDropReplace (0.00s) --- PASS: TestAddDropReplace/#0 (0.00s) --- PASS: TestAddDropReplace/#1 (0.00s) --- PASS: TestAddDropReplace/#2 (0.00s) === RUN TestAddRequire === RUN TestAddRequire/#0 === RUN TestAddRequire/#1 === RUN TestAddRequire/#2 --- PASS: TestAddRequire (0.00s) --- PASS: TestAddRequire/#0 (0.00s) --- PASS: TestAddRequire/#1 (0.00s) --- PASS: TestAddRequire/#2 (0.00s) PASS ok github.com/rogpeppe/go-internal/modfile 0.013s === RUN TestCheck --- PASS: TestCheck (0.00s) === RUN TestCheckPath --- PASS: TestCheckPath (0.00s) === RUN TestSplitPathVersion --- PASS: TestSplitPathVersion (0.00s) === RUN TestEncodePath --- PASS: TestEncodePath (0.00s) === RUN TestDecodePath --- PASS: TestDecodePath (0.00s) PASS ok github.com/rogpeppe/go-internal/module 0.030s === RUN TestWork --- PASS: TestWork (0.04s) === RUN TestWorkParallel --- PASS: TestWorkParallel (0.01s) === RUN TestCache --- PASS: TestCache (0.00s) PASS ok github.com/rogpeppe/go-internal/par 0.068s ? github.com/rogpeppe/go-internal/renameio [no test files] === RUN TestIsValid --- PASS: TestIsValid (0.00s) === RUN TestCanonical --- PASS: TestCanonical (0.00s) === RUN TestMajor --- PASS: TestMajor (0.00s) === RUN TestMajorMinor --- PASS: TestMajorMinor (0.00s) === RUN TestPrerelease --- PASS: TestPrerelease (0.00s) === RUN TestBuild --- PASS: TestBuild (0.00s) === RUN TestCompare --- PASS: TestCompare (0.00s) === RUN TestMax --- PASS: TestMax (0.00s) PASS ok github.com/rogpeppe/go-internal/semver 0.038s ? github.com/rogpeppe/go-internal/testenv [no test files] === RUN TestCRLFInput === RUN TestCRLFInput/_ === RUN TestCRLFInput/_/script === PAUSE TestCRLFInput/_/script === CONT TestCRLFInput/_/script testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= > exists output.txt PASS --- PASS: TestCRLFInput (0.00s) --- PASS: TestCRLFInput/_ (0.00s) --- PASS: TestCRLFInput/_/script (0.00s) === RUN TestEnv --- PASS: TestEnv (0.00s) === RUN TestScripts === RUN TestScripts/cmpenv === PAUSE TestScripts/cmpenv === RUN TestScripts/command === PAUSE TestScripts/command === RUN TestScripts/commandstatus === PAUSE TestScripts/commandstatus === RUN TestScripts/cpstdout === PAUSE TestScripts/cpstdout === RUN TestScripts/defer === PAUSE TestScripts/defer === RUN TestScripts/evalsymlink === PAUSE TestScripts/evalsymlink === RUN TestScripts/exec_path_change === PAUSE TestScripts/exec_path_change === RUN TestScripts/execguard === PAUSE TestScripts/execguard === RUN TestScripts/exists === PAUSE TestScripts/exists === RUN TestScripts/hello === PAUSE TestScripts/hello === RUN TestScripts/interrupt === PAUSE TestScripts/interrupt === RUN TestScripts/nothing === PAUSE TestScripts/nothing === RUN TestScripts/readfile === PAUSE TestScripts/readfile === RUN TestScripts/regexpquote === PAUSE TestScripts/regexpquote === RUN TestScripts/setenv === PAUSE TestScripts/setenv === RUN TestScripts/setupfiles === PAUSE TestScripts/setupfiles === RUN TestScripts/stdin === PAUSE TestScripts/stdin === RUN TestScripts/testscript_update_script === PAUSE TestScripts/testscript_update_script === RUN TestScripts/testscript_update_script_actual_is_file === PAUSE TestScripts/testscript_update_script_actual_is_file === RUN TestScripts/testscript_update_script_expected_not_in_archive === PAUSE TestScripts/testscript_update_script_expected_not_in_archive === RUN TestScripts/testscript_update_script_quote === PAUSE TestScripts/testscript_update_script_quote === RUN TestScripts/testscript_update_script_stderr === PAUSE TestScripts/testscript_update_script_stderr === RUN TestScripts/values === PAUSE TestScripts/values === RUN TestScripts/wait === PAUSE TestScripts/wait === CONT TestScripts/cmpenv === CONT TestScripts/readfile === CONT TestScripts/cmpenv testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* > env $=$ > cmpenv file1 file2 PASS === CONT TestScripts/nothing testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* # Intentionally blank file, used to test that -testwork doesn't remove the work directory (0.000s) PASS === CONT TestScripts/evalsymlink === CONT TestScripts/defer === CONT TestScripts/testscript_update_script_actual_is_file === CONT TestScripts/defer testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* > testdefer > testdefer > testdefer PASS === CONT TestScripts/cpstdout === CONT TestScripts/exec_path_change === CONT TestScripts/regexpquote testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* > env XXX='hello)' > grep ^${XXX@R}$ file.txt PASS === CONT TestScripts/interrupt === CONT TestScripts/testscript_update_script_actual_is_file testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* > unquote scripts/testscript.txt > unquote testscript-new.txt > testscript-update scripts testscript: PASS $WORK/scripts/testscript.txt updated > cmp scripts/testscript.txt testscript-new.txt PASS === CONT TestScripts/testscript_update_script === CONT TestScripts/hello === CONT TestScripts/commandstatus === CONT TestScripts/execguard === CONT TestScripts/testscript_update_script_stderr === CONT TestScripts/wait === CONT TestScripts/command === CONT TestScripts/exists === CONT TestScripts/values === CONT TestScripts/exists testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* > chmod 444 foo_r > exists foo > ! exists unfoo # TODO The following line fails but probably should not. # ! exists -readonly foo (0.000s) > exists foo_r > exists -readonly foo_r PASS === CONT TestScripts/stdin === CONT TestScripts/setupfiles testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* # check that the Setup function saw the unarchived files, # including the temp directory that's always created. (0.000s) > setup-filenames a b tmp PASS === CONT TestScripts/values testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* > test-values PASS === CONT TestScripts/setenv testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* > setSpecialVal > exists $SPECIALVAL.txt > ensureSpecialVal PASS === CONT TestScripts/testscript_update_script_expected_not_in_archive === CONT TestScripts/testscript_update_script_quote === CONT TestScripts/hello testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* > [!exec:cat] stop # hello world (0.051s) > exec cat hello.text [stdout] hello world > stdout 'hello world\n' > ! stderr . PASS === CONT TestScripts/interrupt testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* > [windows] skip > signalcatcher & > waitfile catchsignal > interrupt > wait [background] testscript.test: exit status 0 [stdout] caught interrupt > stdout 'caught interrupt' PASS === CONT TestScripts/execguard testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* > [exec:nosuchcommand] exec nosuchcommand > [!exec:cat] stop > exec cat foo [stdout] foo > stdout 'foo\n' PASS === CONT TestScripts/cpstdout testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* > [!exec:cat] stop # hello world (0.055s) > exec cat hello.text [stdout] hello world > cp stdout got > cmp got hello.text PASS === CONT TestScripts/evalsymlink testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* # If ioutil.TempDir returns a sym linked dir (default behaviour in macOS for example) the # matcher will have problems with external programs that uses the real path. # This script tests that $WORK is matched in a consistent way (also see #79). (0.056s) > [windows] skip > exec pwd [stdout] $WORK > stdout ^$WORK$ > exec pwd -P [stdout] $WORK > stdout ^$WORK$ PASS === CONT TestScripts/command testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* > printargs a b 'c d' [stdout] ["printargs" "a" "b" "c d"] > stdout '\["printargs" "a" "b" "c d"\]\n' PASS === CONT TestScripts/readfile testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* > echo stdout stdout [stdout] stdout > testreadfile stdout > echo stderr stderr [stderr] stderr > testreadfile stderr > testreadfile x/somefile PASS === CONT TestScripts/testscript_update_script_stderr testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* > unquote scripts/testscript.txt > unquote testscript-new.txt > testscript-update scripts testscript: PASS $WORK/scripts/testscript.txt updated > cmp scripts/testscript.txt testscript-new.txt PASS === CONT TestScripts/testscript_update_script testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* > unquote scripts/testscript.txt > unquote testscript-new.txt > testscript-update scripts testscript: PASS $WORK/scripts/testscript.txt updated > cmp scripts/testscript.txt testscript-new.txt PASS === CONT TestScripts/testscript_update_script_expected_not_in_archive testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* # Verify that comparing stdout against a file not in the archive does nothing (0.012s) > unquote scripts/testscript.txt > cp scripts/testscript.txt unchanged > ! testscript-update scripts testscript: > echo stdout right [stdout] right > cp file expect > cmp stdout expect [diff -stdout +expect] -right +wrong FAIL: $WORK/scripts/testscript.txt:3: stdout and expect differ > cmp scripts/testscript.txt unchanged PASS === CONT TestScripts/testscript_update_script_quote testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* > unquote scripts/testscript.txt > unquote testscript-new.txt > testscript-update scripts testscript: PASS $WORK/scripts/testscript.txt updated > cmp scripts/testscript.txt testscript-new.txt PASS === CONT TestScripts/commandstatus testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* > ! status 1 [exit status 1] > ! status 2 [exit status 2] > status 0 PASS === CONT TestScripts/stdin testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* > [!exec:cat] skip > stdin hello.txt > exec cat [stdout] hello > stdout hello > exec cat > ! stdout hello > [!exec:cat] stop # Check that 'stdin stdout' works. (0.006s) > exec cat hello.txt [stdout] hello > stdin stdout > exec cat [stdout] hello > stdout hello PASS === CONT TestScripts/wait testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* > [!exec:echo] skip > [!exec:false] skip # TODO: the '\n' below doesn't work on Windows on Github Actions, which does # have coreutils like "echo" installed. Perhaps they emit CRLF? (0.066s) > [windows] skip > exec echo foo [stdout] foo > stdout foo > exec echo foo & > exec echo bar & > ! exec false & # Starting a background process should clear previous output. (0.000s) > ! stdout foo # Wait should set the output to the concatenated outputs of the background # programs, in the order in which they were started. (0.005s) > wait [background] echo foo: exit status 0 [stdout] foo [background] echo bar: exit status 0 [stdout] bar [background] false: exit status 1 > stdout 'foo\nbar' # The end of the test should interrupt or kill any remaining background # programs. (0.001s) > [!exec:sleep] skip > ! exec sleep 86400 & [background] sleep 86400: signal: interrupt PASS === CONT TestScripts/exec_path_change testscript.go:382: WORK=$WORK PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= GONOSUMDB=* # If the PATH environment variable is set in the testscript.Params.Setup phase # or set directly within a script, exec should honour that PATH (0.494s) > [!exec:go] skip > env HOME=$WORK${/}home > [windows] env USERPROFILE=$WORK\home > [windows] env LOCALAPPDATA=$WORK\appdata > cd go $WORK/go > exec go$exe version [stdout] go version go1.15.9 linux/amd64 > stdout 'go version' > exec go$exe build > env PATH=$WORK${/}go${:}$PATH > exec go$exe version [stdout] This is not go > stdout 'This is not go' PASS --- PASS: TestScripts (0.00s) --- PASS: TestScripts/cmpenv (0.00s) --- PASS: TestScripts/nothing (0.00s) --- PASS: TestScripts/defer (0.00s) --- PASS: TestScripts/regexpquote (0.00s) --- PASS: TestScripts/testscript_update_script_actual_is_file (0.00s) --- PASS: TestScripts/exists (0.00s) --- PASS: TestScripts/values (0.05s) --- PASS: TestScripts/setupfiles (0.05s) --- PASS: TestScripts/setenv (0.00s) --- PASS: TestScripts/hello (0.05s) --- PASS: TestScripts/interrupt (0.05s) --- PASS: TestScripts/execguard (0.05s) --- PASS: TestScripts/cpstdout (0.06s) --- PASS: TestScripts/evalsymlink (0.06s) --- PASS: TestScripts/command (0.06s) --- PASS: TestScripts/readfile (0.06s) --- PASS: TestScripts/testscript_update_script_stderr (0.06s) --- PASS: TestScripts/testscript_update_script (0.06s) --- PASS: TestScripts/testscript_update_script_expected_not_in_archive (0.01s) --- PASS: TestScripts/testscript_update_script_quote (0.01s) --- PASS: TestScripts/commandstatus (0.07s) --- PASS: TestScripts/stdin (0.07s) --- PASS: TestScripts/wait (0.07s) --- PASS: TestScripts/exec_path_change (0.52s) === RUN TestTestwork --- PASS: TestTestwork (3.15s) === RUN TestWorkdirRoot === RUN TestWorkdirRoot/run_tests === RUN TestWorkdirRoot/run_tests/nothing === PAUSE TestWorkdirRoot/run_tests/nothing === CONT TestWorkdirRoot/run_tests/nothing testscript.go:382: WORK=/tmp/041930057/script-nothing PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= # Intentionally empty test script; used to test Params.WorkdirRoot (0.000s) PASS --- PASS: TestWorkdirRoot (0.00s) --- PASS: TestWorkdirRoot/run_tests (0.00s) --- PASS: TestWorkdirRoot/run_tests/nothing (0.00s) === RUN TestBadDir --- PASS: TestBadDir (0.00s) PASS ok github.com/rogpeppe/go-internal/testscript 3.689s === RUN Test === RUN Test/basic === RUN Test/basic#01 --- PASS: Test (0.00s) --- PASS: Test/basic (0.00s) --- PASS: Test/basic#01 (0.00s) === RUN TestWrite --- PASS: TestWrite (0.00s) === RUN TestUnquote === RUN TestUnquote/no_final_newline === RUN TestUnquote/no_initial_> --- PASS: TestUnquote (0.00s) --- PASS: TestUnquote/no_final_newline (0.00s) --- PASS: TestUnquote/no_initial_> (0.00s) === RUN TestQuote === RUN TestQuote/empty === RUN TestQuote/one_line === RUN TestQuote/several_lines === RUN TestQuote/bad_data === RUN TestQuote/no_final_newline --- PASS: TestQuote (0.00s) --- PASS: TestQuote/empty (0.00s) --- PASS: TestQuote/one_line (0.00s) --- PASS: TestQuote/several_lines (0.00s) --- PASS: TestQuote/bad_data (0.00s) --- PASS: TestQuote/no_final_newline (0.00s) PASS ok github.com/rogpeppe/go-internal/txtar 0.005s make[1]: Leaving directory '/build/golang-github-rogpeppe-go-internal-1.6.2' create-stamp debian/debhelper-build-stamp dh_testroot -O--buildsystem=golang dh_prep -O--buildsystem=golang dh_auto_install -O--buildsystem=golang cd obj-x86_64-linux-gnu && mkdir -p /build/golang-github-rogpeppe-go-internal-1.6.2/debian/tmp/usr cd obj-x86_64-linux-gnu && cp -r bin /build/golang-github-rogpeppe-go-internal-1.6.2/debian/tmp/usr dh_install -O--buildsystem=golang dh_installdocs -O--buildsystem=golang dh_installchangelogs -O--buildsystem=golang dh_installsystemduser -O--buildsystem=golang dh_perl -O--buildsystem=golang dh_link -O--buildsystem=golang dh_strip_nondeterminism -O--buildsystem=golang dh_compress -O--buildsystem=golang dh_fixperms -O--buildsystem=golang dh_missing -O--buildsystem=golang dh_dwz -a -O--buildsystem=golang dwz: debian/go-internal/usr/bin/testscript: .debug_info section not present dwz: debian/go-internal/usr/bin/txtar-addmod: .debug_info section not present dwz: debian/go-internal/usr/bin/txtar-c: .debug_info section not present dwz: debian/go-internal/usr/bin/txtar-goproxy: .debug_info section not present dwz: debian/go-internal/usr/bin/txtar-x: .debug_info section not present dwz: Too few files for multifile optimization dh_dwz: warning: No dwz multifile created, but not explicitly requested either so ignoring it. dh_dwz: warning: Common issues include no debug information at all (missing -g) and dh_dwz: warning: compressed debug information (#931891). dh_strip -a -O--buildsystem=golang dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/testscript dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/txtar-goproxy dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/txtar-addmod dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/txtar-x dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/txtar-c dh_makeshlibs -a -O--buildsystem=golang dh_shlibdeps -a -O--buildsystem=golang dh_installdeb -O--buildsystem=golang dh_golang -O--buildsystem=golang dh_gencontrol -O--buildsystem=golang dh_md5sums -O--buildsystem=golang dh_builddeb -O--buildsystem=golang dpkg-deb: building package 'golang-github-rogpeppe-go-internal-dev' in '../golang-github-rogpeppe-go-internal-dev_1.6.2-1_all.deb'. dpkg-deb: building package 'go-internal' in '../go-internal_1.6.2-1_amd64.deb'. dpkg-genbuildinfo --build=binary dpkg-genchanges --build=binary >../golang-github-rogpeppe-go-internal_1.6.2-1_amd64.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: including full source code in upload I: copying local configuration I: user script /srv/workspace/pbuilder/4151103/tmp/hooks/B01_cleanup starting I: user script /srv/workspace/pbuilder/4151103/tmp/hooks/B01_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/4151103 and its subdirectories I: Current time: Mon Nov 15 15:51:32 +14 2021 I: pbuilder-time-stamp: 1636941092