Diff of the two buildlogs: -- --- b1/build.log 2021-08-20 00:01:34.007419136 +0000 +++ b2/build.log 2021-08-20 00:07:31.062136096 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu Aug 19 11:59:05 -12 2021 -I: pbuilder-time-stamp: 1629417545 +I: Current time: Thu Sep 22 20:24:37 +14 2022 +I: pbuilder-time-stamp: 1663827877 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -16,8 +16,8 @@ I: copying [./golang-github-google-wire_0.4.0-3.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' -gpgv: keyblock resource '/tmp/dpkg-verify-sig.BxD1a6dg/trustedkeys.kbx': General error -gpgv: Signature made Sun Mar 8 07:46:01 2020 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.gDohiyGD/trustedkeys.kbx': General error +gpgv: Signature made Mon Mar 9 09:46:01 2020 +14 gpgv: using RSA key 142421B19AD4A95996F95072EA2500B412C59ACF gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./golang-github-google-wire_0.4.0-3.dsc @@ -26,135 +26,169 @@ dpkg-source: info: unpacking golang-github-google-wire_0.4.0-3.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/12435/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/30820/tmp/hooks/D01_modify_environment starting +debug: Running on codethink9-arm64. +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/30820/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/30820/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + 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]="aarch64-unknown-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=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=8' - DISTRIBUTION='' - HOME='/var/lib/jenkins' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/var/lib/jenkins + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='12435' - PS1='# ' - PS2='> ' + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-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=30820 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.1jCwHUshaa/pbuilderrc_LkMt --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.1jCwHUshaa/b1 --logfile b1/build.log golang-github-google-wire_0.4.0-3.dsc' - SUDO_GID='117' - SUDO_UID='110' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - USERNAME='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.16:3128' + 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.1jCwHUshaa/pbuilderrc_KuDk --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.1jCwHUshaa/b2 --logfile b2/build.log golang-github-google-wire_0.4.0-3.dsc' + SUDO_GID=117 + SUDO_UID=110 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + USERNAME=root + _='I: set' + http_proxy=http://192.168.101.16:3128 I: uname -a - Linux codethink10-arm64 4.15.0-154-generic #161-Ubuntu SMP Fri Jul 30 13:01:15 UTC 2021 aarch64 GNU/Linux + Linux i-capture-the-hostname 4.15.0-154-generic #161-Ubuntu SMP Fri Jul 30 13:01:15 UTC 2021 aarch64 GNU/Linux I: ls -l /bin total 5252 - -rwxr-xr-x 1 root root 1282512 Aug 4 08:25 bash - -rwxr-xr-x 3 root root 34808 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 34808 Jul 20 2020 bzcat - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Jul 20 2020 bzdiff - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Sep 4 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Jul 20 2020 bzgrep - -rwxr-xr-x 3 root root 34808 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 14264 Jul 20 2020 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 20 2020 bzmore - -rwxr-xr-x 1 root root 39832 Sep 22 2020 cat - -rwxr-xr-x 1 root root 64512 Sep 22 2020 chgrp - -rwxr-xr-x 1 root root 60368 Sep 22 2020 chmod - -rwxr-xr-x 1 root root 64528 Sep 22 2020 chown - -rwxr-xr-x 1 root root 138896 Sep 22 2020 cp - -rwxr-xr-x 1 root root 129544 Dec 10 2020 dash - -rwxr-xr-x 1 root root 101384 Sep 22 2020 date - -rwxr-xr-x 1 root root 80984 Sep 22 2020 dd - -rwxr-xr-x 1 root root 89824 Sep 22 2020 df - -rwxr-xr-x 1 root root 143088 Sep 22 2020 dir - -rwxr-xr-x 1 root root 76152 Jul 28 07:09 dmesg - lrwxrwxrwx 1 root root 8 Nov 6 2019 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Nov 6 2019 domainname -> hostname - -rwxr-xr-x 1 root root 35632 Sep 22 2020 echo - -rwxr-xr-x 1 root root 28 Nov 9 2020 egrep - -rwxr-xr-x 1 root root 31512 Sep 22 2020 false - -rwxr-xr-x 1 root root 28 Nov 9 2020 fgrep - -rwxr-xr-x 1 root root 64856 Jul 28 07:09 findmnt - -rwsr-xr-x 1 root root 34824 Feb 26 04:12 fusermount - -rwxr-xr-x 1 root root 178400 Nov 9 2020 grep - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 gunzip - -rwxr-xr-x 1 root root 6376 Mar 2 11:30 gzexe - -rwxr-xr-x 1 root root 93744 Mar 2 11:30 gzip - -rwxr-xr-x 1 root root 18440 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 68720 Sep 22 2020 ln - -rwxr-xr-x 1 root root 52720 Feb 7 2020 login - -rwxr-xr-x 1 root root 143088 Sep 22 2020 ls - -rwxr-xr-x 1 root root 161960 Jul 28 07:09 lsblk - -rwxr-xr-x 1 root root 85200 Sep 22 2020 mkdir - -rwxr-xr-x 1 root root 68744 Sep 22 2020 mknod - -rwxr-xr-x 1 root root 43976 Sep 22 2020 mktemp - -rwxr-xr-x 1 root root 51368 Jul 28 07:09 more - -rwsr-xr-x 1 root root 51360 Jul 28 07:09 mount - -rwxr-xr-x 1 root root 14496 Jul 28 07:09 mountpoint - -rwxr-xr-x 1 root root 134808 Sep 22 2020 mv - lrwxrwxrwx 1 root root 8 Nov 6 2019 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 18 03:38 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 35720 Sep 22 2020 pwd - lrwxrwxrwx 1 root root 4 Aug 4 08:25 rbash -> bash - -rwxr-xr-x 1 root root 43872 Sep 22 2020 readlink - -rwxr-xr-x 1 root root 68592 Sep 22 2020 rm - -rwxr-xr-x 1 root root 43880 Sep 22 2020 rmdir - -rwxr-xr-x 1 root root 19208 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 114016 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Aug 14 21:25 sh -> dash - -rwxr-xr-x 1 root root 35656 Sep 22 2020 sleep - -rwxr-xr-x 1 root root 72640 Sep 22 2020 stty - -rwsr-xr-x 1 root root 67776 Jul 28 07:09 su - -rwxr-xr-x 1 root root 35672 Sep 22 2020 sync - -rwxr-xr-x 1 root root 535768 Feb 16 2021 tar - -rwxr-xr-x 1 root root 10568 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 89120 Sep 22 2020 touch - -rwxr-xr-x 1 root root 31512 Sep 22 2020 true - -rwxr-xr-x 1 root root 14264 Feb 26 04:12 ulockmgr_server - -rwsr-xr-x 1 root root 30880 Jul 28 07:09 umount - -rwxr-xr-x 1 root root 35640 Sep 22 2020 uname - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 uncompress - -rwxr-xr-x 1 root root 143088 Sep 22 2020 vdir - -rwxr-xr-x 1 root root 59584 Jul 28 07:09 wdctl - lrwxrwxrwx 1 root root 8 Nov 6 2019 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Mar 2 11:30 zcat - -rwxr-xr-x 1 root root 1678 Mar 2 11:30 zcmp - -rwxr-xr-x 1 root root 5880 Mar 2 11:30 zdiff - -rwxr-xr-x 1 root root 29 Mar 2 11:30 zegrep - -rwxr-xr-x 1 root root 29 Mar 2 11:30 zfgrep - -rwxr-xr-x 1 root root 2081 Mar 2 11:30 zforce - -rwxr-xr-x 1 root root 7585 Mar 2 11:30 zgrep - -rwxr-xr-x 1 root root 2206 Mar 2 11:30 zless - -rwxr-xr-x 1 root root 1842 Mar 2 11:30 zmore - -rwxr-xr-x 1 root root 4553 Mar 2 11:30 znew -I: user script /srv/workspace/pbuilder/12435/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1282512 Aug 5 2021 bash + -rwxr-xr-x 3 root root 34808 Jul 21 2020 bunzip2 + -rwxr-xr-x 3 root root 34808 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 34808 Jul 21 2020 bzip2 + -rwxr-xr-x 1 root root 14264 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 39832 Sep 23 2020 cat + -rwxr-xr-x 1 root root 64512 Sep 23 2020 chgrp + -rwxr-xr-x 1 root root 60368 Sep 23 2020 chmod + -rwxr-xr-x 1 root root 64528 Sep 23 2020 chown + -rwxr-xr-x 1 root root 138896 Sep 23 2020 cp + -rwxr-xr-x 1 root root 129544 Dec 11 2020 dash + -rwxr-xr-x 1 root root 101384 Sep 23 2020 date + -rwxr-xr-x 1 root root 80984 Sep 23 2020 dd + -rwxr-xr-x 1 root root 89824 Sep 23 2020 df + -rwxr-xr-x 1 root root 143088 Sep 23 2020 dir + -rwxr-xr-x 1 root root 76152 Jul 29 2021 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 35632 Sep 23 2020 echo + -rwxr-xr-x 1 root root 28 Nov 10 2020 egrep + -rwxr-xr-x 1 root root 31512 Sep 23 2020 false + -rwxr-xr-x 1 root root 28 Nov 10 2020 fgrep + -rwxr-xr-x 1 root root 64856 Jul 29 2021 findmnt + -rwsr-xr-x 1 root root 34824 Feb 27 2021 fusermount + -rwxr-xr-x 1 root root 178400 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 93744 Mar 3 2021 gzip + -rwxr-xr-x 1 root root 18440 Nov 8 2019 hostname + -rwxr-xr-x 1 root root 68720 Sep 23 2020 ln + -rwxr-xr-x 1 root root 52720 Feb 8 2020 login + -rwxr-xr-x 1 root root 143088 Sep 23 2020 ls + -rwxr-xr-x 1 root root 161960 Jul 29 2021 lsblk + -rwxr-xr-x 1 root root 85200 Sep 23 2020 mkdir + -rwxr-xr-x 1 root root 68744 Sep 23 2020 mknod + -rwxr-xr-x 1 root root 43976 Sep 23 2020 mktemp + -rwxr-xr-x 1 root root 51368 Jul 29 2021 more + -rwsr-xr-x 1 root root 51360 Jul 29 2021 mount + -rwxr-xr-x 1 root root 14496 Jul 29 2021 mountpoint + -rwxr-xr-x 1 root root 134808 Sep 23 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 35720 Sep 23 2020 pwd + lrwxrwxrwx 1 root root 4 Aug 5 2021 rbash -> bash + -rwxr-xr-x 1 root root 43872 Sep 23 2020 readlink + -rwxr-xr-x 1 root root 68592 Sep 23 2020 rm + -rwxr-xr-x 1 root root 43880 Sep 23 2020 rmdir + -rwxr-xr-x 1 root root 19208 Sep 28 2020 run-parts + -rwxr-xr-x 1 root root 114016 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Sep 22 20:24 sh -> bash + lrwxrwxrwx 1 root root 4 Sep 19 05:48 sh.distrib -> dash + -rwxr-xr-x 1 root root 35656 Sep 23 2020 sleep + -rwxr-xr-x 1 root root 72640 Sep 23 2020 stty + -rwsr-xr-x 1 root root 67776 Jul 29 2021 su + -rwxr-xr-x 1 root root 35672 Sep 23 2020 sync + -rwxr-xr-x 1 root root 535768 Feb 17 2021 tar + -rwxr-xr-x 1 root root 10568 Sep 28 2020 tempfile + -rwxr-xr-x 1 root root 89120 Sep 23 2020 touch + -rwxr-xr-x 1 root root 31512 Sep 23 2020 true + -rwxr-xr-x 1 root root 14264 Feb 27 2021 ulockmgr_server + -rwsr-xr-x 1 root root 30880 Jul 29 2021 umount + -rwxr-xr-x 1 root root 35640 Sep 23 2020 uname + -rwxr-xr-x 2 root root 2346 Mar 3 2021 uncompress + -rwxr-xr-x 1 root root 143088 Sep 23 2020 vdir + -rwxr-xr-x 1 root root 59584 Jul 29 2021 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/30820/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -255,7 +289,7 @@ Get: 49 http://deb.debian.org/debian bullseye/main arm64 golang-golang-x-mod-dev all 0.4.1-1 [87.9 kB] Get: 50 http://deb.debian.org/debian bullseye/main arm64 golang-golang-x-sync-dev all 0.0~git20210220.036812b-1 [19.1 kB] Get: 51 http://deb.debian.org/debian bullseye/main arm64 golang-golang-x-tools-dev all 1:0.1.0+ds-1 [1626 kB] -Fetched 83.2 MB in 2s (50.6 MB/s) +Fetched 83.2 MB in 1s (58.3 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 ... 19646 files and directories currently installed.) @@ -475,7 +509,8 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/golang-github-google-wire-0.4.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../golang-github-google-wire_0.4.0-3_source.changes +hostname: Temporary failure in name resolution +I: Running cd /build/golang-github-google-wire-0.4.0/ && 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-google-wire_0.4.0-3_source.changes dpkg-buildpackage: info: source package golang-github-google-wire dpkg-buildpackage: info: source version 0.4.0-3 dpkg-buildpackage: info: source distribution unstable @@ -494,25 +529,25 @@ dh_auto_configure -O--builddirectory=_build -O--buildsystem=golang dh_auto_build -O--builddirectory=_build -O--buildsystem=golang cd _build && go install -trimpath -v -p 8 github.com/google/wire github.com/google/wire/cmd/wire github.com/google/wire/internal/wire -internal/cpu -math/bits -runtime/internal/sys +github.com/google/wire internal/unsafeheader +internal/cpu internal/race -github.com/google/wire -runtime/internal/atomic -sync/atomic +runtime/internal/sys +math/bits unicode/utf8 -runtime/internal/math +runtime/internal/atomic encoding unicode +sync/atomic unicode/utf16 -math -internal/bytealg internal/goversion +internal/bytealg +runtime/internal/math golang.org/x/mod/semver -internal/testlog golang.org/x/xerrors/internal +internal/testlog +math runtime internal/reflectlite sync @@ -524,62 +559,62 @@ io syscall container/heap -bytes -text/tabwriter strings +text/tabwriter +bytes reflect path bufio regexp/syntax internal/syscall/unix -time internal/syscall/execenv +time regexp context internal/poll -os internal/fmtsort encoding/binary +os encoding/base64 +path/filepath internal/lazyregexp fmt -path/filepath io/ioutil os/exec -golang.org/x/sys/execabs -go/token flag +go/token +encoding/json +golang.org/x/sys/execabs net/url internal/execabs -encoding/json text/template/parse math/big text/scanner internal/goroot golang.org/x/tools/internal/event/label +golang.org/x/tools/internal/event/keys go/scanner golang.org/x/xerrors -golang.org/x/tools/internal/event/keys -log github.com/google/subcommands -go/ast +log github.com/pmezard/go-difflib/difflib +go/ast golang.org/x/tools/internal/event/core golang.org/x/tools/internal/event golang.org/x/tools/internal/gocommand -text/template golang.org/x/tools/internal/packagesinternal +text/template +go/constant +go/printer golang.org/x/tools/go/ast/astutil go/parser -go/printer -go/constant +go/doc go/types go/format -go/doc go/build golang.org/x/tools/go/internal/packagesdriver -golang.org/x/tools/go/types/typeutil golang.org/x/tools/internal/typesinternal +golang.org/x/tools/go/types/typeutil golang.org/x/tools/go/internal/gcimporter golang.org/x/tools/go/gcexportdata golang.org/x/tools/go/packages @@ -729,13 +764,14 @@ === RUN TestWire/Varargs === PAUSE TestWire/Varargs === CONT TestWire/BindInjectorArg -=== CONT TestWire/ValueFromFunctionScope -=== CONT TestWire/ValueIsStruct +=== CONT TestWire/InvalidInjector === CONT TestWire/Varargs -=== CONT TestWire/InterfaceValueDoesntImplement -=== CONT TestWire/ValueConversion +=== CONT TestWire/VarValue +=== CONT TestWire/ValueIsStruct === CONT TestWire/ValueIsInterfaceValue -=== CONT TestWire/PkgImport +=== CONT TestWire/ValueFromFunctionScope +=== CONT TestWire/ValueConversion +=== CONT TestWire/VarValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -744,25 +780,22 @@ package main - import ( - "example.com/bar" - ) - - import ( - _ "example.com/anon1" - _ "example.com/anon2" - ) - // Injectors from wire.go: - func injectFooBar() FooBar { - foo := provideFoo() - barBar := bar.ProvideBar() - fooBar := provideFooBar(foo, barBar) - return fooBar + func injectedMessage() string { + string2 := _wireStringValue + return string2 } + + var ( + _wireStringValue = msg + ) === CONT TestWire/ValueChain -=== CONT TestWire/ValueConversion +=== CONT TestWire/InvalidInjector + wire_test.go:108: a call to wire.Build indicates that this function is an injector, but injectors must consist of only the wire.Build call and an optional return + wire_test.go:108: a call to wire.Build indicates that this function is an injector, but injectors must consist of only the wire.Build call and an optional return +=== CONT TestWire/UnusedProviders +=== CONT TestWire/ValueIsStruct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -773,22 +806,19 @@ // Injectors from wire.go: - func injectedMessage() Foo { + func injectFoo() Foo { foo := _wireFooValue return foo } var ( - _wireFooValue = Foo("Hello, World!") + _wireFooValue = Foo{X: 42} ) -=== CONT TestWire/ValueFromFunctionScope - wire_test.go:108: /tmp/wire_test920202996/src/example.com/foo/wire.go:23:1: inject injectBar: value int can't be used: f is not declared in package scope -=== CONT TestWire/UnusedProviders === CONT TestWire/UnexportedValue -=== CONT TestWire/InterfaceValueDoesntImplement - wire_test.go:108: /tmp/wire_test395704045/src/example.com/foo/wire.go:26:13: string does not implement io.Reader +=== CONT TestWire/ValueFromFunctionScope + wire_test.go:108: /tmp/wire_test947593118/src/example.com/foo/wire.go:23:1: inject injectBar: value int can't be used: f is not declared in package scope === CONT TestWire/UnexportedStruct -=== CONT TestWire/Varargs +=== CONT TestWire/BindInjectorArg wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -799,12 +829,15 @@ // Injectors from wire.go: - func injectedMessage(t title, lines ...string) string { - string2 := provideMessage(lines...) - return string2 + func inject(foo Foo) *Bar { + bar := NewBar(foo) + return bar } === CONT TestWire/TwoDeps -=== CONT TestWire/BindInjectorArg +=== CONT TestWire/ValueIsInterfaceValue + wire_test.go:108: /tmp/wire_test826353275/src/example.com/foo/wire.go:27:13: argument to Value may not be an interface value (found io.Reader); use InterfaceValue instead +=== CONT TestWire/StructWithPreventTag +=== CONT TestWire/ValueConversion wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -815,15 +848,16 @@ // Injectors from wire.go: - func inject(foo Foo) *Bar { - bar := NewBar(foo) - return bar + func injectedMessage() Foo { + foo := _wireFooValue + return foo } -=== CONT TestWire/StructWithPreventTag -=== CONT TestWire/ValueIsInterfaceValue - wire_test.go:108: /tmp/wire_test216356775/src/example.com/foo/wire.go:27:13: argument to Value may not be an interface value (found io.Reader); use InterfaceValue instead + + var ( + _wireFooValue = Foo("Hello, World!") + ) === CONT TestWire/StructPointer -=== CONT TestWire/ValueIsStruct +=== CONT TestWire/Varargs wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -834,14 +868,10 @@ // Injectors from wire.go: - func injectFoo() Foo { - foo := _wireFooValue - return foo + func injectedMessage(t title, lines ...string) string { + string2 := provideMessage(lines...) + return string2 } - - var ( - _wireFooValue = Foo{X: 42} - ) === CONT TestWire/StructNotAStruct === CONT TestWire/ValueChain wire_test.go:164: wire_gen.go: @@ -865,15 +895,18 @@ ) === CONT TestWire/Struct === CONT TestWire/UnusedProviders - wire_test.go:108: /tmp/wire_test884586268/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused provider set "unusedSet" - wire_test.go:108: /tmp/wire_test884586268/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused provider "main.provideUnused" - wire_test.go:108: /tmp/wire_test884586268/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused value of type string - wire_test.go:108: /tmp/wire_test884586268/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused interface binding to type example.com/foo.Fooer - wire_test.go:108: /tmp/wire_test884586268/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused field "example.com/foo.S".Cfg + wire_test.go:108: /tmp/wire_test720092639/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused provider set "unusedSet" + wire_test.go:108: /tmp/wire_test720092639/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused provider "main.provideUnused" + wire_test.go:108: /tmp/wire_test720092639/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused value of type string + wire_test.go:108: /tmp/wire_test720092639/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused interface binding to type example.com/foo.Fooer + wire_test.go:108: /tmp/wire_test720092639/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused field "example.com/foo.S".Cfg === CONT TestWire/ReturnError === CONT TestWire/UnexportedValue - wire_test.go:108: /tmp/wire_test937863627/src/example.com/foo/wire.go:24:1: inject injectedMessage: value string can't be used: uses unexported identifier privateMsg + wire_test.go:108: /tmp/wire_test719206322/src/example.com/foo/wire.go:24:1: inject injectedMessage: value string can't be used: uses unexported identifier privateMsg === CONT TestWire/ReturnArgumentAsInterface +=== CONT TestWire/UnexportedStruct + wire_test.go:108: /tmp/wire_test682617193/src/example.com/foo/wire.go:26:17: foo not exported by package bar +=== CONT TestWire/ReservedKeywords === CONT TestWire/TwoDeps wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -891,7 +924,7 @@ fooBar := provideFooBar(foo, bar) return fooBar } -=== CONT TestWire/ReservedKeywords +=== CONT TestWire/RelativePkg === CONT TestWire/StructPointer wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -917,57 +950,12 @@ empty := &Empty{} return empty } -=== CONT TestWire/RelativePkg -=== CONT TestWire/Struct - wire_test.go:164: wire_gen.go: - // Code generated by Wire. DO NOT EDIT. - - //go:generate wire - //+build !wireinject - - package main - - // Injectors from wire.go: - - func injectFooBar() FooBar { - foo := provideFoo() - bar := provideBar() - fooBar := FooBar{ - Foo: foo, - Bar: bar, - } - return fooBar - } - - func injectPartFooBar() FooBar { - foo := provideFoo() - fooBar := FooBar{ - Foo: foo, - } - return fooBar - } === CONT TestWire/ProviderSetBindingMissingConcreteType -=== CONT TestWire/ReturnError - wire_test.go:164: wire_gen.go: - // Code generated by Wire. DO NOT EDIT. - - //go:generate wire - //+build !wireinject - - package main - - // Injectors from wire.go: - - func injectFoo() (Foo, error) { - foo, err := provideFoo() - if err != nil { - return 0, err - } - return foo, nil - } -=== CONT TestWire/NamingWorstCase === CONT TestWire/StructWithPreventTag - wire_test.go:108: /tmp/wire_test375202832/src/example.com/foo/foo.go:45:2: "mu" is prevented from injecting by wire + wire_test.go:108: /tmp/wire_test051533187/src/example.com/foo/foo.go:45:2: "mu" is prevented from injecting by wire +=== CONT TestWire/PkgImport +=== CONT TestWire/StructNotAStruct + wire_test.go:108: /tmp/wire_test590538413/src/example.com/foo/wire.go:24:13: first argument to Struct must be a pointer to a named struct; found **example.com/foo.A === CONT TestWire/PartialCleanup === CONT TestWire/ReturnArgumentAsInterface wire_test.go:164: wire_gen.go: @@ -988,35 +976,6 @@ return s } === CONT TestWire/NoopBuild -=== CONT TestWire/StructNotAStruct - wire_test.go:108: /tmp/wire_test718367682/src/example.com/foo/wire.go:24:13: first argument to Struct must be a pointer to a named struct; found **example.com/foo.A -=== CONT TestWire/NoInjectParamNames -=== CONT TestWire/UnexportedStruct - wire_test.go:108: /tmp/wire_test409591982/src/example.com/foo/wire.go:26:17: foo not exported by package bar -=== CONT TestWire/NoImplicitInterface -=== CONT TestWire/NamingWorstCase - wire_test.go:164: wire_gen.go: - // Code generated by Wire. DO NOT EDIT. - - //go:generate wire - //+build !wireinject - - package main - - import ( - context2 "context" - ) - - // Injectors from wire.go: - - func inject(context3 context2.Context, err2 struct{}) (context, error) { - mainContext, err := provide(context3) - if err != nil { - return context{}, err - } - return mainContext, nil - } -=== CONT TestWire/NiladicValue === CONT TestWire/ReservedKeywords wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1040,7 +999,36 @@ // the package name; this package-scoped variable conflicts with that // and forces a different name. var mainSelect = 0 -=== CONT TestWire/NiladicIdentity +=== CONT TestWire/NoInjectParamNames +=== CONT TestWire/Struct + wire_test.go:164: wire_gen.go: + // Code generated by Wire. DO NOT EDIT. + + //go:generate wire + //+build !wireinject + + package main + + // Injectors from wire.go: + + func injectFooBar() FooBar { + foo := provideFoo() + bar := provideBar() + fooBar := FooBar{ + Foo: foo, + Bar: bar, + } + return fooBar + } + + func injectPartFooBar() FooBar { + foo := provideFoo() + fooBar := FooBar{ + Foo: foo, + } + return fooBar + } +=== CONT TestWire/NoImplicitInterface === CONT TestWire/RelativePkg wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1056,14 +1044,7 @@ string2 := provideMessage() return string2 } -=== CONT TestWire/NamingWorstCaseAllInOne -=== CONT TestWire/ProviderSetBindingMissingConcreteType - wire_test.go:108: /tmp/wire_test072554936/src/example.com/foo/foo.go:47:21: wire.Bind of concrete type "*example.com/foo.foo" to interface "example.com/foo.fooer", but setB does not include a provider for "*example.com/foo.foo" -=== CONT TestWire/FieldsOfStructPointer -=== CONT TestWire/InterfaceValue -=== CONT TestWire/NoImplicitInterface - wire_test.go:108: /tmp/wire_test268762331/src/example.com/foo/wire.go:23:1: inject injectFooer: no provider found for example.com/foo.Fooer, output of injector -=== CONT TestWire/InterfaceBindingReuse +=== CONT TestWire/NiladicValue === CONT TestWire/PartialCleanup wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1093,8 +1074,8 @@ cleanup() }, nil } -=== CONT TestWire/InterfaceBindingNotEnoughArgs === CONT TestWire/NiladicIdentity +=== CONT TestWire/ReturnError wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1105,12 +1086,15 @@ // Injectors from wire.go: - func injectedMessage() string { - string2 := provideMessage() - return string2 + func injectFoo() (Foo, error) { + foo, err := provideFoo() + if err != nil { + return 0, err + } + return foo, nil } -=== CONT TestWire/InterfaceBindingInvalidArg0 -=== CONT TestWire/NoInjectParamNames +=== CONT TestWire/NamingWorstCaseAllInOne +=== CONT TestWire/PkgImport wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1120,43 +1104,28 @@ package main import ( - context2 "context" + "example.com/bar" ) - // Injectors from wire.go: - - func inject(contextContext context2.Context, arg struct{}) (context, error) { - mainContext, err := provide(contextContext) - if err != nil { - return context{}, err - } - return mainContext, nil - } -=== CONT TestWire/InterfaceBindingDoesntImplement -=== CONT TestWire/FieldsOfStructPointer - wire_test.go:164: wire_gen.go: - // Code generated by Wire. DO NOT EDIT. - - //go:generate wire - //+build !wireinject - - package main + import ( + _ "example.com/anon1" + _ "example.com/anon2" + ) // Injectors from wire.go: - func injectedMessage() string { - s := provideS() - string2 := s.Foo - return string2 - } - - func injectedMessagePtr() *string { - s := provideS() - string2 := &s.Foo - return string2 + func injectFooBar() FooBar { + foo := provideFoo() + barBar := bar.ProvideBar() + fooBar := provideFooBar(foo, barBar) + return fooBar } -=== CONT TestWire/InterfaceBinding -=== CONT TestWire/InterfaceValue +=== CONT TestWire/NamingWorstCase +=== CONT TestWire/MultipleSimilarPackages +=== CONT TestWire/ProviderSetBindingMissingConcreteType + wire_test.go:108: /tmp/wire_test320590219/src/example.com/foo/foo.go:47:21: wire.Bind of concrete type "*example.com/foo.foo" to interface "example.com/foo.fooer", but setB does not include a provider for "*example.com/foo.foo" +=== CONT TestWire/MultipleMissingInputs +=== CONT TestWire/NoInjectParamNames wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1166,21 +1135,19 @@ package main import ( - "io" - "strings" + context2 "context" ) // Injectors from wire.go: - func injectedReader() io.Reader { - reader := _wireReaderValue - return reader + func inject(contextContext context2.Context, arg struct{}) (context, error) { + mainContext, err := provide(contextContext) + if err != nil { + return context{}, err + } + return mainContext, nil } - - var ( - _wireReaderValue = strings.NewReader("hello world") - ) -=== CONT TestWire/InjectorMissingError +=== CONT TestWire/MultipleBindings === CONT TestWire/NamingWorstCaseAllInOne wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1233,8 +1200,8 @@ func (context) Provide() { } -=== CONT TestWire/InjectorMissingCleanup -=== CONT TestWire/InterfaceBindingReuse +=== CONT TestWire/MultipleArgsSameType +=== CONT TestWire/NiladicIdentity wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1245,12 +1212,11 @@ // Injectors from wire.go: - func injectFooBar() FooBar { - bar := provideBar() - fooBar := provideFooBar(bar, bar) - return fooBar + func injectedMessage() string { + string2 := provideMessage() + return string2 } -=== CONT TestWire/InjectWithPanic +=== CONT TestWire/FuncArgProvider === CONT TestWire/NiladicValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1270,8 +1236,11 @@ var ( _wireStringValue = "Hello, World!" ) -=== CONT TestWire/InjectInputConflict -=== CONT TestWire/InterfaceBinding +=== CONT TestWire/InterfaceValueNotEnoughArgs +=== CONT TestWire/NoImplicitInterface + wire_test.go:108: /tmp/wire_test947574402/src/example.com/foo/wire.go:23:1: inject injectFooer: no provider found for example.com/foo.Fooer, output of injector +=== CONT TestWire/InterfaceValueInvalidArg0 +=== CONT TestWire/MultipleSimilarPackages wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1280,37 +1249,150 @@ package main + import ( + "example.com/bar" + "example.com/baz" + "example.com/foo" + "fmt" + ) + // Injectors from wire.go: - func injectFooer() Fooer { - bar := provideBar() - return bar + func newMainService(mainConfig MainConfig) *MainService { + config := mainConfig.Foo + service := foo.New(config) + barConfig := mainConfig.Bar + barService := bar.New(barConfig, service) + bazConfig := mainConfig.baz + bazService := baz.New(bazConfig, barService) + mainService := &MainService{ + Foo: service, + Bar: barService, + baz: bazService, + } + return mainService + } + + // wire.go: + + type MainConfig struct { + Foo *foo.Config + Bar *bar.Config + baz *baz.Config + } + + type MainService struct { + Foo *foo.Service + Bar *bar.Service + baz *baz.Service + } + + func (m *MainService) String() string { + return fmt.Sprintf("%d %d %d", m.Foo.Cfg.V, m.Bar.Cfg.V, m.baz.Cfg.V) + } + + func main() { + cfg := MainConfig{ + Foo: &foo.Config{1}, + Bar: &bar.Config{2}, + baz: &baz.Config{3}, + } + svc := newMainService(cfg) + fmt.Println(svc.String()) + } +=== CONT TestWire/InterfaceValueDoesntImplement +=== CONT TestWire/MultipleBindings + wire_test.go:108: /tmp/wire_test104842103/src/example.com/foo/wire.go:27:8: multiple bindings for example.com/foo.Foo + current: + <- provider "provideFooAgain" (/tmp/wire_test104842103/src/example.com/foo/foo.go:39:6) + previous: + <- provider "provideFoo" (/tmp/wire_test104842103/src/example.com/foo/foo.go:35:6) + wire_test.go:108: /tmp/wire_test104842103/src/example.com/foo/wire.go:32:8: multiple bindings for example.com/foo.Foo + current: + <- provider "provideFoo" (/tmp/wire_test104842103/src/example.com/foo/foo.go:35:6) + previous: + <- provider "provideFoo" (/tmp/wire_test104842103/src/example.com/foo/foo.go:35:6) + <- provider set "Set" (/tmp/wire_test104842103/src/example.com/foo/foo.go:31:11) + wire_test.go:108: /tmp/wire_test104842103/src/example.com/foo/wire.go:37:8: multiple bindings for example.com/foo.Foo + current: + <- provider "provideFoo" (/tmp/wire_test104842103/src/example.com/foo/foo.go:35:6) + previous: + <- provider "provideFoo" (/tmp/wire_test104842103/src/example.com/foo/foo.go:35:6) + <- provider set "Set" (/tmp/wire_test104842103/src/example.com/foo/foo.go:31:11) + <- provider set "SuperSet" (/tmp/wire_test104842103/src/example.com/foo/foo.go:32:16) + wire_test.go:108: /tmp/wire_test104842103/src/example.com/foo/foo.go:33:32: SetWithDuplicateBindings has multiple bindings for example.com/foo.Foo + current: + <- provider "provideFoo" (/tmp/wire_test104842103/src/example.com/foo/foo.go:35:6) + <- provider set "Set" (/tmp/wire_test104842103/src/example.com/foo/foo.go:31:11) + <- provider set "SuperSet" (/tmp/wire_test104842103/src/example.com/foo/foo.go:32:16) + previous: + <- provider "provideFoo" (/tmp/wire_test104842103/src/example.com/foo/foo.go:35:6) + <- provider set "Set" (/tmp/wire_test104842103/src/example.com/foo/foo.go:31:11) + wire_test.go:108: /tmp/wire_test104842103/src/example.com/foo/wire.go:47:8: multiple bindings for example.com/foo.Foo + current: + <- wire.Value (/tmp/wire_test104842103/src/example.com/foo/wire.go:47:42) + previous: + <- provider "provideFoo" (/tmp/wire_test104842103/src/example.com/foo/foo.go:35:6) + wire_test.go:108: /tmp/wire_test104842103/src/example.com/foo/wire.go:52:8: multiple bindings for example.com/foo.Bar + current: + <- wire.Bind (/tmp/wire_test104842103/src/example.com/foo/wire.go:52:31) + previous: + <- provider "provideBar" (/tmp/wire_test104842103/src/example.com/foo/foo.go:43:6) +=== CONT TestWire/InterfaceValue +=== CONT TestWire/MultipleArgsSameType + wire_test.go:108: /tmp/wire_test412763754/src/example.com/foo/wire.go:25:8: multiple bindings for string + current: + <- argument b to injector function inject (/tmp/wire_test412763754/src/example.com/foo/wire.go:23:1) + previous: + <- argument a to injector function inject (/tmp/wire_test412763754/src/example.com/foo/wire.go:23:1) +=== CONT TestWire/InterfaceBindingReuse +=== CONT TestWire/MultipleMissingInputs + wire_test.go:108: /tmp/wire_test960884344/src/example.com/foo/wire.go:23:1: inject injectMissingOutputType: no provider found for example.com/foo.Foo, output of injector + wire_test.go:108: /tmp/wire_test960884344/src/example.com/foo/wire.go:29:1: inject injectMultipleMissingTypes: no provider found for example.com/foo.Foo + needed by example.com/foo.Baz in provider "provideBaz" (/tmp/wire_test960884344/src/example.com/foo/foo.go:29:6) + wire_test.go:108: /tmp/wire_test960884344/src/example.com/foo/wire.go:29:1: inject injectMultipleMissingTypes: no provider found for example.com/foo.Bar + needed by example.com/foo.Baz in provider "provideBaz" (/tmp/wire_test960884344/src/example.com/foo/foo.go:29:6) + wire_test.go:108: /tmp/wire_test960884344/src/example.com/foo/wire.go:35:1: inject injectMissingRecursiveType: no provider found for example.com/foo.Foo + needed by example.com/foo.Zip in provider "provideZip" (/tmp/wire_test960884344/src/example.com/foo/foo.go:37:6) + needed by example.com/foo.Zap in provider "provideZap" (/tmp/wire_test960884344/src/example.com/foo/foo.go:41:6) + needed by example.com/foo.Zop in provider "provideZop" (/tmp/wire_test960884344/src/example.com/foo/foo.go:45:6) +=== CONT TestWire/InterfaceBindingNotEnoughArgs +=== CONT TestWire/NamingWorstCase + wire_test.go:164: wire_gen.go: + // Code generated by Wire. DO NOT EDIT. + + //go:generate wire + //+build !wireinject + + package main + + import ( + context2 "context" + ) + + // Injectors from wire.go: + + func inject(context3 context2.Context, err2 struct{}) (context, error) { + mainContext, err := provide(context3) + if err != nil { + return context{}, err + } + return mainContext, nil } -=== CONT TestWire/InjectInput === CONT TestWire/InterfaceBindingInvalidArg0 - wire_test.go:108: /tmp/wire_test867235811/src/example.com/foo/wire.go:25:13: first argument to Bind must be a pointer to an interface type; found string -=== CONT TestWire/ImportedInterfaceBinding -=== CONT TestWire/InjectorMissingCleanup - wire_test.go:108: /tmp/wire_test341717447/src/example.com/foo/wire.go:23:1: inject injectFoo: provider for example.com/foo.Foo returns cleanup but injection does not return cleanup function -=== CONT TestWire/Header +=== CONT TestWire/InterfaceValueDoesntImplement + wire_test.go:108: /tmp/wire_test136374078/src/example.com/foo/wire.go:26:13: string does not implement io.Reader === CONT TestWire/InterfaceBindingDoesntImplement - wire_test.go:108: /tmp/wire_test488990694/src/example.com/foo/wire.go:25:13: string does not implement example.com/foo.Fooer +=== CONT TestWire/InterfaceValueNotEnoughArgs + wire_test.go:108: /tmp/wire_test225318700/src/example.com/foo/wire.go:25:38: too few arguments in call to wire.InterfaceValue +=== CONT TestWire/InterfaceBinding === CONT TestWire/FuncArgProvider -=== CONT TestWire/InterfaceBindingNotEnoughArgs - wire_test.go:108: /tmp/wire_test805993364/src/example.com/foo/wire.go:25:33: too few arguments in call to wire.Bind -=== CONT TestWire/FieldsOfValueStruct + wire_test.go:108: /tmp/wire_test107625153/src/example.com/foo/wire.go:25:19: var fn func() *example.com/foo.Foo is not a provider or a provider set === CONT TestWire/InjectorMissingError - wire_test.go:108: /tmp/wire_test922847240/src/example.com/foo/wire.go:23:1: inject injectFoo: provider for example.com/foo.Foo returns error but injection not allowed to fail -=== CONT TestWire/EmptyVar -=== CONT TestWire/InjectInputConflict - wire_test.go:108: /tmp/wire_test577780113/src/example.com/foo/wire.go:24:2: multiple bindings for example.com/foo.Foo - current: - <- provider "provideFoo" (/tmp/wire_test577780113/src/example.com/foo/foo.go:37:6) - <- provider set "Set" (/tmp/wire_test577780113/src/example.com/foo/foo.go:33:11) - previous: - <- argument foo to injector function injectBar (/tmp/wire_test577780113/src/example.com/foo/wire.go:23:1) -=== CONT TestWire/FieldsOfStructDoNotProvidePtrToField -=== CONT TestWire/InjectWithPanic +=== CONT TestWire/InterfaceValueInvalidArg0 + wire_test.go:108: /tmp/wire_test193833115/src/example.com/foo/wire.go:25:13: first argument to InterfaceValue must be a pointer to an interface type; found string +=== CONT TestWire/InjectorMissingCleanup +=== CONT TestWire/InterfaceValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1319,14 +1401,23 @@ package main + import ( + "io" + "strings" + ) + // Injectors from wire.go: - func injectedMessage() string { - string2 := provideMessage() - return string2 + func injectedReader() io.Reader { + reader := _wireReaderValue + return reader } -=== CONT TestWire/FieldsOfStruct -=== CONT TestWire/InjectInput + + var ( + _wireReaderValue = strings.NewReader("hello world") + ) +=== CONT TestWire/InjectWithPanic +=== CONT TestWire/InterfaceBindingReuse wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1337,19 +1428,19 @@ // Injectors from wire.go: - func injectFooBar(foo Foo) FooBar { + func injectFooBar() FooBar { bar := provideBar() - fooBar := provideFooBar(foo, bar) + fooBar := provideFooBar(bar, bar) return fooBar } -=== CONT TestWire/FieldsOfImportedStruct -=== CONT TestWire/FuncArgProvider - wire_test.go:108: /tmp/wire_test044461909/src/example.com/foo/wire.go:25:19: var fn func() *example.com/foo.Foo is not a provider or a provider set -=== CONT TestWire/FieldsOfCycle -=== CONT TestWire/EmptyVar - wire_test.go:108: /tmp/wire_test676915279/src/example.com/foo/wire.go:24:13: var example.com/foo.myFakeSet struct{} is not a provider or a provider set -=== CONT TestWire/ExportedValueDifferentPackage +=== CONT TestWire/InjectInputConflict +=== CONT TestWire/InterfaceBindingNotEnoughArgs + wire_test.go:108: /tmp/wire_test765243391/src/example.com/foo/wire.go:25:33: too few arguments in call to wire.Bind +=== CONT TestWire/InjectInput +=== CONT TestWire/InjectorMissingCleanup + wire_test.go:108: /tmp/wire_test998671014/src/example.com/foo/wire.go:23:1: inject injectFoo: provider for example.com/foo.Foo returns cleanup but injection does not return cleanup function === CONT TestWire/ImportedInterfaceBinding +=== CONT TestWire/InterfaceBinding wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1358,21 +1449,21 @@ package main - import ( - "example.com/foo" - ) - // Injectors from wire.go: - func injectFooer() foo.Fooer { + func injectFooer() Fooer { bar := provideBar() return bar } -=== CONT TestWire/ExportedValue === CONT TestWire/Header +=== CONT TestWire/InterfaceBindingDoesntImplement + wire_test.go:108: /tmp/wire_test466091145/src/example.com/foo/wire.go:25:13: string does not implement example.com/foo.Fooer +=== CONT TestWire/ExampleWithMocks +=== CONT TestWire/InterfaceBindingInvalidArg0 + wire_test.go:108: /tmp/wire_test728399186/src/example.com/foo/wire.go:25:13: first argument to Bind must be a pointer to an interface type; found string +=== CONT TestWire/FieldsOfValueStruct +=== CONT TestWire/InjectInput wire_test.go:164: wire_gen.go: - // This is a sample header file. - // // Code generated by Wire. DO NOT EDIT. //go:generate wire @@ -1382,15 +1473,21 @@ // Injectors from wire.go: - func injectFoo() Foo { - foo := provideFoo() - return foo + func injectFooBar(foo Foo) FooBar { + bar := provideBar() + fooBar := provideFooBar(foo, bar) + return fooBar } -=== CONT TestWire/ExampleWithMocks +=== CONT TestWire/FieldsOfStructPointer +=== CONT TestWire/InjectInputConflict + wire_test.go:108: /tmp/wire_test452056776/src/example.com/foo/wire.go:24:2: multiple bindings for example.com/foo.Foo + current: + <- provider "provideFoo" (/tmp/wire_test452056776/src/example.com/foo/foo.go:37:6) + <- provider set "Set" (/tmp/wire_test452056776/src/example.com/foo/foo.go:33:11) + previous: + <- argument foo to injector function injectBar (/tmp/wire_test452056776/src/example.com/foo/wire.go:23:1) === CONT TestWire/FieldsOfStructDoNotProvidePtrToField - wire_test.go:108: /tmp/wire_test698249058/src/example.com/foo/wire.go:23:1: inject injectedMessagePtr: no provider found for *string, output of injector -=== CONT TestWire/Chain -=== CONT TestWire/FieldsOfStruct +=== CONT TestWire/ImportedInterfaceBinding wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1399,15 +1496,21 @@ package main + import ( + "example.com/foo" + ) + // Injectors from wire.go: - func injectedMessage() string { - s := provideS() - string2 := s.Foo - return string2 + func injectFooer() foo.Fooer { + bar := provideBar() + return bar } -=== CONT TestWire/Cycle -=== CONT TestWire/FieldsOfValueStruct +=== CONT TestWire/FieldsOfStruct +=== CONT TestWire/InjectorMissingError + wire_test.go:108: /tmp/wire_test168762275/src/example.com/foo/wire.go:23:1: inject injectFoo: provider for example.com/foo.Foo returns error but injection not allowed to fail +=== CONT TestWire/FieldsOfImportedStruct +=== CONT TestWire/InjectWithPanic wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1416,49 +1519,31 @@ package main - import ( - "example.com/bar" - "example.com/baz" - "example.com/foo" - "fmt" - ) - // Injectors from wire.go: - func newBazService() *baz.Service { - config := _wireConfigValue - fooConfig := config.Foo - service := foo.New(fooConfig) - barConfig := config.Bar - barService := bar.New(barConfig, service) - bazService := &baz.Service{ - Foo: service, - Bar: barService, - } - return bazService + func injectedMessage() string { + string2 := provideMessage() + return string2 } +=== CONT TestWire/FieldsOfCycle +=== CONT TestWire/Header + wire_test.go:164: wire_gen.go: + // This is a sample header file. + // + // Code generated by Wire. DO NOT EDIT. - var ( - _wireConfigValue = &baz.Config{ - Foo: &foo.Config{1}, - Bar: &bar.Config{2}, - } - ) + //go:generate wire + //+build !wireinject - // wire.go: + package main - func main() { - svc := newBazService() - fmt.Println(svc.String()) + // Injectors from wire.go: + + func injectFoo() Foo { + foo := provideFoo() + return foo } -=== CONT TestWire/CopyOtherDecls -=== CONT TestWire/FieldsOfCycle - wire_test.go:108: /tmp/wire_test397436659/src/example.com/foo/wire.go:23:1: cycle for example.com/foo.Bar: - example.com/foo.Bar (example.com/foo.provideBar) -> - example.com/foo.Foo (example.com/foo.provideFoo) -> - example.com/foo.Baz (example.com/foo.Bar.Bz) -> - example.com/foo.Bar -=== CONT TestWire/Cleanup +=== CONT TestWire/ExportedValueDifferentPackage === CONT TestWire/FieldsOfImportedStruct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1499,8 +1584,8 @@ svc := newBazService(cfg) fmt.Println(svc.String()) } -=== CONT TestWire/BindInterfaceWithValue -=== CONT TestWire/ExportedValueDifferentPackage +=== CONT TestWire/ExportedValue +=== CONT TestWire/FieldsOfStructPointer wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1509,21 +1594,20 @@ package main - import ( - "os" - ) - // Injectors from wire.go: - func injectedFile() *os.File { - file := _wireFileValue - return file + func injectedMessage() string { + s := provideS() + string2 := s.Foo + return string2 } - var ( - _wireFileValue = os.Stdout - ) -=== CONT TestWire/BuildTagsAllPackages + func injectedMessagePtr() *string { + s := provideS() + string2 := &s.Foo + return string2 + } +=== CONT TestWire/Cleanup === CONT TestWire/ExampleWithMocks wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1574,25 +1658,15 @@ } return mainAppWithMocks } -=== CONT TestWire/MultipleArgsSameType -=== CONT TestWire/Chain - wire_test.go:164: wire_gen.go: - // Code generated by Wire. DO NOT EDIT. - - //go:generate wire - //+build !wireinject - - package main - - // Injectors from wire.go: - - func injectFooBar() FooBar { - foo := provideFoo() - fooBar := provideFooBar(foo) - return fooBar - } -=== CONT TestWire/MultipleSimilarPackages -=== CONT TestWire/CopyOtherDecls +=== CONT TestWire/EmptyVar +=== CONT TestWire/FieldsOfCycle + wire_test.go:108: /tmp/wire_test980354082/src/example.com/foo/wire.go:23:1: cycle for example.com/foo.Bar: + example.com/foo.Bar (example.com/foo.provideBar) -> + example.com/foo.Foo (example.com/foo.provideFoo) -> + example.com/foo.Baz (example.com/foo.Bar.Bz) -> + example.com/foo.Bar +=== CONT TestWire/Cycle +=== CONT TestWire/FieldsOfValueStruct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1602,42 +1676,42 @@ package main import ( + "example.com/bar" + "example.com/baz" + "example.com/foo" "fmt" ) - // Injectors from foo.go: + // Injectors from wire.go: - func injectedMessage() string { - string2 := provideMessage() - return string2 + func newBazService() *baz.Service { + config := _wireConfigValue + fooConfig := config.Foo + service := foo.New(fooConfig) + barConfig := config.Bar + barService := bar.New(barConfig, service) + bazService := &baz.Service{ + Foo: service, + Bar: barService, + } + return bazService } - // foo.go: + var ( + _wireConfigValue = &baz.Config{ + Foo: &foo.Config{1}, + Bar: &bar.Config{2}, + } + ) - func main() { - fmt.Println(injectedMessage()) - } + // wire.go: - // provideMessage provides a friendly user greeting. - func provideMessage() string { - return "Hello, World!" + func main() { + svc := newBazService() + fmt.Println(svc.String()) } -=== CONT TestWire/MultipleMissingInputs -=== CONT TestWire/Cycle - wire_test.go:108: /tmp/wire_test188783946/src/example.com/foo/wire.go:23:1: cycle for example.com/foo.Bar: - example.com/foo.Bar (example.com/foo.provideBar) -> - example.com/foo.Foo (example.com/foo.provideFoo) -> - example.com/foo.Baz (example.com/foo.provideBaz) -> - example.com/foo.Bar -=== CONT TestWire/MultipleBindings -=== CONT TestWire/MultipleArgsSameType - wire_test.go:108: /tmp/wire_test028658917/src/example.com/foo/wire.go:25:8: multiple bindings for string - current: - <- argument b to injector function inject (/tmp/wire_test028658917/src/example.com/foo/wire.go:23:1) - previous: - <- argument a to injector function inject (/tmp/wire_test028658917/src/example.com/foo/wire.go:23:1) -=== CONT TestWire/InterfaceValueNotEnoughArgs -=== CONT TestWire/ExportedValue +=== CONT TestWire/CopyOtherDecls +=== CONT TestWire/FieldsOfStruct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1646,22 +1720,15 @@ package main - import ( - "example.com/bar" - ) - // Injectors from wire.go: func injectedMessage() string { - string2 := _wireStringValue + s := provideS() + string2 := s.Foo return string2 } - - var ( - _wireStringValue = bar.PublicMsg - ) -=== CONT TestWire/InvalidInjector -=== CONT TestWire/MultipleSimilarPackages +=== CONT TestWire/BuildTagsAllPackages +=== CONT TestWire/ExportedValueDifferentPackage wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1671,58 +1738,21 @@ package main import ( - "example.com/bar" - "example.com/baz" - "example.com/foo" - "fmt" + "os" ) // Injectors from wire.go: - func newMainService(mainConfig MainConfig) *MainService { - config := mainConfig.Foo - service := foo.New(config) - barConfig := mainConfig.Bar - barService := bar.New(barConfig, service) - bazConfig := mainConfig.baz - bazService := baz.New(bazConfig, barService) - mainService := &MainService{ - Foo: service, - Bar: barService, - baz: bazService, - } - return mainService - } - - // wire.go: - - type MainConfig struct { - Foo *foo.Config - Bar *bar.Config - baz *baz.Config - } - - type MainService struct { - Foo *foo.Service - Bar *bar.Service - baz *baz.Service - } - - func (m *MainService) String() string { - return fmt.Sprintf("%d %d %d", m.Foo.Cfg.V, m.Bar.Cfg.V, m.baz.Cfg.V) + func injectedFile() *os.File { + file := _wireFileValue + return file } - func main() { - cfg := MainConfig{ - Foo: &foo.Config{1}, - Bar: &bar.Config{2}, - baz: &baz.Config{3}, - } - svc := newMainService(cfg) - fmt.Println(svc.String()) - } -=== CONT TestWire/BindInjectorArgPointer -=== CONT TestWire/BuildTagsAllPackages + var ( + _wireFileValue = os.Stdout + ) +=== CONT TestWire/Chain +=== CONT TestWire/ExportedValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1731,6 +1761,10 @@ package main + import ( + "example.com/bar" + ) + // Injectors from wire.go: func injectedMessage() string { @@ -1739,9 +1773,14 @@ } var ( - _wireStringValue = "Hello, World!" + _wireStringValue = bar.PublicMsg ) -=== CONT TestWire/InterfaceValueInvalidArg0 +=== CONT TestWire/BindInterfaceWithValue +=== CONT TestWire/FieldsOfStructDoNotProvidePtrToField + wire_test.go:108: /tmp/wire_test208524565/src/example.com/foo/wire.go:23:1: inject injectedMessagePtr: no provider found for *string, output of injector +=== CONT TestWire/BindInjectorArgPointer +=== CONT TestWire/EmptyVar + wire_test.go:108: /tmp/wire_test288266870/src/example.com/foo/wire.go:24:13: var example.com/foo.myFakeSet struct{} is not a provider or a provider set === CONT TestWire/Cleanup wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1761,8 +1800,13 @@ cleanup() } } -=== CONT TestWire/VarValue -=== CONT TestWire/BindInterfaceWithValue +=== CONT TestWire/Cycle + wire_test.go:108: /tmp/wire_test017384285/src/example.com/foo/wire.go:23:1: cycle for example.com/foo.Bar: + example.com/foo.Bar (example.com/foo.provideBar) -> + example.com/foo.Foo (example.com/foo.provideFoo) -> + example.com/foo.Baz (example.com/foo.provideBaz) -> + example.com/foo.Bar +=== CONT TestWire/CopyOtherDecls wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1772,38 +1816,43 @@ package main import ( - "io" - "os" + "fmt" ) - // Injectors from wire.go: + // Injectors from foo.go: - func inject() io.Writer { - file := _wireFileValue - return file + func injectedMessage() string { + string2 := provideMessage() + return string2 } - var ( - _wireFileValue = os.Stdout - ) -=== CONT TestWire/MultipleMissingInputs - wire_test.go:108: /tmp/wire_test212738655/src/example.com/foo/wire.go:23:1: inject injectMissingOutputType: no provider found for example.com/foo.Foo, output of injector - wire_test.go:108: /tmp/wire_test212738655/src/example.com/foo/wire.go:29:1: inject injectMultipleMissingTypes: no provider found for example.com/foo.Foo - needed by example.com/foo.Baz in provider "provideBaz" (/tmp/wire_test212738655/src/example.com/foo/foo.go:29:6) - wire_test.go:108: /tmp/wire_test212738655/src/example.com/foo/wire.go:29:1: inject injectMultipleMissingTypes: no provider found for example.com/foo.Bar - needed by example.com/foo.Baz in provider "provideBaz" (/tmp/wire_test212738655/src/example.com/foo/foo.go:29:6) - wire_test.go:108: /tmp/wire_test212738655/src/example.com/foo/wire.go:35:1: inject injectMissingRecursiveType: no provider found for example.com/foo.Foo - needed by example.com/foo.Zip in provider "provideZip" (/tmp/wire_test212738655/src/example.com/foo/foo.go:37:6) - needed by example.com/foo.Zap in provider "provideZap" (/tmp/wire_test212738655/src/example.com/foo/foo.go:41:6) - needed by example.com/foo.Zop in provider "provideZop" (/tmp/wire_test212738655/src/example.com/foo/foo.go:45:6) -=== CONT TestWire/InvalidInjector - wire_test.go:108: a call to wire.Build indicates that this function is an injector, but injectors must consist of only the wire.Build call and an optional return - wire_test.go:108: a call to wire.Build indicates that this function is an injector, but injectors must consist of only the wire.Build call and an optional return -=== CONT TestWire/InterfaceValueInvalidArg0 - wire_test.go:108: /tmp/wire_test856387974/src/example.com/foo/wire.go:25:13: first argument to InterfaceValue must be a pointer to an interface type; found string -=== CONT TestWire/InterfaceValueNotEnoughArgs - wire_test.go:108: /tmp/wire_test915639785/src/example.com/foo/wire.go:25:38: too few arguments in call to wire.InterfaceValue -=== CONT TestWire/VarValue + // foo.go: + + func main() { + fmt.Println(injectedMessage()) + } + + // provideMessage provides a friendly user greeting. + func provideMessage() string { + return "Hello, World!" + } +=== CONT TestWire/Chain + wire_test.go:164: wire_gen.go: + // Code generated by Wire. DO NOT EDIT. + + //go:generate wire + //+build !wireinject + + package main + + // Injectors from wire.go: + + func injectFooBar() FooBar { + foo := provideFoo() + fooBar := provideFooBar(foo) + return fooBar + } +=== CONT TestWire/BuildTagsAllPackages wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1820,45 +1869,8 @@ } var ( - _wireStringValue = msg + _wireStringValue = "Hello, World!" ) -=== CONT TestWire/MultipleBindings - wire_test.go:108: /tmp/wire_test194498098/src/example.com/foo/wire.go:27:8: multiple bindings for example.com/foo.Foo - current: - <- provider "provideFooAgain" (/tmp/wire_test194498098/src/example.com/foo/foo.go:39:6) - previous: - <- provider "provideFoo" (/tmp/wire_test194498098/src/example.com/foo/foo.go:35:6) - wire_test.go:108: /tmp/wire_test194498098/src/example.com/foo/wire.go:32:8: multiple bindings for example.com/foo.Foo - current: - <- provider "provideFoo" (/tmp/wire_test194498098/src/example.com/foo/foo.go:35:6) - previous: - <- provider "provideFoo" (/tmp/wire_test194498098/src/example.com/foo/foo.go:35:6) - <- provider set "Set" (/tmp/wire_test194498098/src/example.com/foo/foo.go:31:11) - wire_test.go:108: /tmp/wire_test194498098/src/example.com/foo/wire.go:37:8: multiple bindings for example.com/foo.Foo - current: - <- provider "provideFoo" (/tmp/wire_test194498098/src/example.com/foo/foo.go:35:6) - previous: - <- provider "provideFoo" (/tmp/wire_test194498098/src/example.com/foo/foo.go:35:6) - <- provider set "Set" (/tmp/wire_test194498098/src/example.com/foo/foo.go:31:11) - <- provider set "SuperSet" (/tmp/wire_test194498098/src/example.com/foo/foo.go:32:16) - wire_test.go:108: /tmp/wire_test194498098/src/example.com/foo/foo.go:33:32: SetWithDuplicateBindings has multiple bindings for example.com/foo.Foo - current: - <- provider "provideFoo" (/tmp/wire_test194498098/src/example.com/foo/foo.go:35:6) - <- provider set "Set" (/tmp/wire_test194498098/src/example.com/foo/foo.go:31:11) - <- provider set "SuperSet" (/tmp/wire_test194498098/src/example.com/foo/foo.go:32:16) - previous: - <- provider "provideFoo" (/tmp/wire_test194498098/src/example.com/foo/foo.go:35:6) - <- provider set "Set" (/tmp/wire_test194498098/src/example.com/foo/foo.go:31:11) - wire_test.go:108: /tmp/wire_test194498098/src/example.com/foo/wire.go:47:8: multiple bindings for example.com/foo.Foo - current: - <- wire.Value (/tmp/wire_test194498098/src/example.com/foo/wire.go:47:42) - previous: - <- provider "provideFoo" (/tmp/wire_test194498098/src/example.com/foo/foo.go:35:6) - wire_test.go:108: /tmp/wire_test194498098/src/example.com/foo/wire.go:52:8: multiple bindings for example.com/foo.Bar - current: - <- wire.Bind (/tmp/wire_test194498098/src/example.com/foo/wire.go:52:31) - previous: - <- provider "provideBar" (/tmp/wire_test194498098/src/example.com/foo/foo.go:43:6) === CONT TestWire/BindInjectorArgPointer wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1874,76 +1886,100 @@ bar := NewBar(foo) return bar } ---- PASS: TestWire (0.03s) - --- PASS: TestWire/PkgImport (5.47s) - --- PASS: TestWire/ValueFromFunctionScope (6.10s) - --- PASS: TestWire/ValueConversion (6.11s) - --- PASS: TestWire/InterfaceValueDoesntImplement (7.57s) - --- PASS: TestWire/Varargs (7.74s) - --- PASS: TestWire/BindInjectorArg (8.49s) - --- PASS: TestWire/ValueIsInterfaceValue (8.86s) - --- PASS: TestWire/ValueIsStruct (10.51s) - --- PASS: TestWire/ValueChain (5.70s) - --- PASS: TestWire/UnusedProviders (5.14s) - --- PASS: TestWire/UnexportedValue (8.23s) - --- PASS: TestWire/TwoDeps (7.28s) - --- PASS: TestWire/StructPointer (8.07s) - --- PASS: TestWire/Struct (5.85s) - --- PASS: TestWire/ReturnError (6.10s) - --- PASS: TestWire/StructWithPreventTag (10.87s) - --- PASS: TestWire/ReturnArgumentAsInterface (6.04s) - --- PASS: TestWire/StructNotAStruct (10.04s) - --- PASS: TestWire/UnexportedStruct (13.47s) - --- PASS: TestWire/NamingWorstCase (7.02s) - --- PASS: TestWire/ReservedKeywords (9.45s) - --- PASS: TestWire/RelativePkg (7.54s) - --- PASS: TestWire/ProviderSetBindingMissingConcreteType (8.64s) - --- PASS: TestWire/NoopBuild (6.48s) - --- PASS: TestWire/NoImplicitInterface (7.12s) - --- PASS: TestWire/PartialCleanup (9.21s) - --- PASS: TestWire/NiladicIdentity (5.00s) - --- PASS: TestWire/NoInjectParamNames (9.25s) - --- PASS: TestWire/FieldsOfStructPointer (5.20s) - --- PASS: TestWire/InterfaceValue (4.59s) - --- PASS: TestWire/NamingWorstCaseAllInOne (8.06s) - --- PASS: TestWire/InterfaceBindingReuse (5.66s) - --- PASS: TestWire/NiladicValue (9.93s) - --- PASS: TestWire/InterfaceBinding (4.90s) - --- PASS: TestWire/InterfaceBindingInvalidArg0 (6.50s) - --- PASS: TestWire/InjectorMissingCleanup (5.03s) - --- PASS: TestWire/InterfaceBindingDoesntImplement (8.29s) - --- PASS: TestWire/InterfaceBindingNotEnoughArgs (9.55s) - --- PASS: TestWire/InjectorMissingError (6.88s) - --- PASS: TestWire/InjectInputConflict (4.59s) - --- PASS: TestWire/InjectWithPanic (6.48s) - --- PASS: TestWire/InjectInput (4.55s) - --- PASS: TestWire/FuncArgProvider (4.38s) - --- PASS: TestWire/EmptyVar (4.62s) - --- PASS: TestWire/ImportedInterfaceBinding (8.06s) - --- PASS: TestWire/Header (6.56s) - --- PASS: TestWire/FieldsOfStructDoNotProvidePtrToField (5.39s) - --- PASS: TestWire/FieldsOfStruct (4.68s) - --- PASS: TestWire/FieldsOfValueStruct (7.95s) - --- PASS: TestWire/FieldsOfCycle (5.99s) - --- PASS: TestWire/FieldsOfImportedStruct (8.49s) - --- PASS: TestWire/ExportedValueDifferentPackage (5.90s) - --- PASS: TestWire/ExampleWithMocks (4.80s) - --- PASS: TestWire/Chain (4.65s) - --- PASS: TestWire/CopyOtherDecls (5.94s) - --- PASS: TestWire/Cycle (7.31s) - --- PASS: TestWire/MultipleArgsSameType (4.22s) - --- PASS: TestWire/ExportedValue (10.34s) - --- PASS: TestWire/MultipleSimilarPackages (5.66s) - --- PASS: TestWire/BuildTagsAllPackages (5.76s) - --- PASS: TestWire/Cleanup (6.55s) - --- PASS: TestWire/BindInterfaceWithValue (6.52s) - --- PASS: TestWire/MultipleMissingInputs (5.73s) - --- PASS: TestWire/InvalidInjector (3.60s) - --- PASS: TestWire/InterfaceValueInvalidArg0 (3.72s) - --- PASS: TestWire/InterfaceValueNotEnoughArgs (5.46s) - --- PASS: TestWire/VarValue (3.67s) - --- PASS: TestWire/MultipleBindings (6.40s) - --- PASS: TestWire/BindInjectorArgPointer (5.30s) +=== CONT TestWire/BindInterfaceWithValue + wire_test.go:164: wire_gen.go: + // Code generated by Wire. DO NOT EDIT. + + //go:generate wire + //+build !wireinject + + package main + + import ( + "io" + "os" + ) + + // Injectors from wire.go: + + func inject() io.Writer { + file := _wireFileValue + return file + } + + var ( + _wireFileValue = os.Stdout + ) +--- PASS: TestWire (0.11s) + --- PASS: TestWire/VarValue (14.98s) + --- PASS: TestWire/InvalidInjector (16.36s) + --- PASS: TestWire/ValueIsStruct (21.46s) + --- PASS: TestWire/ValueFromFunctionScope (22.11s) + --- PASS: TestWire/BindInjectorArg (22.50s) + --- PASS: TestWire/ValueIsInterfaceValue (28.12s) + --- PASS: TestWire/ValueConversion (29.58s) + --- PASS: TestWire/Varargs (29.87s) + --- PASS: TestWire/ValueChain (18.30s) + --- PASS: TestWire/UnusedProviders (17.58s) + --- PASS: TestWire/UnexportedValue (13.06s) + --- PASS: TestWire/UnexportedStruct (17.23s) + --- PASS: TestWire/TwoDeps (18.89s) + --- PASS: TestWire/StructPointer (21.74s) + --- PASS: TestWire/StructWithPreventTag (24.40s) + --- PASS: TestWire/StructNotAStruct (22.93s) + --- PASS: TestWire/ReturnArgumentAsInterface (18.82s) + --- PASS: TestWire/ReservedKeywords (23.88s) + --- PASS: TestWire/Struct (30.66s) + --- PASS: TestWire/RelativePkg (22.67s) + --- PASS: TestWire/PartialCleanup (12.38s) + --- PASS: TestWire/ReturnError (36.57s) + --- PASS: TestWire/PkgImport (20.64s) + --- PASS: TestWire/NoopBuild (21.68s) + --- PASS: TestWire/ProviderSetBindingMissingConcreteType (27.92s) + --- PASS: TestWire/NoInjectParamNames (16.55s) + --- PASS: TestWire/NamingWorstCaseAllInOne (13.08s) + --- PASS: TestWire/NiladicIdentity (22.39s) + --- PASS: TestWire/NiladicValue (25.09s) + --- PASS: TestWire/NoImplicitInterface (25.36s) + --- PASS: TestWire/MultipleSimilarPackages (21.13s) + --- PASS: TestWire/MultipleBindings (17.08s) + --- PASS: TestWire/MultipleArgsSameType (14.26s) + --- PASS: TestWire/MultipleMissingInputs (19.91s) + --- PASS: TestWire/NamingWorstCase (34.77s) + --- PASS: TestWire/InterfaceValueDoesntImplement (15.33s) + --- PASS: TestWire/InterfaceValueNotEnoughArgs (24.13s) + --- PASS: TestWire/FuncArgProvider (29.19s) + --- PASS: TestWire/InterfaceValueInvalidArg0 (31.05s) + --- PASS: TestWire/InterfaceValue (27.18s) + --- PASS: TestWire/InterfaceBindingReuse (28.16s) + --- PASS: TestWire/InterfaceBindingNotEnoughArgs (27.75s) + --- PASS: TestWire/InjectorMissingCleanup (15.21s) + --- PASS: TestWire/InterfaceBinding (33.43s) + --- PASS: TestWire/InterfaceBindingDoesntImplement (39.25s) + --- PASS: TestWire/InterfaceBindingInvalidArg0 (43.16s) + --- PASS: TestWire/InjectInput (26.38s) + --- PASS: TestWire/InjectInputConflict (33.97s) + --- PASS: TestWire/ImportedInterfaceBinding (27.62s) + --- PASS: TestWire/InjectorMissingError (51.46s) + --- PASS: TestWire/InjectWithPanic (49.01s) + --- PASS: TestWire/Header (32.33s) + --- PASS: TestWire/FieldsOfImportedStruct (19.59s) + --- PASS: TestWire/FieldsOfStructPointer (36.95s) + --- PASS: TestWire/ExampleWithMocks (40.17s) + --- PASS: TestWire/FieldsOfCycle (18.24s) + --- PASS: TestWire/FieldsOfValueStruct (47.25s) + --- PASS: TestWire/FieldsOfStruct (35.50s) + --- PASS: TestWire/ExportedValueDifferentPackage (25.90s) + --- PASS: TestWire/ExportedValue (18.24s) + --- PASS: TestWire/FieldsOfStructDoNotProvidePtrToField (46.92s) + --- PASS: TestWire/EmptyVar (18.96s) + --- PASS: TestWire/Cleanup (22.38s) + --- PASS: TestWire/Cycle (22.90s) + --- PASS: TestWire/CopyOtherDecls (19.98s) + --- PASS: TestWire/Chain (14.48s) + --- PASS: TestWire/BuildTagsAllPackages (20.87s) + --- PASS: TestWire/BindInjectorArgPointer (15.82s) + --- PASS: TestWire/BindInterfaceWithValue (18.20s) === RUN TestUnexport --- PASS: TestUnexport (0.00s) === RUN TestExport @@ -1999,7 +2035,7 @@ --- PASS: TestDisambiguate/disambiguate("select",_map[]) (0.00s) --- PASS: TestDisambiguate/disambiguate("var",_map[]) (0.00s) PASS -ok github.com/google/wire/internal/wire 60.109s +ok github.com/google/wire/internal/wire 224.753s create-stamp debian/debhelper-build-stamp dh_testroot -O--builddirectory=_build -O--buildsystem=golang dh_prep -O--builddirectory=_build -O--buildsystem=golang @@ -2049,12 +2085,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/30820/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/30820/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/12435 and its subdirectories -I: Current time: Thu Aug 19 12:01:33 -12 2021 -I: pbuilder-time-stamp: 1629417693 +I: removing directory /srv/workspace/pbuilder/30820 and its subdirectories +I: Current time: Thu Sep 22 20:30:29 +14 2022 +I: pbuilder-time-stamp: 1663828229