Diff of the two buildlogs: -- --- b1/build.log 2022-01-24 13:42:43.560993344 +0000 +++ b2/build.log 2022-01-24 13:46:01.234884017 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun Feb 26 08:03:17 -12 2023 -I: pbuilder-time-stamp: 1677441797 +I: Current time: Tue Jan 25 03:42:45 +14 2022 +I: pbuilder-time-stamp: 1643031765 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.f0FnkBf0/trustedkeys.kbx': General error -gpgv: Signature made Sun Mar 8 07:46:01 2020 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.OPdlpXJd/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/2781479/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1298922/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/1298922/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1298922/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='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=16' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='amd64' + 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='e78944e199064176901192aec68c75e7' - 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='2781479' - PS1='# ' - PS2='> ' + INVOCATION_ID=0902da3577b54f109394b229e88e4e3e + 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=1298922 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.1hFPB2LVu9/pbuilderrc_IkLg --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.1hFPB2LVu9/b1 --logfile b1/build.log golang-github-google-wire_0.4.0-3.dsc' - SUDO_GID='111' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://85.184.249.68: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.1hFPB2LVu9/pbuilderrc_Uouu --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.1hFPB2LVu9/b2 --logfile b2/build.log golang-github-google-wire_0.4.0-3.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 ionos15-amd64 5.15.0-0.bpo.2-amd64 #1 SMP Debian 5.15.5-2~bpo11+1 (2022-01-02) x86_64 GNU/Linux + Linux i-capture-the-hostname 5.10.0-11-amd64 #1 SMP Debian 5.10.92-1 (2022-01-18) x86_64 GNU/Linux I: ls -l /bin total 5476 - -rwxr-xr-x 1 root root 1234376 Aug 4 2021 bash - -rwxr-xr-x 3 root root 38984 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 38984 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 38984 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 18424 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 43936 Sep 23 2020 cat - -rwxr-xr-x 1 root root 72672 Sep 23 2020 chgrp - -rwxr-xr-x 1 root root 64448 Sep 23 2020 chmod - -rwxr-xr-x 1 root root 72672 Sep 23 2020 chown - -rwxr-xr-x 1 root root 151168 Sep 23 2020 cp - -rwxr-xr-x 1 root root 125560 Dec 10 2020 dash - -rwxr-xr-x 1 root root 113664 Sep 23 2020 date - -rwxr-xr-x 1 root root 80968 Sep 23 2020 dd - -rwxr-xr-x 1 root root 93936 Sep 23 2020 df - -rwxr-xr-x 1 root root 147176 Sep 23 2020 dir - -rwxr-xr-x 1 root root 84440 Jul 28 2021 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 39712 Sep 23 2020 echo - -rwxr-xr-x 1 root root 28 Nov 9 2020 egrep - -rwxr-xr-x 1 root root 39680 Sep 23 2020 false - -rwxr-xr-x 1 root root 28 Nov 9 2020 fgrep - -rwxr-xr-x 1 root root 69032 Jul 28 2021 findmnt - -rwsr-xr-x 1 root root 34896 Feb 26 2021 fusermount - -rwxr-xr-x 1 root root 203072 Nov 9 2020 grep - -rwxr-xr-x 2 root root 2346 Mar 2 2021 gunzip - -rwxr-xr-x 1 root root 6376 Mar 2 2021 gzexe - -rwxr-xr-x 1 root root 98048 Mar 2 2021 gzip - -rwxr-xr-x 1 root root 22600 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 72840 Sep 23 2020 ln - -rwxr-xr-x 1 root root 56952 Feb 7 2020 login - -rwxr-xr-x 1 root root 147176 Sep 23 2020 ls - -rwxr-xr-x 1 root root 149736 Jul 28 2021 lsblk - -rwxr-xr-x 1 root root 85184 Sep 23 2020 mkdir - -rwxr-xr-x 1 root root 76896 Sep 23 2020 mknod - -rwxr-xr-x 1 root root 48064 Sep 23 2020 mktemp - -rwxr-xr-x 1 root root 59632 Jul 28 2021 more - -rwsr-xr-x 1 root root 55528 Jul 28 2021 mount - -rwxr-xr-x 1 root root 18664 Jul 28 2021 mountpoint - -rwxr-xr-x 1 root root 147080 Sep 23 2020 mv - lrwxrwxrwx 1 root root 8 Nov 6 2019 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 18 2021 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 43872 Sep 23 2020 pwd - lrwxrwxrwx 1 root root 4 Aug 4 2021 rbash -> bash - -rwxr-xr-x 1 root root 52032 Sep 23 2020 readlink - -rwxr-xr-x 1 root root 72704 Sep 23 2020 rm - -rwxr-xr-x 1 root root 52032 Sep 23 2020 rmdir - -rwxr-xr-x 1 root root 27472 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 122224 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Feb 23 03:48 sh -> dash - -rwxr-xr-x 1 root root 43808 Sep 23 2020 sleep - -rwxr-xr-x 1 root root 84928 Sep 23 2020 stty - -rwsr-xr-x 1 root root 71912 Jul 28 2021 su - -rwxr-xr-x 1 root root 39744 Sep 23 2020 sync - -rwxr-xr-x 1 root root 531928 Feb 16 2021 tar - -rwxr-xr-x 1 root root 14456 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 101408 Sep 23 2020 touch - -rwxr-xr-x 1 root root 39680 Sep 23 2020 true - -rwxr-xr-x 1 root root 14328 Feb 26 2021 ulockmgr_server - -rwsr-xr-x 1 root root 35040 Jul 28 2021 umount - -rwxr-xr-x 1 root root 39744 Sep 23 2020 uname - -rwxr-xr-x 2 root root 2346 Mar 2 2021 uncompress - -rwxr-xr-x 1 root root 147176 Sep 23 2020 vdir - -rwxr-xr-x 1 root root 63744 Jul 28 2021 wdctl - lrwxrwxrwx 1 root root 8 Nov 6 2019 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Mar 2 2021 zcat - -rwxr-xr-x 1 root root 1678 Mar 2 2021 zcmp - -rwxr-xr-x 1 root root 5880 Mar 2 2021 zdiff - -rwxr-xr-x 1 root root 29 Mar 2 2021 zegrep - -rwxr-xr-x 1 root root 29 Mar 2 2021 zfgrep - -rwxr-xr-x 1 root root 2081 Mar 2 2021 zforce - -rwxr-xr-x 1 root root 7585 Mar 2 2021 zgrep - -rwxr-xr-x 1 root root 2206 Mar 2 2021 zless - -rwxr-xr-x 1 root root 1842 Mar 2 2021 zmore - -rwxr-xr-x 1 root root 4553 Mar 2 2021 znew -I: user script /srv/workspace/pbuilder/2781479/tmp/hooks/D02_print_environment finished + -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 Jan 25 03:42 sh -> bash + lrwxrwxrwx 1 root root 4 Jan 21 23:26 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/1298922/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 amd64 golang-golang-x-mod-dev all 0.4.1-1 [87.9 kB] Get: 50 http://deb.debian.org/debian bullseye/main amd64 golang-golang-x-sync-dev all 0.0~git20210220.036812b-1 [19.1 kB] Get: 51 http://deb.debian.org/debian bullseye/main amd64 golang-golang-x-tools-dev all 1:0.1.0+ds-1 [1626 kB] -Fetched 88.0 MB in 2s (50.9 MB/s) +Fetched 88.0 MB in 2s (37.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 ... 19655 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: Name or service not known +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 @@ -493,26 +528,26 @@ dh_autoreconf -O--builddirectory=_build -O--buildsystem=golang 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 16 github.com/google/wire github.com/google/wire/cmd/wire github.com/google/wire/internal/wire -internal/unsafeheader + cd _build && go install -trimpath -v -p 15 github.com/google/wire github.com/google/wire/cmd/wire github.com/google/wire/internal/wire github.com/google/wire internal/race runtime/internal/sys math/bits unicode/utf8 -encoding unicode -runtime/internal/atomic +internal/unsafeheader internal/cpu -unicode/utf16 internal/goversion +runtime/internal/math golang.org/x/xerrors/internal +unicode/utf16 golang.org/x/mod/semver +encoding +runtime/internal/atomic sync/atomic -runtime/internal/math +internal/testlog internal/bytealg math -internal/testlog runtime internal/reflectlite sync @@ -520,8 +555,8 @@ errors sort internal/oserror -strconv io +strconv syscall bytes strings @@ -531,9 +566,9 @@ path bufio regexp/syntax -time -internal/syscall/execenv internal/syscall/unix +internal/syscall/execenv +time regexp context internal/poll @@ -541,41 +576,41 @@ encoding/binary os encoding/base64 +fmt path/filepath internal/lazyregexp -fmt io/ioutil os/exec flag go/token net/url -encoding/json -text/template/parse text/scanner golang.org/x/tools/internal/event/label -golang.org/x/xerrors -log +encoding/json github.com/pmezard/go-difflib/difflib +log math/big +golang.org/x/xerrors +text/template/parse +golang.org/x/tools/internal/event/keys golang.org/x/sys/execabs internal/execabs go/scanner -golang.org/x/tools/internal/event/keys -internal/goroot github.com/google/subcommands -go/ast +internal/goroot golang.org/x/tools/internal/event/core -text/template +go/ast golang.org/x/tools/internal/event golang.org/x/tools/internal/gocommand +text/template +golang.org/x/tools/internal/packagesinternal golang.org/x/tools/go/ast/astutil go/printer -golang.org/x/tools/internal/packagesinternal go/parser go/constant go/doc -go/format go/types +go/format go/build golang.org/x/tools/go/internal/gcimporter golang.org/x/tools/go/internal/packagesdriver @@ -586,7 +621,7 @@ github.com/google/wire/internal/wire github.com/google/wire/cmd/wire dh_auto_test -O--builddirectory=_build -O--buildsystem=golang - cd _build && go test -vet=off -v -p 16 github.com/google/wire github.com/google/wire/cmd/wire github.com/google/wire/internal/wire + cd _build && go test -vet=off -v -p 15 github.com/google/wire github.com/google/wire/cmd/wire github.com/google/wire/internal/wire ? github.com/google/wire [no test files] ? github.com/google/wire/cmd/wire [no test files] === RUN TestWire @@ -729,22 +764,25 @@ === RUN TestWire/Varargs === PAUSE TestWire/Varargs === CONT TestWire/BindInjectorArg +=== CONT TestWire/InvalidInjector +=== CONT TestWire/ReturnArgumentAsInterface === CONT TestWire/NoImplicitInterface -=== CONT TestWire/StructWithPreventTag -=== CONT TestWire/NiladicValue -=== CONT TestWire/NiladicIdentity -=== CONT TestWire/NamingWorstCaseAllInOne -=== CONT TestWire/NamingWorstCase +=== CONT TestWire/PkgImport === CONT TestWire/Varargs +=== CONT TestWire/PartialCleanup +=== CONT TestWire/NoopBuild === CONT TestWire/VarValue -=== CONT TestWire/ValueIsStruct -=== CONT TestWire/MultipleSimilarPackages === CONT TestWire/ReservedKeywords -=== CONT TestWire/ImportedInterfaceBinding -=== CONT TestWire/NoopBuild +=== CONT TestWire/NoInjectParamNames +=== CONT TestWire/UnexportedValue +=== CONT TestWire/ValueFromFunctionScope === CONT TestWire/RelativePkg -=== CONT TestWire/ProviderSetBindingMissingConcreteType -=== CONT TestWire/NamingWorstCaseAllInOne +=== CONT TestWire/UnexportedStruct +=== 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/NiladicValue +=== CONT TestWire/ReservedKeywords wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -753,51 +791,22 @@ package main - import ( - context2 "context" - "fmt" - "os" - "reflect" - ) - - // Injectors from foo.go: - - func inject(context3 context2.Context, err2 struct{}) (context, error) { - mainContext, err := Provide(context3) - if err != nil { - return context{}, err - } - return mainContext, nil - } - - // foo.go: - - type context struct{} + // Injectors from wire.go: - func main() { - if _, ok := reflect.TypeOf(context{}).MethodByName("Provide"); !ok { - fmt.Println("ERROR: context.Provide renamed") - os.Exit(1) - } - c, err := inject(context2.Background(), struct{}{}) - if err != nil { - fmt.Println("ERROR:", err) - os.Exit(1) - } - fmt.Println(c) + func injectInterface() Interface { + select2 := provideSelect() + mainInterface := provideInterface(select2) + return mainInterface } - func Provide(context2_2 context2.Context) (context, error) { - var context3 = context2.Background() - _ = context2_2 - _ = context3 - return context{}, nil - } + // wire.go: - func (context) Provide() { - } -=== CONT TestWire/PkgImport -=== CONT TestWire/ValueIsStruct + // Wire tries to disambiguate the variable "select" by prepending + // the package name; this package-scoped variable conflicts with that + // and forces a different name. + var mainSelect = 0 +=== CONT TestWire/NiladicIdentity +=== CONT TestWire/PartialCleanup wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -808,16 +817,26 @@ // Injectors from wire.go: - func injectFoo() Foo { - foo := _wireFooValue - return foo + func injectBaz() (Baz, func(), error) { + foo, cleanup := provideFoo() + bar, cleanup2, err := provideBar(foo) + if err != nil { + cleanup() + return 0, nil, err + } + baz, err := provideBaz(bar) + if err != nil { + cleanup2() + cleanup() + return 0, nil, err + } + return baz, func() { + cleanup2() + cleanup() + }, nil } - - var ( - _wireFooValue = Foo{X: 42} - ) -=== CONT TestWire/PartialCleanup -=== CONT TestWire/ReservedKeywords +=== CONT TestWire/NamingWorstCaseAllInOne +=== CONT TestWire/BindInjectorArg wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -828,23 +847,12 @@ // Injectors from wire.go: - func injectInterface() Interface { - select2 := provideSelect() - mainInterface := provideInterface(select2) - return mainInterface + func inject(foo Foo) *Bar { + bar := NewBar(foo) + return bar } - - // wire.go: - - // Wire tries to disambiguate the variable "select" by prepending - // the package name; this package-scoped variable conflicts with that - // and forces a different name. - var mainSelect = 0 -=== CONT TestWire/Header -=== CONT TestWire/ProviderSetBindingMissingConcreteType - wire_test.go:108: /tmp/wire_test754044151/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/FuncArgProvider === CONT TestWire/NamingWorstCase +=== CONT TestWire/NoInjectParamNames wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -859,15 +867,15 @@ // Injectors from wire.go: - func inject(context3 context2.Context, err2 struct{}) (context, error) { - mainContext, err := provide(context3) + func inject(contextContext context2.Context, arg struct{}) (context, error) { + mainContext, err := provide(contextContext) if err != nil { return context{}, err } return mainContext, nil } -=== CONT TestWire/FieldsOfValueStruct -=== CONT TestWire/BindInjectorArg +=== CONT TestWire/MultipleSimilarPackages +=== CONT TestWire/ReturnArgumentAsInterface wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -876,14 +884,17 @@ package main + import ( + "fmt" + ) + // Injectors from wire.go: - func inject(foo Foo) *Bar { - bar := NewBar(foo) - return bar + func injectStringer(s MyString) fmt.Stringer { + return s } -=== CONT TestWire/FieldsOfStructPointer -=== CONT TestWire/RelativePkg +=== CONT TestWire/MultipleMissingInputs +=== CONT TestWire/VarValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -895,11 +906,15 @@ // Injectors from wire.go: func injectedMessage() string { - string2 := provideMessage() + string2 := _wireStringValue return string2 } -=== CONT TestWire/FieldsOfStructDoNotProvidePtrToField -=== CONT TestWire/VarValue + + var ( + _wireStringValue = msg + ) +=== CONT TestWire/MultipleBindings +=== CONT TestWire/Varargs wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -910,19 +925,21 @@ // Injectors from wire.go: - func injectedMessage() string { - string2 := _wireStringValue + func injectedMessage(t title, lines ...string) string { + string2 := provideMessage(lines...) return string2 } - - var ( - _wireStringValue = msg - ) -=== CONT TestWire/FieldsOfStruct -=== CONT TestWire/NoImplicitInterface - wire_test.go:108: /tmp/wire_test843998641/src/example.com/foo/wire.go:23:1: inject injectFooer: no provider found for example.com/foo.Fooer, output of injector -=== CONT TestWire/FieldsOfImportedStruct -=== CONT TestWire/NiladicIdentity +=== CONT TestWire/MultipleArgsSameType +=== CONT TestWire/UnexportedStruct + wire_test.go:108: /tmp/wire_test098528612/src/example.com/foo/wire.go:26:17: foo not exported by package bar +=== CONT TestWire/InterfaceValueNotEnoughArgs +=== CONT TestWire/UnexportedValue + wire_test.go:108: /tmp/wire_test868088015/src/example.com/foo/wire.go:24:1: inject injectedMessage: value string can't be used: uses unexported identifier privateMsg +=== CONT TestWire/InterfaceValueInvalidArg0 +=== CONT TestWire/ValueFromFunctionScope + wire_test.go:108: /tmp/wire_test038680034/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/InterfaceValueDoesntImplement +=== CONT TestWire/RelativePkg wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -937,8 +954,9 @@ string2 := provideMessage() return string2 } -=== CONT TestWire/FieldsOfCycle -=== CONT TestWire/NiladicValue +=== CONT TestWire/InterfaceValue +=== CONT TestWire/InterfaceBindingReuse +=== CONT TestWire/PkgImport wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -947,17 +965,65 @@ package main + import ( + "example.com/bar" + ) + + import ( + _ "example.com/anon1" + _ "example.com/anon2" + ) + // Injectors from wire.go: - func injectedMessage() string { - string2 := _wireStringValue - return string2 + func injectFooBar() FooBar { + foo := provideFoo() + barBar := bar.ProvideBar() + fooBar := provideFooBar(foo, barBar) + return fooBar } - - var ( - _wireStringValue = "Hello, World!" - ) -=== CONT TestWire/ExportedValueDifferentPackage +=== CONT TestWire/InterfaceBindingNotEnoughArgs +=== CONT TestWire/NoImplicitInterface + wire_test.go:108: /tmp/wire_test850123335/src/example.com/foo/wire.go:23:1: inject injectFooer: no provider found for example.com/foo.Fooer, output of injector +=== CONT TestWire/InterfaceBindingInvalidArg0 +=== CONT TestWire/MultipleBindings + wire_test.go:108: /tmp/wire_test766136993/src/example.com/foo/wire.go:27:8: multiple bindings for example.com/foo.Foo + current: + <- provider "provideFooAgain" (/tmp/wire_test766136993/src/example.com/foo/foo.go:39:6) + previous: + <- provider "provideFoo" (/tmp/wire_test766136993/src/example.com/foo/foo.go:35:6) + wire_test.go:108: /tmp/wire_test766136993/src/example.com/foo/wire.go:32:8: multiple bindings for example.com/foo.Foo + current: + <- provider "provideFoo" (/tmp/wire_test766136993/src/example.com/foo/foo.go:35:6) + previous: + <- provider "provideFoo" (/tmp/wire_test766136993/src/example.com/foo/foo.go:35:6) + <- provider set "Set" (/tmp/wire_test766136993/src/example.com/foo/foo.go:31:11) + wire_test.go:108: /tmp/wire_test766136993/src/example.com/foo/wire.go:37:8: multiple bindings for example.com/foo.Foo + current: + <- provider "provideFoo" (/tmp/wire_test766136993/src/example.com/foo/foo.go:35:6) + previous: + <- provider "provideFoo" (/tmp/wire_test766136993/src/example.com/foo/foo.go:35:6) + <- provider set "Set" (/tmp/wire_test766136993/src/example.com/foo/foo.go:31:11) + <- provider set "SuperSet" (/tmp/wire_test766136993/src/example.com/foo/foo.go:32:16) + wire_test.go:108: /tmp/wire_test766136993/src/example.com/foo/foo.go:33:32: SetWithDuplicateBindings has multiple bindings for example.com/foo.Foo + current: + <- provider "provideFoo" (/tmp/wire_test766136993/src/example.com/foo/foo.go:35:6) + <- provider set "Set" (/tmp/wire_test766136993/src/example.com/foo/foo.go:31:11) + <- provider set "SuperSet" (/tmp/wire_test766136993/src/example.com/foo/foo.go:32:16) + previous: + <- provider "provideFoo" (/tmp/wire_test766136993/src/example.com/foo/foo.go:35:6) + <- provider set "Set" (/tmp/wire_test766136993/src/example.com/foo/foo.go:31:11) + wire_test.go:108: /tmp/wire_test766136993/src/example.com/foo/wire.go:47:8: multiple bindings for example.com/foo.Foo + current: + <- wire.Value (/tmp/wire_test766136993/src/example.com/foo/wire.go:47:42) + previous: + <- provider "provideFoo" (/tmp/wire_test766136993/src/example.com/foo/foo.go:35:6) + wire_test.go:108: /tmp/wire_test766136993/src/example.com/foo/wire.go:52:8: multiple bindings for example.com/foo.Bar + current: + <- wire.Bind (/tmp/wire_test766136993/src/example.com/foo/wire.go:52:31) + previous: + <- provider "provideBar" (/tmp/wire_test766136993/src/example.com/foo/foo.go:43:6) +=== CONT TestWire/InterfaceBindingDoesntImplement === CONT TestWire/MultipleSimilarPackages wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1018,12 +1084,19 @@ svc := newMainService(cfg) fmt.Println(svc.String()) } -=== CONT TestWire/ExportedValue -=== CONT TestWire/ExampleWithMocks -=== CONT TestWire/StructWithPreventTag - wire_test.go:108: /tmp/wire_test114064220/src/example.com/foo/foo.go:45:2: "mu" is prevented from injecting by wire -=== CONT TestWire/EmptyVar -=== CONT TestWire/Varargs +=== CONT TestWire/InterfaceBinding +=== CONT TestWire/MultipleMissingInputs + wire_test.go:108: /tmp/wire_test032248266/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_test032248266/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_test032248266/src/example.com/foo/foo.go:29:6) + wire_test.go:108: /tmp/wire_test032248266/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_test032248266/src/example.com/foo/foo.go:29:6) + wire_test.go:108: /tmp/wire_test032248266/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_test032248266/src/example.com/foo/foo.go:37:6) + needed by example.com/foo.Zap in provider "provideZap" (/tmp/wire_test032248266/src/example.com/foo/foo.go:41:6) + needed by example.com/foo.Zop in provider "provideZop" (/tmp/wire_test032248266/src/example.com/foo/foo.go:45:6) +=== CONT TestWire/InjectorMissingError +=== CONT TestWire/NamingWorstCaseAllInOne wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1032,14 +1105,61 @@ package main - // Injectors from wire.go: + import ( + context2 "context" + "fmt" + "os" + "reflect" + ) - func injectedMessage(t title, lines ...string) string { - string2 := provideMessage(lines...) - return string2 + // Injectors from foo.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/Cycle -=== CONT TestWire/PkgImport + + // foo.go: + + type context struct{} + + func main() { + if _, ok := reflect.TypeOf(context{}).MethodByName("Provide"); !ok { + fmt.Println("ERROR: context.Provide renamed") + os.Exit(1) + } + c, err := inject(context2.Background(), struct{}{}) + if err != nil { + fmt.Println("ERROR:", err) + os.Exit(1) + } + fmt.Println(c) + } + + func Provide(context2_2 context2.Context) (context, error) { + var context3 = context2.Background() + _ = context2_2 + _ = context3 + return context{}, nil + } + + func (context) Provide() { + } +=== CONT TestWire/InjectorMissingCleanup +=== CONT TestWire/MultipleArgsSameType + wire_test.go:108: /tmp/wire_test927084428/src/example.com/foo/wire.go:25:8: multiple bindings for string + current: + <- argument b to injector function inject (/tmp/wire_test927084428/src/example.com/foo/wire.go:23:1) + previous: + <- argument a to injector function inject (/tmp/wire_test927084428/src/example.com/foo/wire.go:23:1) +=== CONT TestWire/InjectWithPanic +=== CONT TestWire/InterfaceValueInvalidArg0 + wire_test.go:108: /tmp/wire_test051243678/src/example.com/foo/wire.go:25:13: first argument to InterfaceValue must be a pointer to an interface type; found string +=== CONT TestWire/InjectInputConflict +=== CONT TestWire/InterfaceBindingReuse wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1048,25 +1168,24 @@ 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) + bar := provideBar() + fooBar := provideFooBar(bar, bar) return fooBar } -=== CONT TestWire/CopyOtherDecls -=== CONT TestWire/PartialCleanup +=== CONT TestWire/InjectInput +=== CONT TestWire/InterfaceBindingNotEnoughArgs + wire_test.go:108: /tmp/wire_test732102322/src/example.com/foo/wire.go:25:33: too few arguments in call to wire.Bind +=== CONT TestWire/ImportedInterfaceBinding +=== CONT TestWire/InterfaceValueNotEnoughArgs + wire_test.go:108: /tmp/wire_test450306427/src/example.com/foo/wire.go:25:38: too few arguments in call to wire.InterfaceValue +=== CONT TestWire/Header +=== CONT TestWire/InterfaceValueDoesntImplement + wire_test.go:108: /tmp/wire_test641495909/src/example.com/foo/wire.go:26:13: string does not implement io.Reader +=== CONT TestWire/FuncArgProvider +=== CONT TestWire/NiladicValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1077,29 +1196,19 @@ // Injectors from wire.go: - func injectBaz() (Baz, func(), error) { - foo, cleanup := provideFoo() - bar, cleanup2, err := provideBar(foo) - if err != nil { - cleanup() - return 0, nil, err - } - baz, err := provideBaz(bar) - if err != nil { - cleanup2() - cleanup() - return 0, nil, err - } - return baz, func() { - cleanup2() - cleanup() - }, nil + func injectedMessage() string { + string2 := _wireStringValue + return string2 } -=== CONT TestWire/Cleanup -=== CONT TestWire/FieldsOfStructDoNotProvidePtrToField - wire_test.go:108: /tmp/wire_test997746336/src/example.com/foo/wire.go:23:1: inject injectedMessagePtr: no provider found for *string, output of injector -=== CONT TestWire/Chain -=== CONT TestWire/FieldsOfStruct + + var ( + _wireStringValue = "Hello, World!" + ) +=== CONT TestWire/FieldsOfValueStruct +=== CONT TestWire/InterfaceBindingInvalidArg0 + wire_test.go:108: /tmp/wire_test984972393/src/example.com/foo/wire.go:25:13: first argument to Bind must be a pointer to an interface type; found string +=== CONT TestWire/FieldsOfStructPointer +=== CONT TestWire/InterfaceValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1108,15 +1217,23 @@ package main + import ( + "io" + "strings" + ) + // Injectors from wire.go: - func injectedMessage() string { - s := provideS() - string2 := s.Foo - return string2 + func injectedReader() io.Reader { + reader := _wireReaderValue + return reader } -=== CONT TestWire/BuildTagsAllPackages -=== CONT TestWire/ImportedInterfaceBinding + + var ( + _wireReaderValue = strings.NewReader("hello world") + ) +=== CONT TestWire/FieldsOfStructDoNotProvidePtrToField +=== CONT TestWire/NamingWorstCase wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1126,17 +1243,20 @@ package main import ( - "example.com/foo" + context2 "context" ) // Injectors from wire.go: - func injectFooer() foo.Fooer { - bar := provideBar() - return bar + func inject(context3 context2.Context, err2 struct{}) (context, error) { + mainContext, err := provide(context3) + if err != nil { + return context{}, err + } + return mainContext, nil } -=== CONT TestWire/BindInterfaceWithValue -=== CONT TestWire/ExportedValue +=== CONT TestWire/FieldsOfStruct +=== CONT TestWire/NiladicIdentity wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1145,22 +1265,28 @@ package main - import ( - "example.com/bar" - ) - // Injectors from wire.go: func injectedMessage() string { - string2 := _wireStringValue + string2 := provideMessage() return string2 } - - var ( - _wireStringValue = bar.PublicMsg - ) -=== CONT TestWire/BindInjectorArgPointer +=== CONT TestWire/FieldsOfImportedStruct +=== CONT TestWire/InterfaceBindingDoesntImplement + wire_test.go:108: /tmp/wire_test284428980/src/example.com/foo/wire.go:25:13: string does not implement example.com/foo.Fooer +=== CONT TestWire/FieldsOfCycle +=== CONT TestWire/InjectInputConflict + wire_test.go:108: /tmp/wire_test525651559/src/example.com/foo/wire.go:24:2: multiple bindings for example.com/foo.Foo + current: + <- provider "provideFoo" (/tmp/wire_test525651559/src/example.com/foo/foo.go:37:6) + <- provider set "Set" (/tmp/wire_test525651559/src/example.com/foo/foo.go:33:11) + previous: + <- argument foo to injector function injectBar (/tmp/wire_test525651559/src/example.com/foo/wire.go:23:1) === CONT TestWire/ExportedValueDifferentPackage +=== CONT TestWire/InjectorMissingError + wire_test.go:108: /tmp/wire_test053648902/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/ExportedValue +=== CONT TestWire/InjectWithPanic wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1169,22 +1295,14 @@ package main - import ( - "os" - ) - // Injectors from wire.go: - func injectedFile() *os.File { - file := _wireFileValue - return file + func injectedMessage() string { + string2 := provideMessage() + return string2 } - - var ( - _wireFileValue = os.Stdout - ) -=== CONT TestWire/UnusedProviders -=== CONT TestWire/FieldsOfImportedStruct +=== CONT TestWire/ExampleWithMocks +=== CONT TestWire/ImportedInterfaceBinding wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1194,44 +1312,16 @@ package main import ( - "example.com/bar" - "example.com/baz" "example.com/foo" - "fmt" ) // Injectors from wire.go: - func newBazService(config *baz.Config) *baz.Service { - fooConfig := config.Foo - service := foo.New(fooConfig) - barConfig := config.Bar - barService := bar.New(barConfig, service) - bazService := &baz.Service{ - Foo: service, - Bar: barService, - } - return bazService - } - - // wire.go: - - func main() { - cfg := &baz.Config{ - Foo: &foo.Config{1}, - Bar: &bar.Config{2}, - } - svc := newBazService(cfg) - fmt.Println(svc.String()) + func injectFooer() foo.Fooer { + bar := provideBar() + return bar } -=== CONT TestWire/ValueIsInterfaceValue -=== CONT TestWire/Cycle - wire_test.go:108: /tmp/wire_test046728776/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/ValueFromFunctionScope +=== CONT TestWire/EmptyVar === CONT TestWire/Header wire_test.go:164: wire_gen.go: // This is a sample header file. @@ -1249,7 +1339,43 @@ foo := provideFoo() return foo } -=== CONT TestWire/ValueConversion +=== CONT TestWire/Cycle +=== CONT TestWire/InjectInput + 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(foo Foo) FooBar { + bar := provideBar() + fooBar := provideFooBar(foo, bar) + return fooBar + } +=== CONT TestWire/CopyOtherDecls +=== CONT TestWire/InterfaceBinding + 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 injectFooer() Fooer { + bar := provideBar() + return bar + } +=== CONT TestWire/Cleanup +=== CONT TestWire/FuncArgProvider + wire_test.go:108: /tmp/wire_test636947595/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/Chain === CONT TestWire/FieldsOfStructPointer wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1272,17 +1398,30 @@ string2 := &s.Foo return string2 } +=== CONT TestWire/BuildTagsAllPackages +=== CONT TestWire/InjectorMissingCleanup + wire_test.go:108: /tmp/wire_test287454637/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/BindInterfaceWithValue +=== CONT TestWire/FieldsOfStructDoNotProvidePtrToField + wire_test.go:108: /tmp/wire_test782919632/src/example.com/foo/wire.go:23:1: inject injectedMessagePtr: no provider found for *string, output of injector +=== CONT TestWire/BindInjectorArgPointer +=== CONT TestWire/FieldsOfStruct + 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 injectedMessage() string { + s := provideS() + string2 := s.Foo + return string2 + } === CONT TestWire/ValueChain -=== CONT TestWire/FieldsOfCycle - wire_test.go:108: /tmp/wire_test330470409/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/InterfaceBindingReuse -=== CONT TestWire/FuncArgProvider - wire_test.go:108: /tmp/wire_test591525403/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/MultipleMissingInputs === CONT TestWire/FieldsOfValueStruct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1327,11 +1466,8 @@ svc := newBazService() fmt.Println(svc.String()) } -=== CONT TestWire/MultipleBindings -=== CONT TestWire/EmptyVar - wire_test.go:108: /tmp/wire_test207642957/src/example.com/foo/wire.go:24:13: var example.com/foo.myFakeSet struct{} is not a provider or a provider set -=== CONT TestWire/MultipleArgsSameType -=== CONT TestWire/ExampleWithMocks +=== CONT TestWire/ValueConversion +=== CONT TestWire/ExportedValueDifferentPackage wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1340,48 +1476,21 @@ package main + import ( + "os" + ) + // Injectors from wire.go: - func initApp() *app { - mainTimer := _wireRealTimeValue - mainGreeter := greeter{ - T: mainTimer, - } - mainApp := &app{ - g: mainGreeter, - } - return mainApp + func injectedFile() *os.File { + file := _wireFileValue + return file } var ( - _wireRealTimeValue = realTime{} + _wireFileValue = os.Stdout ) - - func initMockedAppFromArgs(mt timer) *app { - mainGreeter := greeter{ - T: mt, - } - mainApp := &app{ - g: mainGreeter, - } - return mainApp - } - - func initMockedApp() *appWithMocks { - mainMockTimer := newMockTimer() - mainGreeter := greeter{ - T: mainMockTimer, - } - mainApp := app{ - g: mainGreeter, - } - mainAppWithMocks := &appWithMocks{ - app: mainApp, - mt: mainMockTimer, - } - return mainAppWithMocks - } -=== CONT TestWire/InvalidInjector +=== CONT TestWire/ProviderSetBindingMissingConcreteType === CONT TestWire/CopyOtherDecls wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1412,28 +1521,8 @@ func provideMessage() string { return "Hello, World!" } -=== CONT TestWire/InterfaceValueNotEnoughArgs -=== CONT TestWire/Cleanup - 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 injectBar() (*Bar, func()) { - foo, cleanup := provideFoo() - bar, cleanup2 := provideBar(foo) - return bar, func() { - cleanup2() - cleanup() - } - } -=== CONT TestWire/InterfaceValueInvalidArg0 -=== CONT TestWire/BindInterfaceWithValue +=== CONT TestWire/StructPointer +=== CONT TestWire/FieldsOfImportedStruct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1443,29 +1532,55 @@ package main import ( - "io" - "os" + "example.com/bar" + "example.com/baz" + "example.com/foo" + "fmt" ) // Injectors from wire.go: - func inject() io.Writer { - file := _wireFileValue - return file + func newBazService(config *baz.Config) *baz.Service { + fooConfig := config.Foo + service := foo.New(fooConfig) + barConfig := config.Bar + barService := bar.New(barConfig, service) + bazService := &baz.Service{ + Foo: service, + Bar: barService, + } + return bazService } - var ( - _wireFileValue = os.Stdout - ) -=== CONT TestWire/InterfaceValueDoesntImplement + // wire.go: + + func main() { + cfg := &baz.Config{ + Foo: &foo.Config{1}, + Bar: &bar.Config{2}, + } + svc := newBazService(cfg) + fmt.Println(svc.String()) + } +=== CONT TestWire/TwoDeps +=== CONT TestWire/Cycle + wire_test.go:108: /tmp/wire_test444987256/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/StructWithPreventTag +=== CONT TestWire/EmptyVar + wire_test.go:108: /tmp/wire_test143405373/src/example.com/foo/wire.go:24:13: var example.com/foo.myFakeSet struct{} is not a provider or a provider set === CONT TestWire/UnusedProviders - wire_test.go:108: /tmp/wire_test561689749/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused provider set "unusedSet" - wire_test.go:108: /tmp/wire_test561689749/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused provider "main.provideUnused" - wire_test.go:108: /tmp/wire_test561689749/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused value of type string - wire_test.go:108: /tmp/wire_test561689749/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_test561689749/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused field "example.com/foo.S".Cfg -=== CONT TestWire/InterfaceValue -=== CONT TestWire/Chain +=== CONT TestWire/FieldsOfCycle + wire_test.go:108: /tmp/wire_test834582777/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/Struct +=== CONT TestWire/BindInjectorArgPointer wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1476,13 +1591,12 @@ // Injectors from wire.go: - func injectFooBar() FooBar { - foo := provideFoo() - fooBar := provideFooBar(foo) - return fooBar + func inject(foo *Foo) *Bar { + bar := NewBar(foo) + return bar } -=== CONT TestWire/InjectorMissingError -=== CONT TestWire/ValueConversion +=== CONT TestWire/StructNotAStruct +=== CONT TestWire/Cleanup wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1493,15 +1607,15 @@ // Injectors from wire.go: - func injectedMessage() Foo { - foo := _wireFooValue - return foo + func injectBar() (*Bar, func()) { + foo, cleanup := provideFoo() + bar, cleanup2 := provideBar(foo) + return bar, func() { + cleanup2() + cleanup() + } } - - var ( - _wireFooValue = Foo("Hello, World!") - ) -=== CONT TestWire/InterfaceBindingNotEnoughArgs +=== CONT TestWire/ValueIsStruct === CONT TestWire/BuildTagsAllPackages wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1521,26 +1635,8 @@ var ( _wireStringValue = "Hello, World!" ) -=== CONT TestWire/InterfaceBindingInvalidArg0 -=== CONT TestWire/MultipleMissingInputs - wire_test.go:108: /tmp/wire_test598849075/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_test598849075/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_test598849075/src/example.com/foo/foo.go:29:6) - wire_test.go:108: /tmp/wire_test598849075/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_test598849075/src/example.com/foo/foo.go:29:6) - wire_test.go:108: /tmp/wire_test598849075/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_test598849075/src/example.com/foo/foo.go:37:6) - needed by example.com/foo.Zap in provider "provideZap" (/tmp/wire_test598849075/src/example.com/foo/foo.go:41:6) - needed by example.com/foo.Zop in provider "provideZop" (/tmp/wire_test598849075/src/example.com/foo/foo.go:45:6) -=== CONT TestWire/InterfaceBindingDoesntImplement -=== CONT TestWire/MultipleArgsSameType - wire_test.go:108: /tmp/wire_test625198301/src/example.com/foo/wire.go:25:8: multiple bindings for string - current: - <- argument b to injector function inject (/tmp/wire_test625198301/src/example.com/foo/wire.go:23:1) - previous: - <- argument a to injector function inject (/tmp/wire_test625198301/src/example.com/foo/wire.go:23:1) -=== CONT TestWire/InterfaceBinding -=== CONT TestWire/BindInjectorArgPointer +=== CONT TestWire/ValueIsInterfaceValue +=== CONT TestWire/ExampleWithMocks wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1551,50 +1647,47 @@ // Injectors from wire.go: - func inject(foo *Foo) *Bar { - bar := NewBar(foo) - return bar + func initApp() *app { + mainTimer := _wireRealTimeValue + mainGreeter := greeter{ + T: mainTimer, + } + mainApp := &app{ + g: mainGreeter, + } + return mainApp } -=== CONT TestWire/Struct -=== CONT TestWire/MultipleBindings - wire_test.go:108: /tmp/wire_test785576438/src/example.com/foo/wire.go:27:8: multiple bindings for example.com/foo.Foo - current: - <- provider "provideFooAgain" (/tmp/wire_test785576438/src/example.com/foo/foo.go:39:6) - previous: - <- provider "provideFoo" (/tmp/wire_test785576438/src/example.com/foo/foo.go:35:6) - wire_test.go:108: /tmp/wire_test785576438/src/example.com/foo/wire.go:32:8: multiple bindings for example.com/foo.Foo - current: - <- provider "provideFoo" (/tmp/wire_test785576438/src/example.com/foo/foo.go:35:6) - previous: - <- provider "provideFoo" (/tmp/wire_test785576438/src/example.com/foo/foo.go:35:6) - <- provider set "Set" (/tmp/wire_test785576438/src/example.com/foo/foo.go:31:11) - wire_test.go:108: /tmp/wire_test785576438/src/example.com/foo/wire.go:37:8: multiple bindings for example.com/foo.Foo - current: - <- provider "provideFoo" (/tmp/wire_test785576438/src/example.com/foo/foo.go:35:6) - previous: - <- provider "provideFoo" (/tmp/wire_test785576438/src/example.com/foo/foo.go:35:6) - <- provider set "Set" (/tmp/wire_test785576438/src/example.com/foo/foo.go:31:11) - <- provider set "SuperSet" (/tmp/wire_test785576438/src/example.com/foo/foo.go:32:16) - wire_test.go:108: /tmp/wire_test785576438/src/example.com/foo/foo.go:33:32: SetWithDuplicateBindings has multiple bindings for example.com/foo.Foo - current: - <- provider "provideFoo" (/tmp/wire_test785576438/src/example.com/foo/foo.go:35:6) - <- provider set "Set" (/tmp/wire_test785576438/src/example.com/foo/foo.go:31:11) - <- provider set "SuperSet" (/tmp/wire_test785576438/src/example.com/foo/foo.go:32:16) - previous: - <- provider "provideFoo" (/tmp/wire_test785576438/src/example.com/foo/foo.go:35:6) - <- provider set "Set" (/tmp/wire_test785576438/src/example.com/foo/foo.go:31:11) - wire_test.go:108: /tmp/wire_test785576438/src/example.com/foo/wire.go:47:8: multiple bindings for example.com/foo.Foo - current: - <- wire.Value (/tmp/wire_test785576438/src/example.com/foo/wire.go:47:42) - previous: - <- provider "provideFoo" (/tmp/wire_test785576438/src/example.com/foo/foo.go:35:6) - wire_test.go:108: /tmp/wire_test785576438/src/example.com/foo/wire.go:52:8: multiple bindings for example.com/foo.Bar - current: - <- wire.Bind (/tmp/wire_test785576438/src/example.com/foo/wire.go:52:31) - previous: - <- provider "provideBar" (/tmp/wire_test785576438/src/example.com/foo/foo.go:43:6) -=== CONT TestWire/StructPointer -=== CONT TestWire/InterfaceBindingReuse + + var ( + _wireRealTimeValue = realTime{} + ) + + func initMockedAppFromArgs(mt timer) *app { + mainGreeter := greeter{ + T: mt, + } + mainApp := &app{ + g: mainGreeter, + } + return mainApp + } + + func initMockedApp() *appWithMocks { + mainMockTimer := newMockTimer() + mainGreeter := greeter{ + T: mainMockTimer, + } + mainApp := app{ + g: mainGreeter, + } + mainAppWithMocks := &appWithMocks{ + app: mainApp, + mt: mainMockTimer, + } + return mainAppWithMocks + } +=== CONT TestWire/ReturnError +=== CONT TestWire/BindInterfaceWithValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1603,17 +1696,21 @@ package main + import ( + "io" + "os" + ) + // Injectors from wire.go: - func injectFooBar() FooBar { - bar := provideBar() - fooBar := provideFooBar(bar, bar) - return fooBar + func inject() io.Writer { + file := _wireFileValue + return file } -=== CONT TestWire/StructNotAStruct -=== CONT TestWire/ValueIsInterfaceValue - wire_test.go:108: /tmp/wire_test191030512/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/InjectWithPanic + + var ( + _wireFileValue = os.Stdout + ) === CONT TestWire/ValueChain wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1634,43 +1731,7 @@ var ( _wireFooValue = Foo(41) ) -=== CONT TestWire/InjectorMissingCleanup -=== CONT TestWire/InterfaceValueNotEnoughArgs - wire_test.go:108: /tmp/wire_test656706327/src/example.com/foo/wire.go:25:38: too few arguments in call to wire.InterfaceValue -=== CONT TestWire/InjectInputConflict -=== CONT TestWire/ValueFromFunctionScope - wire_test.go:108: /tmp/wire_test676633487/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/InjectInput -=== CONT TestWire/InterfaceBindingDoesntImplement - wire_test.go:108: /tmp/wire_test629202752/src/example.com/foo/wire.go:25:13: string does not implement example.com/foo.Fooer -=== CONT TestWire/UnexportedStruct -=== CONT TestWire/InterfaceBindingNotEnoughArgs - wire_test.go:108: /tmp/wire_test543363166/src/example.com/foo/wire.go:25:33: too few arguments in call to wire.Bind -=== CONT TestWire/UnexportedValue -=== 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/NoInjectParamNames -=== CONT TestWire/InterfaceValueInvalidArg0 - wire_test.go:108: /tmp/wire_test576283530/src/example.com/foo/wire.go:25:13: first argument to InterfaceValue must be a pointer to an interface type; found string -=== CONT TestWire/ReturnError -=== CONT TestWire/InterfaceBinding - 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 injectFooer() Fooer { - bar := provideBar() - return bar - } -=== CONT TestWire/ReturnArgumentAsInterface -=== CONT TestWire/StructPointer +=== CONT TestWire/Chain wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1681,28 +1742,12 @@ // Injectors from wire.go: - func injectFooBar() *FooBar { + func injectFooBar() FooBar { foo := provideFoo() - bar := provideBar() - fooBar := &FooBar{ - Foo: foo, - Bar: bar, - } + fooBar := provideFooBar(foo) return fooBar } - - func injectEmptyStruct() *Empty { - empty := &Empty{} - return empty - } === CONT TestWire/TwoDeps -=== CONT TestWire/InterfaceValueDoesntImplement - wire_test.go:108: /tmp/wire_test195289441/src/example.com/foo/wire.go:26:13: string does not implement io.Reader -=== CONT TestWire/InjectorMissingError - wire_test.go:108: /tmp/wire_test561123899/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/StructNotAStruct - wire_test.go:108: /tmp/wire_test381615220/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/InjectInput wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1713,14 +1758,13 @@ // Injectors from wire.go: - func injectFooBar(foo Foo) FooBar { + func injectFooBar() FooBar { + foo := provideFoo() bar := provideBar() fooBar := provideFooBar(foo, bar) return fooBar } -=== CONT TestWire/InjectorMissingCleanup - wire_test.go:108: /tmp/wire_test282365894/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/InterfaceValue +=== CONT TestWire/ValueConversion wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1729,32 +1773,16 @@ package main - import ( - "io" - "strings" - ) - // Injectors from wire.go: - func injectedReader() io.Reader { - reader := _wireReaderValue - return reader + func injectedMessage() Foo { + foo := _wireFooValue + return foo } var ( - _wireReaderValue = strings.NewReader("hello world") + _wireFooValue = Foo("Hello, World!") ) -=== CONT TestWire/InterfaceBindingInvalidArg0 - wire_test.go:108: /tmp/wire_test453665317/src/example.com/foo/wire.go:25:13: first argument to Bind must be a pointer to an interface type; found string -=== CONT TestWire/InjectInputConflict - wire_test.go:108: /tmp/wire_test537445997/src/example.com/foo/wire.go:24:2: multiple bindings for example.com/foo.Foo - current: - <- provider "provideFoo" (/tmp/wire_test537445997/src/example.com/foo/foo.go:37:6) - <- provider set "Set" (/tmp/wire_test537445997/src/example.com/foo/foo.go:33:11) - previous: - <- argument foo to injector function injectBar (/tmp/wire_test537445997/src/example.com/foo/wire.go:23:1) -=== CONT TestWire/UnexportedValue - wire_test.go:108: /tmp/wire_test954207834/src/example.com/foo/wire.go:24:1: inject injectedMessage: value string can't be used: uses unexported identifier privateMsg === CONT TestWire/Struct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1783,27 +1811,9 @@ } return fooBar } -=== 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/UnexportedStruct - wire_test.go:108: /tmp/wire_test150837031/src/example.com/foo/wire.go:26:17: foo not exported by package bar -=== CONT TestWire/ReturnArgumentAsInterface +=== CONT TestWire/StructNotAStruct + wire_test.go:108: /tmp/wire_test011413709/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/ExportedValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1813,15 +1823,24 @@ package main import ( - "fmt" + "example.com/bar" ) // Injectors from wire.go: - func injectStringer(s MyString) fmt.Stringer { - return s + func injectedMessage() string { + string2 := _wireStringValue + return string2 } -=== CONT TestWire/InjectWithPanic + + var ( + _wireStringValue = bar.PublicMsg + ) +=== CONT TestWire/StructWithPreventTag + wire_test.go:108: /tmp/wire_test380450644/src/example.com/foo/foo.go:45:2: "mu" is prevented from injecting by wire +=== CONT TestWire/ValueIsInterfaceValue + wire_test.go:108: /tmp/wire_test831860871/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/ReturnError wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1832,11 +1851,20 @@ // 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/NoInjectParamNames +=== CONT TestWire/UnusedProviders + wire_test.go:108: /tmp/wire_test377684131/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused provider set "unusedSet" + wire_test.go:108: /tmp/wire_test377684131/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused provider "main.provideUnused" + wire_test.go:108: /tmp/wire_test377684131/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused value of type string + wire_test.go:108: /tmp/wire_test377684131/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_test377684131/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused field "example.com/foo.S".Cfg +=== CONT TestWire/ValueIsStruct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1845,20 +1873,17 @@ package main - import ( - context2 "context" - ) - // 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 + func injectFoo() Foo { + foo := _wireFooValue + return foo } -=== CONT TestWire/TwoDeps + + var ( + _wireFooValue = Foo{X: 42} + ) +=== CONT TestWire/StructPointer wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1869,82 +1894,92 @@ // Injectors from wire.go: - func injectFooBar() FooBar { + func injectFooBar() *FooBar { foo := provideFoo() bar := provideBar() - fooBar := provideFooBar(foo, bar) + fooBar := &FooBar{ + Foo: foo, + Bar: bar, + } return fooBar } ---- PASS: TestWire (0.04s) - --- PASS: TestWire/NamingWorstCaseAllInOne (8.73s) - --- PASS: TestWire/ValueIsStruct (10.95s) - --- PASS: TestWire/ReservedKeywords (11.49s) - --- PASS: TestWire/ProviderSetBindingMissingConcreteType (12.15s) - --- PASS: TestWire/NamingWorstCase (12.19s) - --- PASS: TestWire/BindInjectorArg (12.20s) - --- PASS: TestWire/RelativePkg (12.21s) - --- PASS: TestWire/VarValue (12.24s) - --- PASS: TestWire/NoImplicitInterface (12.26s) - --- PASS: TestWire/NiladicIdentity (12.31s) - --- PASS: TestWire/NiladicValue (12.62s) - --- PASS: TestWire/MultipleSimilarPackages (12.97s) - --- PASS: TestWire/NoopBuild (13.52s) - --- PASS: TestWire/StructWithPreventTag (14.30s) - --- PASS: TestWire/Varargs (16.20s) - --- PASS: TestWire/PkgImport (8.29s) - --- PASS: TestWire/PartialCleanup (6.14s) - --- PASS: TestWire/FieldsOfStructDoNotProvidePtrToField (6.20s) - --- PASS: TestWire/FieldsOfStruct (6.44s) - --- PASS: TestWire/ImportedInterfaceBinding (19.10s) - --- PASS: TestWire/ExportedValue (7.01s) - --- PASS: TestWire/ExportedValueDifferentPackage (7.70s) - --- PASS: TestWire/FieldsOfImportedStruct (8.08s) - --- PASS: TestWire/Cycle (4.18s) - --- PASS: TestWire/Header (8.95s) - --- PASS: TestWire/FieldsOfStructPointer (8.28s) - --- PASS: TestWire/FieldsOfCycle (8.16s) - --- PASS: TestWire/FuncArgProvider (8.66s) - --- PASS: TestWire/FieldsOfValueStruct (9.62s) - --- PASS: TestWire/EmptyVar (7.73s) - --- PASS: TestWire/ExampleWithMocks (9.58s) - --- PASS: TestWire/CopyOtherDecls (6.58s) - --- PASS: TestWire/Cleanup (7.98s) - --- PASS: TestWire/BindInterfaceWithValue (6.64s) - --- PASS: TestWire/UnusedProviders (5.48s) - --- PASS: TestWire/Chain (7.44s) - --- PASS: TestWire/ValueConversion (5.45s) - --- PASS: TestWire/BuildTagsAllPackages (7.38s) - --- PASS: TestWire/MultipleMissingInputs (5.52s) - --- PASS: TestWire/MultipleArgsSameType (4.33s) - --- PASS: TestWire/BindInjectorArgPointer (6.56s) - --- PASS: TestWire/MultipleBindings (4.76s) - --- PASS: TestWire/InterfaceBindingReuse (6.45s) - --- PASS: TestWire/ValueIsInterfaceValue (9.38s) - --- PASS: TestWire/ValueChain (9.32s) - --- PASS: TestWire/InterfaceValueNotEnoughArgs (6.61s) - --- PASS: TestWire/ValueFromFunctionScope (10.38s) - --- PASS: TestWire/InterfaceBindingDoesntImplement (5.85s) - --- PASS: TestWire/InterfaceBindingNotEnoughArgs (7.42s) - --- PASS: TestWire/InvalidInjector (10.41s) - --- PASS: TestWire/InterfaceValueInvalidArg0 (8.68s) - --- PASS: TestWire/InterfaceBinding (7.59s) - --- PASS: TestWire/StructPointer (7.55s) - --- PASS: TestWire/InterfaceValueDoesntImplement (8.43s) - --- PASS: TestWire/InjectorMissingError (8.84s) - --- PASS: TestWire/StructNotAStruct (8.03s) - --- PASS: TestWire/InjectInput (5.48s) - --- PASS: TestWire/InjectorMissingCleanup (6.61s) - --- PASS: TestWire/InterfaceValue (10.67s) - --- PASS: TestWire/InterfaceBindingInvalidArg0 (10.70s) - --- PASS: TestWire/InjectInputConflict (7.06s) - --- PASS: TestWire/UnexportedValue (4.10s) - --- PASS: TestWire/Struct (10.92s) - --- PASS: TestWire/ReturnError (3.78s) - --- PASS: TestWire/UnexportedStruct (5.65s) - --- PASS: TestWire/ReturnArgumentAsInterface (4.25s) - --- PASS: TestWire/InjectWithPanic (9.02s) - --- PASS: TestWire/NoInjectParamNames (5.53s) - --- PASS: TestWire/TwoDeps (5.08s) + + func injectEmptyStruct() *Empty { + empty := &Empty{} + return empty + } +=== CONT TestWire/ProviderSetBindingMissingConcreteType + wire_test.go:108: /tmp/wire_test977388799/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" +--- PASS: TestWire (0.13s) + --- PASS: TestWire/InvalidInjector (10.94s) + --- PASS: TestWire/ReservedKeywords (11.35s) + --- PASS: TestWire/PartialCleanup (11.40s) + --- PASS: TestWire/BindInjectorArg (11.54s) + --- PASS: TestWire/NoInjectParamNames (11.88s) + --- PASS: TestWire/ReturnArgumentAsInterface (12.98s) + --- PASS: TestWire/VarValue (14.56s) + --- PASS: TestWire/Varargs (14.63s) + --- PASS: TestWire/UnexportedStruct (14.72s) + --- PASS: TestWire/UnexportedValue (14.75s) + --- PASS: TestWire/ValueFromFunctionScope (15.64s) + --- PASS: TestWire/RelativePkg (15.72s) + --- PASS: TestWire/NoopBuild (16.25s) + --- PASS: TestWire/PkgImport (16.50s) + --- PASS: TestWire/NoImplicitInterface (16.70s) + --- PASS: TestWire/MultipleBindings (5.43s) + --- PASS: TestWire/MultipleSimilarPackages (8.98s) + --- PASS: TestWire/MultipleMissingInputs (8.31s) + --- PASS: TestWire/NamingWorstCaseAllInOne (9.94s) + --- PASS: TestWire/MultipleArgsSameType (7.35s) + --- PASS: TestWire/InterfaceValueInvalidArg0 (7.43s) + --- PASS: TestWire/InterfaceBindingReuse (6.75s) + --- PASS: TestWire/InterfaceBindingNotEnoughArgs (7.08s) + --- PASS: TestWire/InterfaceValueNotEnoughArgs (9.42s) + --- PASS: TestWire/InterfaceValueDoesntImplement (8.53s) + --- PASS: TestWire/NiladicValue (13.46s) + --- PASS: TestWire/InterfaceBindingInvalidArg0 (8.07s) + --- PASS: TestWire/InterfaceValue (11.10s) + --- PASS: TestWire/NamingWorstCase (15.32s) + --- PASS: TestWire/NiladicIdentity (16.21s) + --- PASS: TestWire/InterfaceBindingDoesntImplement (7.83s) + --- PASS: TestWire/InjectInputConflict (7.56s) + --- PASS: TestWire/InjectorMissingError (8.86s) + --- PASS: TestWire/InjectWithPanic (8.20s) + --- PASS: TestWire/ImportedInterfaceBinding (6.96s) + --- PASS: TestWire/Header (7.45s) + --- PASS: TestWire/InjectInput (8.92s) + --- PASS: TestWire/InterfaceBinding (11.45s) + --- PASS: TestWire/FuncArgProvider (8.25s) + --- PASS: TestWire/FieldsOfStructPointer (8.25s) + --- PASS: TestWire/InjectorMissingCleanup (12.10s) + --- PASS: TestWire/FieldsOfStructDoNotProvidePtrToField (7.87s) + --- PASS: TestWire/FieldsOfStruct (8.81s) + --- PASS: TestWire/FieldsOfValueStruct (11.49s) + --- PASS: TestWire/ExportedValueDifferentPackage (6.61s) + --- PASS: TestWire/CopyOtherDecls (6.44s) + --- PASS: TestWire/FieldsOfImportedStruct (11.05s) + --- PASS: TestWire/Cycle (7.31s) + --- PASS: TestWire/EmptyVar (8.73s) + --- PASS: TestWire/FieldsOfCycle (12.35s) + --- PASS: TestWire/BindInjectorArgPointer (6.95s) + --- PASS: TestWire/Cleanup (9.79s) + --- PASS: TestWire/BuildTagsAllPackages (9.60s) + --- PASS: TestWire/ExampleWithMocks (13.38s) + --- PASS: TestWire/BindInterfaceWithValue (10.61s) + --- PASS: TestWire/ValueChain (8.86s) + --- PASS: TestWire/Chain (12.62s) + --- PASS: TestWire/TwoDeps (6.52s) + --- PASS: TestWire/ValueConversion (9.31s) + --- PASS: TestWire/Struct (6.01s) + --- PASS: TestWire/StructNotAStruct (5.64s) + --- PASS: TestWire/ExportedValue (17.46s) + --- PASS: TestWire/StructWithPreventTag (9.29s) + --- PASS: TestWire/ValueIsInterfaceValue (5.94s) + --- PASS: TestWire/ReturnError (5.13s) + --- PASS: TestWire/UnusedProviders (9.52s) + --- PASS: TestWire/ValueIsStruct (7.22s) + --- PASS: TestWire/StructPointer (11.33s) + --- PASS: TestWire/ProviderSetBindingMissingConcreteType (13.63s) === RUN TestUnexport --- PASS: TestUnexport (0.00s) === RUN TestExport @@ -2000,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 39.694s +ok github.com/google/wire/internal/wire 50.459s create-stamp debian/debhelper-build-stamp dh_testroot -O--builddirectory=_build -O--buildsystem=golang dh_prep -O--builddirectory=_build -O--buildsystem=golang @@ -2041,8 +2076,8 @@ dpkg-gencontrol: warning: Depends field of package google-wire: substitution variable ${shlibs:Depends} used, but is not defined dh_md5sums -O--builddirectory=_build -O--buildsystem=golang dh_builddeb -O--builddirectory=_build -O--buildsystem=golang -dpkg-deb: building package 'google-wire' in '../google-wire_0.4.0-3_amd64.deb'. dpkg-deb: building package 'golang-github-google-wire-dev' in '../golang-github-google-wire-dev_0.4.0-3_all.deb'. +dpkg-deb: building package 'google-wire' in '../google-wire_0.4.0-3_amd64.deb'. dpkg-genbuildinfo --build=binary dpkg-genchanges --build=binary >../golang-github-google-wire_0.4.0-3_amd64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -2050,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/1298922/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1298922/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/2781479 and its subdirectories -I: Current time: Sun Feb 26 08:05:43 -12 2023 -I: pbuilder-time-stamp: 1677441943 +I: removing directory /srv/workspace/pbuilder/1298922 and its subdirectories +I: Current time: Tue Jan 25 03:46:00 +14 2022 +I: pbuilder-time-stamp: 1643031960