Diff of the two buildlogs: -- --- b1/build.log 2024-05-16 13:19:20.056430600 +0000 +++ b2/build.log 2024-05-16 13:20:31.293401059 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed Jun 18 07:40:32 -12 2025 -I: pbuilder-time-stamp: 1750275632 +I: Current time: Fri May 17 03:19:23 +14 2024 +I: pbuilder-time-stamp: 1715865563 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -29,52 +29,84 @@ dpkg-source: info: applying 0002-update-record-replay-files-for-go1.18.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/3362933/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/2325779/tmp/hooks/D01_modify_environment starting +debug: Running on codethink02-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 +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 May 16 13:19 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/2325779/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/2325779/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="21" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.21(1)-release' + BUILDDIR=/build/reproducible-path + 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 parallel=12 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='b0c82d70a38a43188e789fc7ba7c93b8' - 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='3362933' - PS1='# ' - PS2='> ' + INVOCATION_ID=2699681849284dcd8b20d4ae2c406651 + 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=2325779 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.Zo7SdJwv/pbuilderrc_TzLy --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.Zo7SdJwv/b1 --logfile b1/build.log golang-github-google-wire_0.5.0-2.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4: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/r-b-build.Zo7SdJwv/pbuilderrc_wTNB --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.Zo7SdJwv/b2 --logfile b2/build.log golang-github-google-wire_0.5.0-2.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink03-arm64 6.1.0-21-cloud-arm64 #1 SMP Debian 6.1.90-1 (2024-05-03) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-21-cloud-arm64 #1 SMP Debian 6.1.90-1 (2024-05-03) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Jun 18 17:46 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/3362933/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 May 15 11:24 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/2325779/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -173,7 +205,7 @@ Get: 47 http://deb.debian.org/debian trixie/main arm64 golang-golang-x-net-dev all 1:0.24.0+dfsg-1 [895 kB] Get: 48 http://deb.debian.org/debian trixie/main arm64 golang-golang-x-sync-dev all 0.6.0-1 [18.5 kB] Get: 49 http://deb.debian.org/debian trixie/main arm64 golang-golang-x-tools-dev all 1:0.19.0+ds-1 [1566 kB] -Fetched 67.8 MB in 1s (121 MB/s) +Fetched 67.8 MB in 0s (221 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (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 ... 19744 files and directories currently installed.) @@ -384,7 +416,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/golang-github-google-wire-0.5.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.5.0-2_source.changes +I: user script /srv/workspace/pbuilder/2325779/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/2325779/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/golang-github-google-wire-0.5.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.5.0-2_source.changes dpkg-buildpackage: info: source package golang-github-google-wire dpkg-buildpackage: info: source version 0.5.0-2 dpkg-buildpackage: info: source distribution unstable @@ -403,92 +439,92 @@ 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 12 github.com/google/wire github.com/google/wire/cmd/wire github.com/google/wire/internal/wire -internal/coverage/rtcov +internal/unsafeheader internal/goarch -internal/godebugs -github.com/google/wire +internal/coverage/rtcov internal/goos +github.com/google/wire internal/race -internal/cpu -runtime/internal/math encoding -internal/goexperiment -internal/chacha8rand -internal/abi -internal/unsafeheader -internal/itoa runtime/internal/syscall +internal/cpu +internal/itoa +internal/godebugs +internal/abi sync/atomic -math/bits +internal/goexperiment +internal/chacha8rand +runtime/internal/math +runtime/internal/sys unicode/utf8 +math/bits unicode cmp internal/goversion -runtime/internal/sys unicode/utf16 +internal/gover internal/platform log/internal -internal/gover -math -slices golang.org/x/tools/internal/packagesinternal internal/bytealg runtime/internal/atomic +slices +math runtime -sync internal/reflectlite +sync internal/testlog internal/bisect -internal/godebug errors sort +internal/godebug internal/oserror -strconv +path io internal/safefilepath -path -math/rand +strconv syscall -container/heap -golang.org/x/mod/semver -strings -bytes +math/rand text/tabwriter +bytes hash -reflect -internal/types/errors +strings +container/heap +golang.org/x/mod/semver crypto -go/build/constraint +internal/types/errors +reflect +go/version bufio +go/build/constraint regexp/syntax -go/version -time internal/syscall/execenv +time internal/syscall/unix regexp context -internal/poll io/fs -os +internal/poll internal/fmtsort encoding/binary +os encoding/base64 crypto/md5 -fmt -path/filepath internal/lazyregexp io/ioutil +path/filepath +fmt os/exec +internal/goroot flag go/token -go/doc/comment -math/big internal/buildcfg golang.org/x/tools/internal/event/label -encoding/json +go/doc/comment log github.com/pmezard/go-difflib/difflib -internal/goroot +encoding/json +math/big golang.org/x/tools/internal/event/keys go/scanner golang.org/x/tools/internal/tokeninternal @@ -507,8 +543,8 @@ go/constant golang.org/x/tools/internal/pkgbits go/format -go/types go/build +go/types golang.org/x/tools/internal/aliases golang.org/x/tools/internal/versions golang.org/x/tools/internal/typesinternal @@ -666,18 +702,18 @@ === RUN TestWire/Varargs === PAUSE TestWire/Varargs === CONT TestWire/BindInjectorArg -=== CONT TestWire/FieldsOfStructPointer === CONT TestWire/InterfaceValueNotEnoughArgs -=== CONT TestWire/ReservedKeywords -=== CONT TestWire/FieldsOfStructDoNotProvidePtrToField -=== CONT TestWire/RelativePkg -=== CONT TestWire/Varargs -=== CONT TestWire/InterfaceValueInvalidArg0 -=== CONT TestWire/ProviderSetBindingMissingConcreteType -=== CONT TestWire/FieldsOfStruct +=== CONT TestWire/FieldsOfValueStruct +=== CONT TestWire/InterfaceBinding +=== CONT TestWire/InjectorMissingError +=== CONT TestWire/EmptyVar === CONT TestWire/FieldsOfImportedStruct +=== CONT TestWire/ExportedValueDifferentPackage === CONT TestWire/FieldsOfCycle -=== NAME TestWire/Varargs +=== CONT TestWire/FieldsOfStructDoNotProvidePtrToField +=== CONT TestWire/FieldsOfStruct +=== CONT TestWire/FieldsOfStructPointer +=== NAME TestWire/ExportedValueDifferentPackage wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -687,14 +723,29 @@ package main + import ( + "os" + ) + // Injectors from wire.go: - func injectedMessage(t title, lines ...string) string { - string2 := provideMessage(lines...) - return string2 + func injectedFile() *os.File { + file := _wireFileValue + return file } -=== CONT TestWire/ExportedValueDifferentPackage -=== NAME TestWire/BindInjectorArg + + var ( + _wireFileValue = os.Stdout + ) +=== CONT TestWire/ReservedKeywords +=== NAME TestWire/FieldsOfCycle + wire_test.go:108: /tmp/wire_test892963880/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/Varargs +=== NAME TestWire/InterfaceBinding wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -706,18 +757,12 @@ // Injectors from wire.go: - func inject(foo Foo) *Bar { - bar := NewBar(foo) + func injectFooer() Fooer { + bar := provideBar() return bar } -=== CONT TestWire/ExportedValue -=== NAME TestWire/FieldsOfStructDoNotProvidePtrToField - wire_test.go:108: /tmp/wire_test2591132964/src/example.com/foo/wire.go:23:1: inject injectedMessagePtr: no provider found for *string, output of injector -=== CONT TestWire/ExampleWithMocks -=== NAME TestWire/ProviderSetBindingMissingConcreteType - wire_test.go:108: /tmp/wire_test4221651494/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/EmptyVar -=== NAME TestWire/RelativePkg +=== CONT TestWire/VarValue +=== NAME TestWire/BindInjectorArg wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -729,12 +774,12 @@ // Injectors from wire.go: - func injectedMessage() string { - string2 := provideMessage() - return string2 + func inject(foo Foo) *Bar { + bar := NewBar(foo) + return bar } -=== CONT TestWire/DocComment -=== NAME TestWire/FieldsOfStruct +=== CONT TestWire/ValueIsStruct +=== NAME TestWire/FieldsOfStructPointer wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -751,7 +796,13 @@ string2 := s.Foo return string2 } -=== CONT TestWire/Cycle + + func injectedMessagePtr() *string { + s := provideS() + string2 := &s.Foo + return string2 + } +=== CONT TestWire/ValueIsInterfaceValue === NAME TestWire/FieldsOfImportedStruct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -793,15 +844,17 @@ svc := newBazService(cfg) fmt.Println(svc.String()) } -=== CONT TestWire/CopyOtherDecls -=== NAME TestWire/FieldsOfCycle - wire_test.go:108: /tmp/wire_test2579889889/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 -=== NAME TestWire/FieldsOfStructPointer +=== CONT TestWire/ValueFromFunctionScope +=== NAME TestWire/EmptyVar + wire_test.go:108: /tmp/wire_test107616878/src/example.com/foo/wire.go:24:13: var example.com/foo.myFakeSet struct{} is not a provider or a provider set +=== CONT TestWire/ValueConversion +=== NAME TestWire/InjectorMissingError + wire_test.go:108: /tmp/wire_test1588254855/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/ValueChain +=== NAME TestWire/FieldsOfStructDoNotProvidePtrToField + wire_test.go:108: /tmp/wire_test3973918397/src/example.com/foo/wire.go:23:1: inject injectedMessagePtr: no provider found for *string, output of injector +=== CONT TestWire/UnusedProviders +=== NAME TestWire/FieldsOfStruct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -818,47 +871,13 @@ string2 := s.Foo return string2 } - - func injectedMessagePtr() *string { - s := provideS() - string2 := &s.Foo - return string2 - } -=== CONT TestWire/Chain -=== NAME TestWire/InterfaceValueInvalidArg0 - wire_test.go:108: /tmp/wire_test363176648/src/example.com/foo/wire.go:25:13: first argument to InterfaceValue must be a pointer to an interface type; found string -=== CONT TestWire/BuildTagsAllPackages +=== CONT TestWire/UnexportedValue === NAME TestWire/InterfaceValueNotEnoughArgs - wire_test.go:108: /tmp/wire_test3015937854/src/example.com/foo/wire.go:25:38: not enough arguments in call to wire.InterfaceValue + wire_test.go:108: /tmp/wire_test200288426/src/example.com/foo/wire.go:25:38: not enough arguments in call to wire.InterfaceValue have (string) want (interface{}, interface{}) -=== CONT TestWire/BindInterfaceWithValue -=== NAME TestWire/ReservedKeywords - wire_test.go:164: wire_gen.go: - // Code generated by Wire. DO NOT EDIT. - - //go:generate go run github.com/google/wire/cmd/wire - //go:build !wireinject - // +build !wireinject - - package main - - // Injectors from wire.go: - - func injectInterface() Interface { - select2 := provideSelect() - mainInterface := provideInterface(select2) - return mainInterface - } - - // 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/BindInjectorArgPointer -=== NAME TestWire/ExportedValueDifferentPackage +=== CONT TestWire/UnexportedStruct +=== NAME TestWire/FieldsOfValueStruct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -869,79 +888,42 @@ package main import ( - "os" - ) - - // Injectors from wire.go: - - func injectedFile() *os.File { - file := _wireFileValue - return file - } - - var ( - _wireFileValue = os.Stdout + "example.com/bar" + "example.com/baz" + "example.com/foo" + "fmt" ) -=== CONT TestWire/UnexportedStruct -=== NAME TestWire/ExampleWithMocks - wire_test.go:164: wire_gen.go: - // Code generated by Wire. DO NOT EDIT. - - //go:generate go run github.com/google/wire/cmd/wire - //go:build !wireinject - // +build !wireinject - - package main // Injectors from wire.go: - // initApp returns a real app. - func initApp() *app { - mainTimer := _wireRealTimeValue - mainGreeter := greeter{ - T: mainTimer, - } - mainApp := &app{ - g: mainGreeter, + 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 mainApp + return bazService } var ( - _wireRealTimeValue = realTime{} + _wireConfigValue = &baz.Config{ + Foo: &foo.Config{1}, + Bar: &bar.Config{2}, + } ) - // initMockedAppFromArgs returns an app with mocked dependencies provided via - // arguments (Approach A). Note that the argument's type is the interface - // type (timer), but the concrete mock type should be passed. - func initMockedAppFromArgs(mt timer) *app { - mainGreeter := greeter{ - T: mt, - } - mainApp := &app{ - g: mainGreeter, - } - return mainApp - } + // wire.go: - // initMockedApp returns an app with its mocked dependencies, created - // via providers (Approach B). - func initMockedApp() *appWithMocks { - mainMockTimer := newMockTimer() - mainGreeter := greeter{ - T: mainMockTimer, - } - mainApp := app{ - g: mainGreeter, - } - mainAppWithMocks := &appWithMocks{ - app: mainApp, - mt: mainMockTimer, - } - return mainAppWithMocks + func main() { + svc := newBazService() + fmt.Println(svc.String()) } -=== CONT TestWire/VarValue -=== NAME TestWire/CopyOtherDecls +=== CONT TestWire/TwoDeps +=== NAME TestWire/ReservedKeywords wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -951,29 +933,28 @@ package main - import ( - "fmt" - ) - - // Injectors from foo.go: + // Injectors from wire.go: - func injectedMessage() string { - string2 := provideMessage() - return string2 + func injectInterface() Interface { + select2 := provideSelect() + mainInterface := provideInterface(select2) + return mainInterface } - // foo.go: - - func main() { - fmt.Println(injectedMessage()) - } + // wire.go: - // provideMessage provides a friendly user greeting. - func provideMessage() string { - return "Hello, World!" - } -=== CONT TestWire/ValueIsStruct -=== NAME TestWire/ExportedValue + // 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/StructWithPreventTag +=== NAME TestWire/ValueFromFunctionScope + wire_test.go:108: /tmp/wire_test1863957007/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/StructPointer +=== NAME TestWire/UnexportedStruct + wire_test.go:108: /tmp/wire_test3045838551/src/example.com/foo/wire.go:26:17: foo not exported by package bar +=== CONT TestWire/StructNotAStruct +=== NAME TestWire/ValueIsStruct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -983,22 +964,18 @@ package main - import ( - "example.com/bar" - ) - // Injectors from wire.go: - func injectedMessage() string { - string2 := _wireStringValue - return string2 + func injectFoo() Foo { + foo := _wireFooValue + return foo } var ( - _wireStringValue = bar.PublicMsg + _wireFooValue = Foo{X: 42} ) -=== CONT TestWire/ValueIsInterfaceValue -=== NAME TestWire/DocComment +=== CONT TestWire/Struct +=== NAME TestWire/VarValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1010,19 +987,23 @@ // Injectors from wire.go: - /* blockComment returns Foo and has a /*- style doc comment */ - func blockComment() *Foo { - foo := &Foo{} - return foo + func injectedMessage() string { + string2 := _wireStringValue + return string2 } - // lineComment returns Bar and has a //- style doc comment - func lineComment() *Bar { - bar := &Bar{} - return bar - } -=== CONT TestWire/ValueFromFunctionScope -=== NAME TestWire/Cleanup + var ( + _wireStringValue = msg + ) +=== CONT TestWire/ReturnError +=== NAME TestWire/UnusedProviders + wire_test.go:108: /tmp/wire_test521962472/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused provider set "unusedSet" + wire_test.go:108: /tmp/wire_test521962472/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused provider "main.provideUnused" + wire_test.go:108: /tmp/wire_test521962472/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused value of type string + wire_test.go:108: /tmp/wire_test521962472/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_test521962472/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused field "example.com/foo.S".Cfg +=== CONT TestWire/ReturnArgumentAsInterface +=== NAME TestWire/ValueChain wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1034,16 +1015,17 @@ // Injectors from wire.go: - func injectBar() (*Bar, func()) { - foo, cleanup := provideFoo() - bar, cleanup2 := provideBar(foo) - return bar, func() { - cleanup2() - cleanup() - } + func injectFooBar() FooBar { + foo := _wireFooValue + fooBar := provideFooBar(foo) + return fooBar } -=== CONT TestWire/ValueConversion -=== NAME TestWire/Chain + + var ( + _wireFooValue = Foo(41) + ) +=== CONT TestWire/Cleanup +=== NAME TestWire/TwoDeps wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1057,21 +1039,12 @@ func injectFooBar() FooBar { foo := provideFoo() - fooBar := provideFooBar(foo) + bar := provideBar() + fooBar := provideFooBar(foo, bar) return fooBar } -=== CONT TestWire/ValueChain -=== NAME TestWire/Cycle - wire_test.go:108: /tmp/wire_test759781143/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/UnusedProviders -=== NAME TestWire/EmptyVar - wire_test.go:108: /tmp/wire_test1776997652/src/example.com/foo/wire.go:24:13: var example.com/foo.myFakeSet struct{} is not a provider or a provider set -=== CONT TestWire/UnexportedValue -=== NAME TestWire/BuildTagsAllPackages +=== CONT TestWire/DocComment +=== NAME TestWire/Varargs wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1083,16 +1056,18 @@ // Injectors from wire.go: - func injectedMessage() string { - string2 := _wireStringValue + func injectedMessage(t title, lines ...string) string { + string2 := provideMessage(lines...) return string2 } - - var ( - _wireStringValue = "Hello, World!" - ) -=== CONT TestWire/NamingWorstCase -=== NAME TestWire/BindInterfaceWithValue +=== CONT TestWire/Cycle +=== NAME TestWire/ValueIsInterfaceValue + wire_test.go:108: /tmp/wire_test913412369/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/CopyOtherDecls +=== NAME TestWire/UnexportedValue + wire_test.go:108: /tmp/wire_test694799669/src/example.com/foo/wire.go:24:1: inject injectedMessage: value string can't be used: uses unexported identifier privateMsg +=== CONT TestWire/InterfaceBindingReuse +=== NAME TestWire/ValueConversion wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1102,23 +1077,21 @@ package main - import ( - "io" - "os" - ) - // Injectors from wire.go: - func inject() io.Writer { - file := _wireFileValue - return file + func injectedMessage() Foo { + foo := _wireFooValue + return foo } var ( - _wireFileValue = os.Stdout + _wireFooValue = Foo("Hello, World!") ) -=== CONT TestWire/PkgImport -=== NAME TestWire/BindInjectorArgPointer +=== CONT TestWire/InterfaceValueInvalidArg0 +=== NAME TestWire/StructWithPreventTag + wire_test.go:108: /tmp/wire_test3794041846/src/example.com/foo/foo.go:45:2: "mu" is prevented from injecting by wire +=== CONT TestWire/InterfaceValueDoesntImplement +=== NAME TestWire/ReturnArgumentAsInterface wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1128,41 +1101,17 @@ package main - // Injectors from wire.go: - - func inject(foo *Foo) *Bar { - bar := NewBar(foo) - return bar - } -=== CONT TestWire/PartialCleanup -=== NAME TestWire/UnexportedStruct - wire_test.go:108: /tmp/wire_test2503206615/src/example.com/foo/wire.go:26:17: foo not exported by package bar -=== CONT TestWire/NoopBuild -=== NAME TestWire/VarValue - wire_test.go:164: wire_gen.go: - // Code generated by Wire. DO NOT EDIT. - - //go:generate go run github.com/google/wire/cmd/wire - //go:build !wireinject - // +build !wireinject - - package main + import ( + "fmt" + ) // Injectors from wire.go: - func injectedMessage() string { - string2 := _wireStringValue - return string2 + func injectStringer(s MyString) fmt.Stringer { + return s } - - var ( - _wireStringValue = msg - ) -=== CONT TestWire/NoInjectParamNames -=== NAME TestWire/ValueFromFunctionScope - wire_test.go:108: /tmp/wire_test1656004886/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/NoImplicitInterface -=== NAME TestWire/ValueConversion +=== CONT TestWire/InterfaceValue +=== NAME TestWire/Struct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1174,16 +1123,25 @@ // Injectors from wire.go: - func injectedMessage() Foo { - foo := _wireFooValue - return foo + func injectFooBar() FooBar { + foo := provideFoo() + bar := provideBar() + fooBar := FooBar{ + Foo: foo, + Bar: bar, + } + return fooBar } - var ( - _wireFooValue = Foo("Hello, World!") - ) -=== CONT TestWire/NiladicValue -=== NAME TestWire/ValueIsStruct + func injectPartFooBar() FooBar { + foo := provideFoo() + fooBar := FooBar{ + Foo: foo, + } + return fooBar + } +=== CONT TestWire/ExampleWithMocks +=== NAME TestWire/Cleanup wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1195,22 +1153,16 @@ // Injectors from wire.go: - func injectFoo() Foo { - foo := _wireFooValue - return foo + func injectBar() (*Bar, func()) { + foo, cleanup := provideFoo() + bar, cleanup2 := provideBar(foo) + return bar, func() { + cleanup2() + cleanup() + } } - - var ( - _wireFooValue = Foo{X: 42} - ) -=== CONT TestWire/NiladicIdentity -=== NAME TestWire/ValueIsInterfaceValue - wire_test.go:108: /tmp/wire_test2411244998/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/NamingWorstCaseAllInOne -=== NAME TestWire/UnexportedValue - wire_test.go:108: /tmp/wire_test3228704672/src/example.com/foo/wire.go:24:1: inject injectedMessage: value string can't be used: uses unexported identifier privateMsg -=== CONT TestWire/InvalidInjector -=== NAME TestWire/NamingWorstCase +=== CONT TestWire/ExportedValue +=== NAME TestWire/ReturnError wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1220,21 +1172,30 @@ package main - import ( - context2 "context" - ) - // Injectors from wire.go: - func inject(context3 context2.Context, err2 struct{}) (context, error) { - mainContext, err := provide(context3) + func injectFoo() (Foo, error) { + foo, err := provideFoo() if err != nil { - return context{}, err + return 0, err } - return mainContext, nil + return foo, nil } -=== CONT TestWire/MultipleSimilarPackages -=== NAME TestWire/ValueChain +=== CONT TestWire/InterfaceBindingInvalidArg0 +=== NAME TestWire/StructNotAStruct + wire_test.go:108: /tmp/wire_test1348539660/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/InterfaceBindingNotEnoughArgs +=== NAME TestWire/InterfaceValueInvalidArg0 + wire_test.go:108: /tmp/wire_test4088378110/src/example.com/foo/wire.go:25:13: first argument to InterfaceValue must be a pointer to an interface type; found string +=== CONT TestWire/InterfaceBindingDoesntImplement +=== NAME TestWire/Cycle + wire_test.go:108: /tmp/wire_test2433910397/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/BuildTagsAllPackages +=== NAME TestWire/StructPointer wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1246,24 +1207,22 @@ // Injectors from wire.go: - func injectFooBar() FooBar { - foo := _wireFooValue - fooBar := provideFooBar(foo) + func injectFooBar() *FooBar { + foo := provideFoo() + bar := provideBar() + fooBar := &FooBar{ + Foo: foo, + Bar: bar, + } return fooBar } - var ( - _wireFooValue = Foo(41) - ) -=== CONT TestWire/MultipleMissingInputs -=== NAME TestWire/UnusedProviders - wire_test.go:108: /tmp/wire_test2816529578/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused provider set "unusedSet" - wire_test.go:108: /tmp/wire_test2816529578/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused provider "main.provideUnused" - wire_test.go:108: /tmp/wire_test2816529578/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused value of type string - wire_test.go:108: /tmp/wire_test2816529578/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_test2816529578/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused field "example.com/foo.S".Cfg -=== CONT TestWire/MultipleBindings -=== NAME TestWire/PkgImport + func injectEmptyStruct() *Empty { + empty := &Empty{} + return empty + } +=== CONT TestWire/Chain +=== NAME TestWire/CopyOtherDecls wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1274,55 +1233,28 @@ package main import ( - "example.com/bar" - ) - - import ( - _ "example.com/anon1" - _ "example.com/anon2" + "fmt" ) - // Injectors from wire.go: + // Injectors from foo.go: - func injectFooBar() FooBar { - foo := provideFoo() - barBar := bar.ProvideBar() - fooBar := provideFooBar(foo, barBar) - return fooBar + func injectedMessage() string { + string2 := provideMessage() + return string2 } -=== CONT TestWire/MultipleArgsSameType -=== NAME TestWire/PartialCleanup - wire_test.go:164: wire_gen.go: - // Code generated by Wire. DO NOT EDIT. - - //go:generate go run github.com/google/wire/cmd/wire - //go:build !wireinject - // +build !wireinject - package main + // foo.go: - // Injectors from wire.go: + func main() { + fmt.Println(injectedMessage()) + } - 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 + // provideMessage provides a friendly user greeting. + func provideMessage() string { + return "Hello, World!" } -=== CONT TestWire/InjectorMissingCleanup -=== NAME TestWire/NoInjectParamNames +=== CONT TestWire/NamingWorstCaseAllInOne +=== NAME TestWire/DocComment wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1332,21 +1264,21 @@ 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 + /* blockComment returns Foo and has a /*- style doc comment */ + func blockComment() *Foo { + foo := &Foo{} + return foo } -=== CONT TestWire/InterfaceValueDoesntImplement -=== NAME TestWire/NiladicValue + + // lineComment returns Bar and has a //- style doc comment + func lineComment() *Bar { + bar := &Bar{} + return bar + } +=== CONT TestWire/RelativePkg +=== NAME TestWire/InterfaceBindingReuse wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1358,20 +1290,13 @@ // Injectors from wire.go: - func injectedMessage() string { - string2 := _wireStringValue - return string2 + func injectFooBar() FooBar { + bar := provideBar() + fooBar := provideFooBar(bar, bar) + return fooBar } - - var ( - _wireStringValue = "Hello, World!" - ) -=== CONT TestWire/InterfaceValue -=== CONT TestWire/InterfaceBindingReuse -=== NAME TestWire/NoImplicitInterface - wire_test.go:108: /tmp/wire_test3622077656/src/example.com/foo/wire.go:23:1: inject injectFooer: no provider found for example.com/foo.Fooer, output of injector -=== CONT TestWire/InterfaceBindingNotEnoughArgs -=== NAME TestWire/MultipleSimilarPackages +=== CONT TestWire/ProviderSetBindingMissingConcreteType +=== NAME TestWire/ExampleWithMocks wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1381,119 +1306,58 @@ package main - import ( - "example.com/bar" - "example.com/baz" - "example.com/foo" - "fmt" - ) - // 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, + // initApp returns a real app. + func initApp() *app { + mainTimer := _wireRealTimeValue + mainGreeter := greeter{ + T: mainTimer, } - return mainService - } - - // wire.go: - - type MainConfig struct { - Foo *foo.Config - Bar *bar.Config - baz *baz.Config + mainApp := &app{ + g: mainGreeter, + } + return mainApp } - type MainService struct { - Foo *foo.Service - Bar *bar.Service - baz *baz.Service - } + var ( + _wireRealTimeValue = realTime{} + ) - func (m *MainService) String() string { - return fmt.Sprintf("%d %d %d", m.Foo.Cfg.V, m.Bar.Cfg.V, m.baz.Cfg.V) + // initMockedAppFromArgs returns an app with mocked dependencies provided via + // arguments (Approach A). Note that the argument's type is the interface + // type (timer), but the concrete mock type should be passed. + func initMockedAppFromArgs(mt timer) *app { + mainGreeter := greeter{ + T: mt, + } + mainApp := &app{ + g: mainGreeter, + } + return mainApp } - func main() { - cfg := MainConfig{ - Foo: &foo.Config{1}, - Bar: &bar.Config{2}, - baz: &baz.Config{3}, + // initMockedApp returns an app with its mocked dependencies, created + // via providers (Approach B). + func initMockedApp() *appWithMocks { + mainMockTimer := newMockTimer() + mainGreeter := greeter{ + T: mainMockTimer, } - svc := newMainService(cfg) - fmt.Println(svc.String()) + mainApp := app{ + g: mainGreeter, + } + mainAppWithMocks := &appWithMocks{ + app: mainApp, + mt: mainMockTimer, + } + return mainAppWithMocks } -=== CONT TestWire/InterfaceBindingInvalidArg0 -=== NAME TestWire/MultipleBindings - wire_test.go:108: /tmp/wire_test1034861280/src/example.com/foo/wire.go:27:8: multiple bindings for example.com/foo.Foo - current: - <- provider "provideFooAgain" (/tmp/wire_test1034861280/src/example.com/foo/foo.go:39:6) - previous: - <- provider "provideFoo" (/tmp/wire_test1034861280/src/example.com/foo/foo.go:35:6) - wire_test.go:108: /tmp/wire_test1034861280/src/example.com/foo/wire.go:32:8: multiple bindings for example.com/foo.Foo - current: - <- provider "provideFoo" (/tmp/wire_test1034861280/src/example.com/foo/foo.go:35:6) - previous: - <- provider "provideFoo" (/tmp/wire_test1034861280/src/example.com/foo/foo.go:35:6) - <- provider set "Set" (/tmp/wire_test1034861280/src/example.com/foo/foo.go:31:11) - wire_test.go:108: /tmp/wire_test1034861280/src/example.com/foo/wire.go:37:8: multiple bindings for example.com/foo.Foo - current: - <- provider "provideFoo" (/tmp/wire_test1034861280/src/example.com/foo/foo.go:35:6) - previous: - <- provider "provideFoo" (/tmp/wire_test1034861280/src/example.com/foo/foo.go:35:6) - <- provider set "Set" (/tmp/wire_test1034861280/src/example.com/foo/foo.go:31:11) - <- provider set "SuperSet" (/tmp/wire_test1034861280/src/example.com/foo/foo.go:32:16) - wire_test.go:108: /tmp/wire_test1034861280/src/example.com/foo/foo.go:33:32: SetWithDuplicateBindings has multiple bindings for example.com/foo.Foo - current: - <- provider "provideFoo" (/tmp/wire_test1034861280/src/example.com/foo/foo.go:35:6) - <- provider set "Set" (/tmp/wire_test1034861280/src/example.com/foo/foo.go:31:11) - <- provider set "SuperSet" (/tmp/wire_test1034861280/src/example.com/foo/foo.go:32:16) - previous: - <- provider "provideFoo" (/tmp/wire_test1034861280/src/example.com/foo/foo.go:35:6) - <- provider set "Set" (/tmp/wire_test1034861280/src/example.com/foo/foo.go:31:11) - wire_test.go:108: /tmp/wire_test1034861280/src/example.com/foo/wire.go:47:8: multiple bindings for example.com/foo.Foo - current: - <- wire.Value (/tmp/wire_test1034861280/src/example.com/foo/wire.go:47:42) - previous: - <- provider "provideFoo" (/tmp/wire_test1034861280/src/example.com/foo/foo.go:35:6) - wire_test.go:108: /tmp/wire_test1034861280/src/example.com/foo/wire.go:52:8: multiple bindings for example.com/foo.Bar - current: - <- wire.Bind (/tmp/wire_test1034861280/src/example.com/foo/wire.go:52:31) - previous: - <- provider "provideBar" (/tmp/wire_test1034861280/src/example.com/foo/foo.go:43:6) -=== CONT TestWire/InterfaceBindingDoesntImplement -=== NAME TestWire/MultipleMissingInputs - wire_test.go:108: /tmp/wire_test2727644424/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_test2727644424/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_test2727644424/src/example.com/foo/foo.go:29:6) - wire_test.go:108: /tmp/wire_test2727644424/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_test2727644424/src/example.com/foo/foo.go:29:6) - wire_test.go:108: /tmp/wire_test2727644424/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_test2727644424/src/example.com/foo/foo.go:37:6) - needed by example.com/foo.Zap in provider "provideZap" (/tmp/wire_test2727644424/src/example.com/foo/foo.go:41:6) - needed by example.com/foo.Zop in provider "provideZop" (/tmp/wire_test2727644424/src/example.com/foo/foo.go:45:6) -=== CONT TestWire/InterfaceBinding -=== NAME TestWire/MultipleArgsSameType - wire_test.go:108: /tmp/wire_test2833130833/src/example.com/foo/wire.go:25:8: multiple bindings for string - current: - <- argument b to injector function inject (/tmp/wire_test2833130833/src/example.com/foo/wire.go:23:1) - previous: - <- argument a to injector function inject (/tmp/wire_test2833130833/src/example.com/foo/wire.go:23:1) -=== CONT TestWire/InjectorMissingError -=== NAME 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/Struct -=== NAME TestWire/NiladicIdentity +=== CONT TestWire/PkgImport +=== NAME TestWire/InterfaceValueDoesntImplement + wire_test.go:108: /tmp/wire_test1199444466/src/example.com/foo/wire.go:26:13: string does not implement io.Reader +=== CONT TestWire/PartialCleanup +=== NAME TestWire/InterfaceValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1503,13 +1367,30 @@ 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/TwoDeps + + var ( + _wireReaderValue = strings.NewReader("hello world") + ) +=== CONT TestWire/NoopBuild +=== NAME TestWire/InterfaceBindingInvalidArg0 + wire_test.go:108: /tmp/wire_test265751464/src/example.com/foo/wire.go:25:13: first argument to Bind must be a pointer to an interface type; found string +=== CONT TestWire/NoInjectParamNames +=== NAME TestWire/InterfaceBindingNotEnoughArgs + wire_test.go:108: /tmp/wire_test105792227/src/example.com/foo/wire.go:25:33: not enough arguments in call to wire.Bind + have (*Fooer) + want (interface{}, interface{}) +=== CONT TestWire/NoImplicitInterface === NAME TestWire/NamingWorstCaseAllInOne wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1563,11 +1444,8 @@ func (context) Provide() { } -=== CONT TestWire/StructWithPreventTag -=== NAME TestWire/InjectorMissingCleanup - wire_test.go:108: /tmp/wire_test124604649/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/StructPointer -=== NAME TestWire/InterfaceBindingReuse +=== CONT TestWire/NiladicValue +=== NAME TestWire/ExportedValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1577,18 +1455,22 @@ package main + import ( + "example.com/bar" + ) + // Injectors from wire.go: - func injectFooBar() FooBar { - bar := provideBar() - fooBar := provideFooBar(bar, bar) - return fooBar + func injectedMessage() string { + string2 := _wireStringValue + return string2 } -=== CONT TestWire/StructNotAStruct -=== NAME TestWire/InterfaceValueDoesntImplement - wire_test.go:108: /tmp/wire_test1772007528/src/example.com/foo/wire.go:26:13: string does not implement io.Reader -=== CONT TestWire/Header -=== NAME TestWire/InterfaceValue + + var ( + _wireStringValue = bar.PublicMsg + ) +=== CONT TestWire/NiladicIdentity +=== NAME TestWire/BuildTagsAllPackages wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1598,29 +1480,24 @@ package main - import ( - "io" - "strings" - ) - // Injectors from wire.go: - func injectedReader() io.Reader { - reader := _wireReaderValue - return reader + func injectedMessage() string { + string2 := _wireStringValue + return string2 } var ( - _wireReaderValue = strings.NewReader("hello world") + _wireStringValue = "Hello, World!" ) -=== CONT TestWire/InjectWithPanic -=== NAME TestWire/InterfaceBindingInvalidArg0 - wire_test.go:108: /tmp/wire_test3806602815/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 +=== CONT TestWire/BindInterfaceWithValue === NAME TestWire/InterfaceBindingDoesntImplement - wire_test.go:108: /tmp/wire_test3534415417/src/example.com/foo/wire.go:25:13: string does not implement example.com/foo.Fooer + wire_test.go:108: /tmp/wire_test2681035977/src/example.com/foo/wire.go:25:13: string does not implement example.com/foo.Fooer === CONT TestWire/InjectInput -=== NAME TestWire/InterfaceBinding +=== NAME TestWire/ProviderSetBindingMissingConcreteType + wire_test.go:108: /tmp/wire_test1939042523/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/InjectorMissingCleanup +=== NAME TestWire/RelativePkg wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1632,17 +1509,12 @@ // Injectors from wire.go: - func injectFooer() Fooer { - bar := provideBar() - return bar + func injectedMessage() string { + string2 := provideMessage() + return string2 } -=== CONT TestWire/ImportedInterfaceBinding -=== NAME TestWire/InterfaceBindingNotEnoughArgs - wire_test.go:108: /tmp/wire_test2268751594/src/example.com/foo/wire.go:25:33: not enough arguments in call to wire.Bind - have (*Fooer) - want (interface{}, interface{}) -=== CONT TestWire/ReturnArgumentAsInterface -=== NAME TestWire/Struct +=== CONT TestWire/InjectWithPanic +=== NAME TestWire/Chain wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1656,23 +1528,11 @@ func injectFooBar() FooBar { foo := provideFoo() - bar := provideBar() - fooBar := FooBar{ - Foo: foo, - Bar: bar, - } - return fooBar - } - - func injectPartFooBar() FooBar { - foo := provideFoo() - fooBar := FooBar{ - Foo: foo, - } + fooBar := provideFooBar(foo) return fooBar } -=== CONT TestWire/ReturnError -=== NAME TestWire/TwoDeps +=== CONT TestWire/InjectInputConflict +=== NAME TestWire/PartialCleanup wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1684,19 +1544,29 @@ // Injectors from wire.go: - func injectFooBar() FooBar { - foo := provideFoo() - bar := provideBar() - fooBar := provideFooBar(foo, bar) - return fooBar + 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 } -=== CONT TestWire/FieldsOfValueStruct -=== NAME TestWire/InjectorMissingError - wire_test.go:108: /tmp/wire_test3419561742/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/FuncArgProvider -=== NAME TestWire/StructWithPreventTag - wire_test.go:108: /tmp/wire_test2149286182/src/example.com/foo/foo.go:45:2: "mu" is prevented from injecting by wire -=== NAME TestWire/StructPointer +=== CONT TestWire/BindInjectorArgPointer +=== NAME TestWire/NoImplicitInterface + wire_test.go:108: /tmp/wire_test1723771008/src/example.com/foo/wire.go:23:1: inject injectFooer: no provider found for example.com/foo.Fooer, output of injector +=== CONT TestWire/MultipleArgsSameType +=== NAME TestWire/BindInterfaceWithValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1706,28 +1576,24 @@ package main + import ( + "io" + "os" + ) + // Injectors from wire.go: - func injectFooBar() *FooBar { - foo := provideFoo() - bar := provideBar() - fooBar := &FooBar{ - Foo: foo, - Bar: bar, - } - return fooBar + func inject() io.Writer { + file := _wireFileValue + return file } - func injectEmptyStruct() *Empty { - empty := &Empty{} - return empty - } -=== NAME TestWire/StructNotAStruct - wire_test.go:108: /tmp/wire_test3932781275/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 -=== NAME TestWire/Header + var ( + _wireFileValue = os.Stdout + ) +=== CONT TestWire/NamingWorstCase +=== NAME TestWire/PkgImport wire_test.go:164: wire_gen.go: - // This is a sample header file. - // // Code generated by Wire. DO NOT EDIT. //go:generate go run github.com/google/wire/cmd/wire @@ -1736,13 +1602,26 @@ package main + import ( + "example.com/bar" + ) + + import ( + _ "example.com/anon1" + _ "example.com/anon2" + ) + // Injectors from wire.go: - func injectFoo() Foo { + func injectFooBar() FooBar { foo := provideFoo() - return foo + barBar := bar.ProvideBar() + fooBar := provideFooBar(foo, barBar) + return fooBar } -=== NAME TestWire/InjectWithPanic +=== CONT TestWire/MultipleSimilarPackages +=== CONT TestWire/MultipleMissingInputs +=== NAME TestWire/NiladicValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1755,17 +1634,15 @@ // Injectors from wire.go: func injectedMessage() string { - string2 := provideMessage() + string2 := _wireStringValue return string2 } -=== NAME TestWire/InjectInputConflict - wire_test.go:108: /tmp/wire_test388076914/src/example.com/foo/wire.go:24:2: multiple bindings for example.com/foo.Foo - current: - <- provider "provideFoo" (/tmp/wire_test388076914/src/example.com/foo/foo.go:37:6) - <- provider set "Set" (/tmp/wire_test388076914/src/example.com/foo/foo.go:33:11) - previous: - <- argument foo to injector function injectBar (/tmp/wire_test388076914/src/example.com/foo/wire.go:23:1) -=== NAME TestWire/InjectInput + + var ( + _wireStringValue = "Hello, World!" + ) +=== CONT TestWire/MultipleBindings +=== NAME TestWire/NoInjectParamNames wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1775,14 +1652,21 @@ package main + import ( + context2 "context" + ) + // Injectors from wire.go: - func injectFooBar(foo Foo) FooBar { - bar := provideBar() - fooBar := provideFooBar(foo, bar) - return fooBar + func inject(contextContext context2.Context, arg struct{}) (context, error) { + mainContext, err := provide(contextContext) + if err != nil { + return context{}, err + } + return mainContext, nil } -=== NAME TestWire/ImportedInterfaceBinding +=== CONT TestWire/InvalidInjector +=== NAME TestWire/InjectInput wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1792,17 +1676,15 @@ package main - import ( - "example.com/foo" - ) - // Injectors from wire.go: - func injectFooer() foo.Fooer { + func injectFooBar(foo Foo) FooBar { bar := provideBar() - return bar + fooBar := provideFooBar(foo, bar) + return fooBar } -=== NAME TestWire/ReturnError +=== CONT TestWire/Header +=== NAME TestWire/NiladicIdentity wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1814,14 +1696,15 @@ // Injectors from wire.go: - func injectFoo() (Foo, error) { - foo, err := provideFoo() - if err != nil { - return 0, err - } - return foo, nil + func injectedMessage() string { + string2 := provideMessage() + return string2 } -=== NAME TestWire/ReturnArgumentAsInterface +=== CONT TestWire/ImportedInterfaceBinding +=== NAME TestWire/InjectorMissingCleanup + wire_test.go:108: /tmp/wire_test1082291080/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/FuncArgProvider +=== NAME TestWire/InjectWithPanic wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1831,16 +1714,67 @@ package main - import ( - "fmt" - ) - // Injectors from wire.go: - func injectStringer(s MyString) fmt.Stringer { - return s + func injectedMessage() string { + string2 := provideMessage() + return string2 } -=== NAME TestWire/FieldsOfValueStruct +=== NAME TestWire/InjectInputConflict + wire_test.go:108: /tmp/wire_test566344282/src/example.com/foo/wire.go:24:2: multiple bindings for example.com/foo.Foo + current: + <- provider "provideFoo" (/tmp/wire_test566344282/src/example.com/foo/foo.go:37:6) + <- provider set "Set" (/tmp/wire_test566344282/src/example.com/foo/foo.go:33:11) + previous: + <- argument foo to injector function injectBar (/tmp/wire_test566344282/src/example.com/foo/wire.go:23:1) +=== NAME TestWire/MultipleBindings + wire_test.go:108: /tmp/wire_test2340885233/src/example.com/foo/wire.go:27:8: multiple bindings for example.com/foo.Foo + current: + <- provider "provideFooAgain" (/tmp/wire_test2340885233/src/example.com/foo/foo.go:39:6) + previous: + <- provider "provideFoo" (/tmp/wire_test2340885233/src/example.com/foo/foo.go:35:6) + wire_test.go:108: /tmp/wire_test2340885233/src/example.com/foo/wire.go:32:8: multiple bindings for example.com/foo.Foo + current: + <- provider "provideFoo" (/tmp/wire_test2340885233/src/example.com/foo/foo.go:35:6) + previous: + <- provider "provideFoo" (/tmp/wire_test2340885233/src/example.com/foo/foo.go:35:6) + <- provider set "Set" (/tmp/wire_test2340885233/src/example.com/foo/foo.go:31:11) + wire_test.go:108: /tmp/wire_test2340885233/src/example.com/foo/wire.go:37:8: multiple bindings for example.com/foo.Foo + current: + <- provider "provideFoo" (/tmp/wire_test2340885233/src/example.com/foo/foo.go:35:6) + previous: + <- provider "provideFoo" (/tmp/wire_test2340885233/src/example.com/foo/foo.go:35:6) + <- provider set "Set" (/tmp/wire_test2340885233/src/example.com/foo/foo.go:31:11) + <- provider set "SuperSet" (/tmp/wire_test2340885233/src/example.com/foo/foo.go:32:16) + wire_test.go:108: /tmp/wire_test2340885233/src/example.com/foo/foo.go:33:32: SetWithDuplicateBindings has multiple bindings for example.com/foo.Foo + current: + <- provider "provideFoo" (/tmp/wire_test2340885233/src/example.com/foo/foo.go:35:6) + <- provider set "Set" (/tmp/wire_test2340885233/src/example.com/foo/foo.go:31:11) + <- provider set "SuperSet" (/tmp/wire_test2340885233/src/example.com/foo/foo.go:32:16) + previous: + <- provider "provideFoo" (/tmp/wire_test2340885233/src/example.com/foo/foo.go:35:6) + <- provider set "Set" (/tmp/wire_test2340885233/src/example.com/foo/foo.go:31:11) + wire_test.go:108: /tmp/wire_test2340885233/src/example.com/foo/wire.go:47:8: multiple bindings for example.com/foo.Foo + current: + <- wire.Value (/tmp/wire_test2340885233/src/example.com/foo/wire.go:47:42) + previous: + <- provider "provideFoo" (/tmp/wire_test2340885233/src/example.com/foo/foo.go:35:6) + wire_test.go:108: /tmp/wire_test2340885233/src/example.com/foo/wire.go:52:8: multiple bindings for example.com/foo.Bar + current: + <- wire.Bind (/tmp/wire_test2340885233/src/example.com/foo/wire.go:52:31) + previous: + <- provider "provideBar" (/tmp/wire_test2340885233/src/example.com/foo/foo.go:43:6) +=== NAME TestWire/MultipleMissingInputs + wire_test.go:108: /tmp/wire_test806230198/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_test806230198/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_test806230198/src/example.com/foo/foo.go:29:6) + wire_test.go:108: /tmp/wire_test806230198/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_test806230198/src/example.com/foo/foo.go:29:6) + wire_test.go:108: /tmp/wire_test806230198/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_test806230198/src/example.com/foo/foo.go:37:6) + needed by example.com/foo.Zap in provider "provideZap" (/tmp/wire_test806230198/src/example.com/foo/foo.go:41:6) + needed by example.com/foo.Zop in provider "provideZop" (/tmp/wire_test806230198/src/example.com/foo/foo.go:45:6) +=== NAME TestWire/MultipleSimilarPackages wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1859,105 +1793,207 @@ // Injectors from wire.go: - func newBazService() *baz.Service { - config := _wireConfigValue - fooConfig := config.Foo - service := foo.New(fooConfig) - barConfig := config.Bar + func newMainService(mainConfig MainConfig) *MainService { + config := mainConfig.Foo + service := foo.New(config) + barConfig := mainConfig.Bar barService := bar.New(barConfig, service) - bazService := &baz.Service{ + bazConfig := mainConfig.baz + bazService := baz.New(bazConfig, barService) + mainService := &MainService{ Foo: service, Bar: barService, + baz: bazService, } - return bazService + return mainService } - var ( - _wireConfigValue = &baz.Config{ + // 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()) + } +=== NAME TestWire/BindInjectorArgPointer + wire_test.go:164: wire_gen.go: + // Code generated by Wire. DO NOT EDIT. + + //go:generate go run github.com/google/wire/cmd/wire + //go:build !wireinject + // +build !wireinject + + package main + + // Injectors from wire.go: + + func inject(foo *Foo) *Bar { + bar := NewBar(foo) + return bar + } +=== NAME TestWire/NamingWorstCase + wire_test.go:164: wire_gen.go: + // Code generated by Wire. DO NOT EDIT. + + //go:generate go run github.com/google/wire/cmd/wire + //go:build !wireinject + // +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 + } +=== NAME TestWire/MultipleArgsSameType + wire_test.go:108: /tmp/wire_test1640030113/src/example.com/foo/wire.go:25:8: multiple bindings for string + current: + <- argument b to injector function inject (/tmp/wire_test1640030113/src/example.com/foo/wire.go:23:1) + previous: + <- argument a to injector function inject (/tmp/wire_test1640030113/src/example.com/foo/wire.go:23:1) +=== NAME TestWire/Header + wire_test.go:164: wire_gen.go: + // This is a sample header file. + // + // Code generated by Wire. DO NOT EDIT. + + //go:generate go run github.com/google/wire/cmd/wire + //go:build !wireinject + // +build !wireinject + + package main + + // Injectors from wire.go: + + func injectFoo() Foo { + foo := provideFoo() + return foo + } +=== NAME 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 +=== NAME TestWire/ImportedInterfaceBinding + wire_test.go:164: wire_gen.go: + // Code generated by Wire. DO NOT EDIT. + + //go:generate go run github.com/google/wire/cmd/wire + //go:build !wireinject + // +build !wireinject + + package main + + import ( + "example.com/foo" ) - // wire.go: + // Injectors from wire.go: - func main() { - svc := newBazService() - fmt.Println(svc.String()) + func injectFooer() foo.Fooer { + bar := provideBar() + return bar } === NAME TestWire/FuncArgProvider - wire_test.go:108: /tmp/wire_test2773181849/src/example.com/foo/wire.go:25:19: var fn func() *example.com/foo.Foo is not a provider or a provider set + wire_test.go:108: /tmp/wire_test466618265/src/example.com/foo/wire.go:25:19: var fn func() *example.com/foo.Foo is not a provider or a provider set --- PASS: TestWire (0.02s) - --- PASS: TestWire/Varargs (4.43s) - --- PASS: TestWire/BindInjectorArg (4.69s) - --- PASS: TestWire/FieldsOfStructDoNotProvidePtrToField (4.81s) - --- PASS: TestWire/ProviderSetBindingMissingConcreteType (4.81s) - --- PASS: TestWire/RelativePkg (5.17s) - --- PASS: TestWire/FieldsOfStruct (5.25s) - --- PASS: TestWire/FieldsOfImportedStruct (5.35s) - --- PASS: TestWire/FieldsOfCycle (5.40s) - --- PASS: TestWire/FieldsOfStructPointer (5.51s) - --- PASS: TestWire/InterfaceValueInvalidArg0 (5.85s) - --- PASS: TestWire/InterfaceValueNotEnoughArgs (6.21s) - --- PASS: TestWire/ReservedKeywords (6.38s) - --- PASS: TestWire/ExportedValueDifferentPackage (3.56s) - --- PASS: TestWire/ExampleWithMocks (3.55s) - --- PASS: TestWire/CopyOtherDecls (3.40s) - --- PASS: TestWire/ExportedValue (4.27s) - --- PASS: TestWire/DocComment (3.78s) - --- PASS: TestWire/Cleanup (3.58s) - --- PASS: TestWire/Chain (3.56s) - --- PASS: TestWire/Cycle (3.80s) - --- PASS: TestWire/EmptyVar (4.24s) - --- PASS: TestWire/BuildTagsAllPackages (3.27s) - --- PASS: TestWire/BindInterfaceWithValue (3.17s) - --- PASS: TestWire/BindInjectorArgPointer (3.44s) - --- PASS: TestWire/UnexportedStruct (3.38s) - --- PASS: TestWire/VarValue (3.07s) - --- PASS: TestWire/ValueFromFunctionScope (2.93s) - --- PASS: TestWire/ValueConversion (3.15s) - --- PASS: TestWire/ValueIsStruct (3.57s) - --- PASS: TestWire/ValueIsInterfaceValue (3.66s) - --- PASS: TestWire/UnexportedValue (3.67s) - --- PASS: TestWire/NamingWorstCase (3.71s) - --- PASS: TestWire/ValueChain (3.89s) - --- PASS: TestWire/UnusedProviders (3.94s) - --- PASS: TestWire/PkgImport (3.78s) - --- PASS: TestWire/PartialCleanup (4.43s) - --- PASS: TestWire/NoInjectParamNames (3.60s) - --- PASS: TestWire/NiladicValue (3.01s) - --- PASS: TestWire/NoopBuild (3.88s) - --- PASS: TestWire/NoImplicitInterface (3.45s) - --- PASS: TestWire/MultipleSimilarPackages (2.78s) - --- PASS: TestWire/MultipleBindings (2.92s) - --- PASS: TestWire/MultipleMissingInputs (3.38s) - --- PASS: TestWire/MultipleArgsSameType (3.31s) - --- PASS: TestWire/InvalidInjector (3.74s) - --- PASS: TestWire/NiladicIdentity (4.30s) - --- PASS: TestWire/NamingWorstCaseAllInOne (4.38s) - --- PASS: TestWire/InjectorMissingCleanup (4.06s) - --- PASS: TestWire/InterfaceBindingReuse (3.12s) - --- PASS: TestWire/InterfaceValueDoesntImplement (3.81s) - --- PASS: TestWire/InterfaceValue (3.92s) - --- PASS: TestWire/InterfaceBindingInvalidArg0 (3.60s) - --- PASS: TestWire/InterfaceBindingDoesntImplement (3.32s) - --- PASS: TestWire/InterfaceBinding (3.08s) - --- PASS: TestWire/InterfaceBindingNotEnoughArgs (4.15s) - --- PASS: TestWire/Struct (3.11s) - --- PASS: TestWire/TwoDeps (2.98s) - --- PASS: TestWire/InjectorMissingError (3.69s) - --- PASS: TestWire/StructWithPreventTag (3.41s) - --- PASS: TestWire/StructPointer (2.75s) - --- PASS: TestWire/StructNotAStruct (3.05s) - --- PASS: TestWire/Header (2.74s) - --- PASS: TestWire/InjectWithPanic (2.60s) - --- PASS: TestWire/InjectInputConflict (2.66s) - --- PASS: TestWire/InjectInput (2.64s) - --- PASS: TestWire/ImportedInterfaceBinding (2.52s) - --- PASS: TestWire/ReturnError (2.41s) - --- PASS: TestWire/ReturnArgumentAsInterface (2.54s) - --- PASS: TestWire/FieldsOfValueStruct (2.46s) - --- PASS: TestWire/FuncArgProvider (1.99s) + --- PASS: TestWire/ExportedValueDifferentPackage (1.61s) + --- PASS: TestWire/FieldsOfCycle (1.66s) + --- PASS: TestWire/InterfaceBinding (1.67s) + --- PASS: TestWire/BindInjectorArg (1.71s) + --- PASS: TestWire/FieldsOfStructPointer (1.71s) + --- PASS: TestWire/FieldsOfImportedStruct (1.72s) + --- PASS: TestWire/EmptyVar (1.72s) + --- PASS: TestWire/InjectorMissingError (1.74s) + --- PASS: TestWire/FieldsOfStructDoNotProvidePtrToField (1.74s) + --- PASS: TestWire/FieldsOfStruct (1.75s) + --- PASS: TestWire/InterfaceValueNotEnoughArgs (1.77s) + --- PASS: TestWire/FieldsOfValueStruct (1.87s) + --- PASS: TestWire/ReservedKeywords (1.35s) + --- PASS: TestWire/ValueFromFunctionScope (1.58s) + --- PASS: TestWire/UnexportedStruct (1.53s) + --- PASS: TestWire/ValueIsStruct (1.60s) + --- PASS: TestWire/VarValue (1.63s) + --- PASS: TestWire/UnusedProviders (1.57s) + --- PASS: TestWire/ValueChain (1.57s) + --- PASS: TestWire/TwoDeps (1.45s) + --- PASS: TestWire/Varargs (1.68s) + --- PASS: TestWire/ValueIsInterfaceValue (1.66s) + --- PASS: TestWire/UnexportedValue (1.65s) + --- PASS: TestWire/ValueConversion (1.76s) + --- PASS: TestWire/StructWithPreventTag (1.27s) + --- PASS: TestWire/ReturnArgumentAsInterface (1.24s) + --- PASS: TestWire/Struct (1.29s) + --- PASS: TestWire/Cleanup (1.30s) + --- PASS: TestWire/ReturnError (1.33s) + --- PASS: TestWire/StructNotAStruct (1.47s) + --- PASS: TestWire/InterfaceValueInvalidArg0 (1.31s) + --- PASS: TestWire/Cycle (1.46s) + --- PASS: TestWire/StructPointer (1.52s) + --- PASS: TestWire/CopyOtherDecls (1.45s) + --- PASS: TestWire/DocComment (1.51s) + --- PASS: TestWire/InterfaceBindingReuse (1.63s) + --- PASS: TestWire/ExampleWithMocks (1.35s) + --- PASS: TestWire/InterfaceValueDoesntImplement (1.77s) + --- PASS: TestWire/InterfaceValue (1.47s) + --- PASS: TestWire/InterfaceBindingInvalidArg0 (1.44s) + --- PASS: TestWire/InterfaceBindingNotEnoughArgs (1.38s) + --- PASS: TestWire/NamingWorstCaseAllInOne (1.39s) + --- PASS: TestWire/ExportedValue (1.63s) + --- PASS: TestWire/BuildTagsAllPackages (1.48s) + --- PASS: TestWire/InterfaceBindingDoesntImplement (1.56s) + --- PASS: TestWire/ProviderSetBindingMissingConcreteType (1.44s) + --- PASS: TestWire/RelativePkg (1.66s) + --- PASS: TestWire/Chain (1.68s) + --- PASS: TestWire/PartialCleanup (1.40s) + --- PASS: TestWire/NoImplicitInterface (1.30s) + --- PASS: TestWire/BindInterfaceWithValue (1.17s) + --- PASS: TestWire/PkgImport (1.54s) + --- PASS: TestWire/NoopBuild (1.48s) + --- PASS: TestWire/NiladicValue (1.42s) + --- PASS: TestWire/NoInjectParamNames (1.60s) + --- PASS: TestWire/InjectInput (1.34s) + --- PASS: TestWire/NiladicIdentity (1.48s) + --- PASS: TestWire/InjectorMissingCleanup (1.45s) + --- PASS: TestWire/InjectWithPanic (1.73s) + --- PASS: TestWire/InjectInputConflict (1.74s) + --- PASS: TestWire/MultipleBindings (1.00s) + --- PASS: TestWire/MultipleMissingInputs (1.14s) + --- PASS: TestWire/MultipleSimilarPackages (1.20s) + --- PASS: TestWire/BindInjectorArgPointer (1.35s) + --- PASS: TestWire/NamingWorstCase (1.35s) + --- PASS: TestWire/MultipleArgsSameType (1.36s) + --- PASS: TestWire/Header (1.21s) + --- PASS: TestWire/InvalidInjector (1.27s) + --- PASS: TestWire/ImportedInterfaceBinding (1.23s) + --- PASS: TestWire/FuncArgProvider (1.23s) === RUN TestUnexport --- PASS: TestUnexport (0.00s) === RUN TestExport @@ -2013,7 +2049,7 @@ --- PASS: TestDisambiguate/disambiguate("select",_map[]) (0.00s) --- PASS: TestDisambiguate/disambiguate("var",_map[]) (0.00s) PASS -ok github.com/google/wire/internal/wire 22.300s +ok github.com/google/wire/internal/wire 9.322s create-stamp debian/debhelper-build-stamp dh_testroot -O--builddirectory=_build -O--buildsystem=golang dh_prep -O--builddirectory=_build -O--buildsystem=golang @@ -2041,8 +2077,8 @@ dpkg-gencontrol: warning: package google-wire: substitution variable ${misc:Static-Built-Using} unused, but is 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.5.0-2_arm64.deb'. dpkg-deb: building package 'golang-github-google-wire-dev' in '../golang-github-google-wire-dev_0.5.0-2_all.deb'. +dpkg-deb: building package 'google-wire' in '../google-wire_0.5.0-2_arm64.deb'. dpkg-genbuildinfo --build=binary -O../golang-github-google-wire_0.5.0-2_arm64.buildinfo dpkg-genchanges --build=binary -O../golang-github-google-wire_0.5.0-2_arm64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -2050,12 +2086,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/2325779/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/2325779/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/3362933 and its subdirectories -I: Current time: Wed Jun 18 07:42:18 -12 2025 -I: pbuilder-time-stamp: 1750275738 +I: removing directory /srv/workspace/pbuilder/2325779 and its subdirectories +I: Current time: Fri May 17 03:20:30 +14 2024 +I: pbuilder-time-stamp: 1715865630