Diff of the two buildlogs: -- --- b1/build.log 2024-06-13 13:40:15.102618851 +0000 +++ b2/build.log 2024-06-13 13:45:36.212931157 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed Jul 16 08:01:52 -12 2025 -I: pbuilder-time-stamp: 1752696112 +I: Current time: Fri Jun 14 03:40:17 +14 2024 +I: pbuilder-time-stamp: 1718286017 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-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/4041495/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3432473/tmp/hooks/D01_modify_environment starting +debug: Running on ionos11-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 +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Jun 13 13:40 /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/3432473/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3432473/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='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='amd64' + 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]="x86_64-pc-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=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=20 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='e20317ab11814c5ab36ea981451149af' - 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='4041495' - PS1='# ' - PS2='> ' + INVOCATION_ID=da658ccc55694a9fbe006338496bb1b0 + 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=3432473 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.MjZc7q0r/pbuilderrc_hSMy --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.MjZc7q0r/b1 --logfile b1/build.log golang-github-google-wire_0.5.0-2.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://213.165.73.152: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.MjZc7q0r/pbuilderrc_Jy6J --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.MjZc7q0r/b2 --logfile b2/build.log golang-github-google-wire_0.5.0-2.dsc' + SUDO_GID=111 + SUDO_UID=106 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos15-amd64 6.7.12+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.7.12-1~bpo12+1 (2024-05-06) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Jun 5 2024 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/4041495/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Jun 5 22:35 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3432473/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -172,7 +204,7 @@ Get: 46 http://deb.debian.org/debian unstable/main amd64 golang-golang-x-net-dev all 1:0.25.0+dfsg-1 [895 kB] Get: 47 http://deb.debian.org/debian unstable/main amd64 golang-golang-x-sync-dev all 0.7.0-1 [19.0 kB] Get: 48 http://deb.debian.org/debian unstable/main amd64 golang-golang-x-tools-dev all 1:0.20.0+ds-1 [1571 kB] -Fetched 71.7 MB in 1s (82.5 MB/s) +Fetched 71.7 MB in 3s (21.3 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 ... 19713 files and directories currently installed.) @@ -379,7 +411,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/3432473/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/3432473/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 @@ -397,103 +433,103 @@ 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 42 github.com/google/wire github.com/google/wire/cmd/wire github.com/google/wire/internal/wire + cd _build && go install -trimpath -v -p 20 github.com/google/wire github.com/google/wire/cmd/wire github.com/google/wire/internal/wire internal/unsafeheader -golang.org/x/tools/internal/packagesinternal -log/internal -cmp -unicode/utf16 unicode/utf8 +github.com/google/wire internal/goos -internal/platform +cmp internal/goversion -internal/godebugs +unicode math/bits -internal/goarch -internal/race +unicode/utf16 +internal/coverage/rtcov internal/goexperiment -encoding +internal/goarch internal/itoa -internal/cpu +internal/platform +internal/race runtime/internal/syscall -internal/coverage/rtcov -github.com/google/wire -sync/atomic +log/internal +internal/cpu runtime/internal/atomic -unicode +golang.org/x/tools/internal/packagesinternal +encoding +internal/godebugs internal/gover -runtime/internal/math +sync/atomic +slices +internal/abi internal/chacha8rand +runtime/internal/math runtime/internal/sys -internal/abi -slices internal/bytealg math runtime -internal/reflectlite sync +internal/reflectlite internal/testlog internal/bisect internal/godebug -errors -sort math/rand +sort +errors internal/oserror internal/safefilepath path -io strconv +io syscall -hash strings bytes text/tabwriter +hash container/heap golang.org/x/mod/semver -crypto internal/types/errors +crypto reflect -go/version go/build/constraint +go/version bufio regexp/syntax -internal/syscall/execenv +regexp time +internal/syscall/execenv internal/syscall/unix -regexp -context -io/fs -internal/poll -os internal/fmtsort encoding/binary -encoding/base64 +context +internal/poll +io/fs crypto/md5 +encoding/base64 +os +fmt internal/lazyregexp io/ioutil path/filepath -fmt os/exec internal/goroot flag -internal/buildcfg -golang.org/x/sync/errgroup -golang.org/x/tools/internal/event/label -log -github.com/pmezard/go-difflib/difflib -go/doc/comment go/token +go/doc/comment +internal/buildcfg encoding/json math/big +log +golang.org/x/sync/errgroup golang.org/x/tools/internal/stdlib +golang.org/x/tools/internal/event/label +github.com/pmezard/go-difflib/difflib golang.org/x/tools/internal/event/keys -golang.org/x/tools/internal/tokeninternal go/scanner -golang.org/x/tools/internal/event/tag -golang.org/x/tools/internal/event/core +golang.org/x/tools/internal/tokeninternal github.com/google/subcommands -golang.org/x/tools/internal/event +golang.org/x/tools/internal/event/core +golang.org/x/tools/internal/event/tag go/ast +golang.org/x/tools/internal/event golang.org/x/tools/internal/gocommand golang.org/x/tools/go/internal/packagesdriver go/internal/typeparams @@ -502,23 +538,23 @@ go/doc go/parser go/constant -go/format -go/build golang.org/x/tools/internal/pkgbits +go/build +go/format go/types golang.org/x/tools/internal/aliases golang.org/x/tools/internal/versions golang.org/x/tools/internal/typeparams golang.org/x/tools/internal/typesinternal golang.org/x/tools/go/types/objectpath -golang.org/x/tools/go/types/typeutil golang.org/x/tools/internal/gcimporter +golang.org/x/tools/go/types/typeutil golang.org/x/tools/go/gcexportdata golang.org/x/tools/go/packages 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 42 github.com/google/wire github.com/google/wire/cmd/wire github.com/google/wire/internal/wire + cd _build && go test -vet=off -v -p 20 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 @@ -665,46 +701,46 @@ === CONT TestWire/BindInjectorArg === CONT TestWire/InterfaceValueNotEnoughArgs === CONT TestWire/ReturnArgumentAsInterface -=== CONT TestWire/UnusedProviders === CONT TestWire/NiladicValue -=== CONT TestWire/RelativePkg -=== CONT TestWire/ProviderSetBindingMissingConcreteType -=== CONT TestWire/PkgImport === CONT TestWire/InterfaceValueInvalidArg0 +=== CONT TestWire/NiladicIdentity +=== CONT TestWire/ReservedKeywords +=== CONT TestWire/Varargs +=== CONT TestWire/NamingWorstCaseAllInOne === CONT TestWire/InterfaceValueDoesntImplement === CONT TestWire/InterfaceValue -=== CONT TestWire/UnexportedValue -=== CONT TestWire/UnexportedStruct -=== CONT TestWire/TwoDeps -=== CONT TestWire/StructWithPreventTag -=== CONT TestWire/ValueFromFunctionScope -=== CONT TestWire/Varargs -=== CONT TestWire/FieldsOfStruct -=== CONT TestWire/VarValue === CONT TestWire/InterfaceBindingReuse -=== CONT TestWire/ValueIsStruct === CONT TestWire/InterfaceBindingNotEnoughArgs === CONT TestWire/InterfaceBindingInvalidArg0 -=== CONT TestWire/ValueIsInterfaceValue === CONT TestWire/InterfaceBindingDoesntImplement === CONT TestWire/InterfaceBinding -=== CONT TestWire/Cycle === CONT TestWire/InjectorMissingError -=== CONT TestWire/FieldsOfImportedStruct === CONT TestWire/InjectorMissingCleanup -=== CONT TestWire/FieldsOfCycle === CONT TestWire/InjectWithPanic -=== CONT TestWire/ExportedValueDifferentPackage === CONT TestWire/InjectInputConflict -=== CONT TestWire/ExportedValue +=== NAME TestWire/InterfaceValueNotEnoughArgs + wire_test.go:108: /tmp/wire_test4189000918/src/example.com/foo/wire.go:25:38: not enough arguments in call to wire.InterfaceValue + have (string) + want (interface{}, interface{}) === CONT TestWire/InjectInput -=== CONT TestWire/ExampleWithMocks +=== NAME TestWire/Varargs + 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 injectedMessage(t title, lines ...string) string { + string2 := provideMessage(lines...) + return string2 + } === CONT TestWire/ImportedInterfaceBinding -=== CONT TestWire/EmptyVar -=== CONT TestWire/Header -=== CONT TestWire/CopyOtherDecls -=== CONT TestWire/StructPointer -=== NAME TestWire/BindInjectorArg +=== NAME TestWire/NiladicValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -716,12 +752,19 @@ // Injectors from wire.go: - func inject(foo Foo) *Bar { - bar := NewBar(foo) - return bar + func injectedMessage() string { + string2 := _wireStringValue + return string2 } -=== CONT TestWire/DocComment -=== NAME TestWire/ReturnArgumentAsInterface + + var ( + _wireStringValue = "Hello, World!" + ) +=== NAME TestWire/InterfaceValueDoesntImplement + wire_test.go:108: /tmp/wire_test1508150176/src/example.com/foo/wire.go:26:13: string does not implement io.Reader +=== CONT TestWire/Header +=== CONT TestWire/FuncArgProvider +=== NAME TestWire/InterfaceValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -732,15 +775,22 @@ package main import ( - "fmt" + "io" + "strings" ) // Injectors from wire.go: - func injectStringer(s MyString) fmt.Stringer { - return s + func injectedReader() io.Reader { + reader := _wireReaderValue + return reader } -=== NAME TestWire/CopyOtherDecls + + var ( + _wireReaderValue = strings.NewReader("hello world") + ) +=== CONT TestWire/FieldsOfValueStruct +=== NAME TestWire/NamingWorstCaseAllInOne wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -751,29 +801,53 @@ package main import ( + context2 "context" "fmt" + "os" + "reflect" ) // Injectors from foo.go: - func injectedMessage() string { - string2 := provideMessage() - return string2 + 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{} + func main() { - fmt.Println(injectedMessage()) + 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) } - // provideMessage provides a friendly user greeting. - func provideMessage() string { - return "Hello, World!" + func Provide(context2_2 context2.Context) (context, error) { + var context3 = context2.Background() + _ = context2_2 + _ = context3 + return context{}, nil } -=== NAME TestWire/InjectorMissingError - wire_test.go:108: /tmp/wire_test217329782/src/example.com/foo/wire.go:23:1: inject injectFoo: provider for example.com/foo.Foo returns error but injection not allowed to fail -=== NAME TestWire/NiladicValue + + func (context) Provide() { + } +=== CONT TestWire/FieldsOfStructPointer +=== NAME TestWire/InterfaceValueInvalidArg0 + wire_test.go:108: /tmp/wire_test4165303968/src/example.com/foo/wire.go:25:13: first argument to InterfaceValue must be a pointer to an interface type; found string +=== CONT TestWire/FieldsOfStructDoNotProvidePtrToField +=== NAME TestWire/InterfaceBinding wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -785,15 +859,15 @@ // Injectors from wire.go: - func injectedMessage() string { - string2 := _wireStringValue - return string2 + func injectFooer() Fooer { + bar := provideBar() + return bar } - - var ( - _wireStringValue = "Hello, World!" - ) -=== NAME TestWire/ExportedValueDifferentPackage +=== CONT TestWire/FieldsOfStruct +=== NAME TestWire/InterfaceBindingInvalidArg0 + wire_test.go:108: /tmp/wire_test2560806315/src/example.com/foo/wire.go:25:13: first argument to Bind must be a pointer to an interface type; found string +=== CONT TestWire/FieldsOfImportedStruct +=== NAME TestWire/InterfaceBindingReuse wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -803,21 +877,57 @@ package main - import ( - "os" - ) + // Injectors from wire.go: + + func injectFooBar() FooBar { + bar := provideBar() + fooBar := provideFooBar(bar, bar) + return fooBar + } +=== CONT TestWire/FieldsOfCycle +=== NAME TestWire/BindInjectorArg + 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 injectedFile() *os.File { - file := _wireFileValue - return file + func inject(foo Foo) *Bar { + bar := NewBar(foo) + return bar } +=== CONT TestWire/ExportedValueDifferentPackage +=== NAME TestWire/InjectWithPanic + wire_test.go:164: wire_gen.go: + // Code generated by Wire. DO NOT EDIT. - var ( - _wireFileValue = os.Stdout - ) -=== NAME TestWire/ValueIsStruct + //go:generate go run github.com/google/wire/cmd/wire + //go:build !wireinject + // +build !wireinject + + package main + + // Injectors from wire.go: + + func injectedMessage() string { + string2 := provideMessage() + return string2 + } +=== CONT TestWire/ExportedValue +=== NAME TestWire/InjectorMissingCleanup + wire_test.go:108: /tmp/wire_test1961729696/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/ExampleWithMocks +=== NAME TestWire/InterfaceBindingNotEnoughArgs + wire_test.go:108: /tmp/wire_test1412535237/src/example.com/foo/wire.go:25:33: not enough arguments in call to wire.Bind + have (*Fooer) + want (interface{}, interface{}) +=== CONT TestWire/EmptyVar +=== NAME TestWire/ReservedKeywords wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -829,21 +939,20 @@ // Injectors from wire.go: - func injectFoo() Foo { - foo := _wireFooValue - return foo + func injectInterface() Interface { + select2 := provideSelect() + mainInterface := provideInterface(select2) + return mainInterface } - var ( - _wireFooValue = Foo{X: 42} - ) -=== NAME TestWire/FieldsOfCycle - wire_test.go:108: /tmp/wire_test1521100033/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 -=== NAME TestWire/InterfaceValue + // 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/DocComment +=== NAME TestWire/ReturnArgumentAsInterface wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -854,21 +963,47 @@ package main import ( - "io" - "strings" + "fmt" ) // Injectors from wire.go: - func injectedReader() io.Reader { - reader := _wireReaderValue - return reader + func injectStringer(s MyString) fmt.Stringer { + return s } +=== CONT TestWire/Cycle +=== NAME TestWire/InterfaceBindingDoesntImplement + wire_test.go:108: /tmp/wire_test4214643078/src/example.com/foo/wire.go:25:13: string does not implement example.com/foo.Fooer +=== CONT TestWire/CopyOtherDecls +=== NAME TestWire/NiladicIdentity + wire_test.go:164: wire_gen.go: + // Code generated by Wire. DO NOT EDIT. - var ( - _wireReaderValue = strings.NewReader("hello world") - ) -=== NAME TestWire/TwoDeps + //go:generate go run github.com/google/wire/cmd/wire + //go:build !wireinject + // +build !wireinject + + package main + + // Injectors from wire.go: + + func injectedMessage() string { + string2 := provideMessage() + return string2 + } +=== NAME TestWire/InjectorMissingError + wire_test.go:108: /tmp/wire_test658471496/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/Cleanup +=== CONT TestWire/Chain +=== NAME TestWire/InjectInputConflict + wire_test.go:108: /tmp/wire_test3594244480/src/example.com/foo/wire.go:24:2: multiple bindings for example.com/foo.Foo + current: + <- provider "provideFoo" (/tmp/wire_test3594244480/src/example.com/foo/foo.go:37:6) + <- provider set "Set" (/tmp/wire_test3594244480/src/example.com/foo/foo.go:33:11) + previous: + <- argument foo to injector function injectBar (/tmp/wire_test3594244480/src/example.com/foo/wire.go:23:1) +=== CONT TestWire/BuildTagsAllPackages +=== NAME TestWire/InjectInput wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -880,24 +1015,16 @@ // Injectors from wire.go: - func injectFooBar() FooBar { - foo := provideFoo() + func injectFooBar(foo Foo) FooBar { bar := provideBar() fooBar := provideFooBar(foo, bar) return fooBar } -=== NAME TestWire/InterfaceValueDoesntImplement - wire_test.go:108: /tmp/wire_test1219016322/src/example.com/foo/wire.go:26:13: string does not implement io.Reader -=== CONT TestWire/FuncArgProvider -=== CONT TestWire/FieldsOfValueStruct -=== CONT TestWire/Cleanup -=== CONT TestWire/FieldsOfStructPointer -=== CONT TestWire/Chain -=== CONT TestWire/FieldsOfStructDoNotProvidePtrToField -=== CONT TestWire/BuildTagsAllPackages === CONT TestWire/BindInterfaceWithValue -=== NAME TestWire/ImportedInterfaceBinding +=== 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 @@ -906,26 +1033,14 @@ package main - import ( - "example.com/foo" - ) - // Injectors from wire.go: - func injectFooer() foo.Fooer { - bar := provideBar() - return bar + func injectFoo() Foo { + foo := provideFoo() + return foo } === CONT TestWire/BindInjectorArgPointer -=== CONT TestWire/ValueConversion -=== CONT TestWire/ValueChain -=== NAME TestWire/UnusedProviders - wire_test.go:108: /tmp/wire_test1904028977/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused provider set "unusedSet" - wire_test.go:108: /tmp/wire_test1904028977/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused provider "main.provideUnused" - wire_test.go:108: /tmp/wire_test1904028977/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused value of type string - wire_test.go:108: /tmp/wire_test1904028977/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_test1904028977/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused field "example.com/foo.S".Cfg -=== NAME TestWire/PkgImport +=== NAME TestWire/ImportedInterfaceBinding wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -936,25 +1051,17 @@ package main import ( - "example.com/bar" - ) - - import ( - _ "example.com/anon1" - _ "example.com/anon2" + "example.com/foo" ) // Injectors from wire.go: - func injectFooBar() FooBar { - foo := provideFoo() - barBar := bar.ProvideBar() - fooBar := provideFooBar(foo, barBar) - return fooBar + func injectFooer() foo.Fooer { + bar := provideBar() + return bar } -=== NAME TestWire/InterfaceBindingDoesntImplement - wire_test.go:108: /tmp/wire_test1450678489/src/example.com/foo/wire.go:25:13: string does not implement example.com/foo.Fooer -=== NAME TestWire/FieldsOfStruct +=== CONT TestWire/RelativePkg +=== NAME TestWire/FieldsOfStructPointer wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -971,7 +1078,17 @@ string2 := s.Foo return string2 } -=== NAME TestWire/ExampleWithMocks + + func injectedMessagePtr() *string { + s := provideS() + string2 := &s.Foo + return string2 + } +=== CONT TestWire/ProviderSetBindingMissingConcreteType +=== NAME TestWire/FuncArgProvider + wire_test.go:108: /tmp/wire_test1653744756/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/PkgImport +=== NAME TestWire/FieldsOfValueStruct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -981,89 +1098,45 @@ package main + import ( + "example.com/bar" + "example.com/baz" + "example.com/foo" + "fmt" + ) + // 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{} - ) - - // 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 - } - - // 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, + _wireConfigValue = &baz.Config{ + Foo: &foo.Config{1}, + Bar: &bar.Config{2}, } - return mainAppWithMocks - } -=== NAME TestWire/ProviderSetBindingMissingConcreteType - wire_test.go:108: /tmp/wire_test1769905892/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" -=== NAME TestWire/RelativePkg - 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: + // wire.go: - func injectedMessage() string { - string2 := provideMessage() - return string2 + func main() { + svc := newBazService() + fmt.Println(svc.String()) } -=== NAME TestWire/UnexportedStruct - wire_test.go:108: /tmp/wire_test4070048400/src/example.com/foo/wire.go:26:17: foo not exported by package bar -=== CONT TestWire/ReturnError -=== CONT TestWire/Struct -=== CONT TestWire/MultipleBindings -=== CONT TestWire/NoInjectParamNames -=== CONT TestWire/NiladicIdentity === CONT TestWire/PartialCleanup -=== CONT TestWire/StructNotAStruct -=== CONT TestWire/NamingWorstCaseAllInOne -=== NAME TestWire/InterfaceValueInvalidArg0 - wire_test.go:108: /tmp/wire_test2391577730/src/example.com/foo/wire.go:25:13: first argument to InterfaceValue must be a pointer to an interface type; found string -=== NAME TestWire/InterfaceValueNotEnoughArgs - wire_test.go:108: /tmp/wire_test1081800832/src/example.com/foo/wire.go:25:38: not enough arguments in call to wire.InterfaceValue - have (string) - want (interface{}, interface{}) +=== NAME TestWire/FieldsOfStructDoNotProvidePtrToField + wire_test.go:108: /tmp/wire_test1154120588/src/example.com/foo/wire.go:23:1: inject injectedMessagePtr: no provider found for *string, output of injector === CONT TestWire/NoopBuild -=== CONT TestWire/NamingWorstCase === NAME TestWire/FieldsOfImportedStruct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1105,43 +1178,15 @@ svc := newBazService(cfg) fmt.Println(svc.String()) } -=== CONT TestWire/MultipleSimilarPackages -=== NAME TestWire/ValueIsInterfaceValue - wire_test.go:108: /tmp/wire_test3746932288/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/MultipleMissingInputs -=== NAME TestWire/InterfaceBindingInvalidArg0 - wire_test.go:108: /tmp/wire_test3134693147/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/FieldsOfCycle + wire_test.go:108: /tmp/wire_test573643008/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/NoImplicitInterface -=== NAME TestWire/InjectorMissingCleanup - wire_test.go:108: /tmp/wire_test2081803794/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/MultipleArgsSameType -=== NAME TestWire/InjectInput - 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 injectFooBar(foo Foo) FooBar { - bar := provideBar() - fooBar := provideFooBar(foo, bar) - return fooBar - } -=== CONT TestWire/InvalidInjector -=== NAME TestWire/InjectInputConflict - wire_test.go:108: /tmp/wire_test2165701585/src/example.com/foo/wire.go:24:2: multiple bindings for example.com/foo.Foo - current: - <- provider "provideFoo" (/tmp/wire_test2165701585/src/example.com/foo/foo.go:37:6) - <- provider set "Set" (/tmp/wire_test2165701585/src/example.com/foo/foo.go:33:11) - previous: - <- argument foo to injector function injectBar (/tmp/wire_test2165701585/src/example.com/foo/wire.go:23:1) -=== CONT TestWire/ReservedKeywords -=== NAME TestWire/InjectWithPanic +=== NAME TestWire/FieldsOfStruct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1154,14 +1199,12 @@ // Injectors from wire.go: func injectedMessage() string { - string2 := provideMessage() + s := provideS() + string2 := s.Foo return string2 } -=== NAME TestWire/InterfaceBindingNotEnoughArgs - wire_test.go:108: /tmp/wire_test3870929404/src/example.com/foo/wire.go:25:33: not enough arguments in call to wire.Bind - have (*Fooer) - want (interface{}, interface{}) -=== NAME TestWire/InterfaceBindingReuse +=== CONT TestWire/VarValue +=== NAME TestWire/ExportedValueDifferentPackage wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1171,24 +1214,25 @@ package main + import ( + "os" + ) + // Injectors from wire.go: - func injectFooBar() FooBar { - bar := provideBar() - fooBar := provideFooBar(bar, bar) - return fooBar + func injectedFile() *os.File { + file := _wireFileValue + return file } -=== NAME TestWire/UnexportedValue - wire_test.go:108: /tmp/wire_test1926004279/src/example.com/foo/wire.go:24:1: inject injectedMessage: value string can't be used: uses unexported identifier privateMsg + + var ( + _wireFileValue = os.Stdout + ) +=== CONT TestWire/ValueIsStruct === NAME TestWire/EmptyVar - wire_test.go:108: /tmp/wire_test799457359/src/example.com/foo/wire.go:24:13: var example.com/foo.myFakeSet struct{} is not a provider or a provider set -=== NAME TestWire/Cycle - wire_test.go:108: /tmp/wire_test3725275311/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 -=== NAME TestWire/InterfaceBinding + wire_test.go:108: /tmp/wire_test1518463618/src/example.com/foo/wire.go:24:13: var example.com/foo.myFakeSet struct{} is not a provider or a provider set +=== CONT TestWire/ValueIsInterfaceValue +=== NAME TestWire/ExportedValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1198,18 +1242,23 @@ package main + import ( + "example.com/bar" + ) + // Injectors from wire.go: - func injectFooer() Fooer { - bar := provideBar() - return bar + func injectedMessage() string { + string2 := _wireStringValue + return string2 } -=== NAME TestWire/ValueFromFunctionScope - wire_test.go:108: /tmp/wire_test1489463823/src/example.com/foo/wire.go:23:1: inject injectBar: value int can't be used: f is not declared in package scope -=== NAME TestWire/Header + + var ( + _wireStringValue = bar.PublicMsg + ) +=== CONT TestWire/ValueFromFunctionScope +=== NAME TestWire/ExampleWithMocks 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 @@ -1220,27 +1269,53 @@ // Injectors from wire.go: - func injectFoo() Foo { - foo := provideFoo() - return foo + // initApp returns a real app. + func initApp() *app { + mainTimer := _wireRealTimeValue + mainGreeter := greeter{ + T: mainTimer, + } + mainApp := &app{ + g: mainGreeter, + } + return mainApp } -=== NAME TestWire/Varargs - 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 + var ( + _wireRealTimeValue = realTime{} + ) - // Injectors from wire.go: + // 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 injectedMessage(t title, lines ...string) string { - string2 := provideMessage(lines...) - return string2 + // 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 } -=== NAME TestWire/ExportedValue +=== CONT TestWire/ValueConversion +=== NAME TestWire/DocComment wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1250,21 +1325,21 @@ package main - import ( - "example.com/bar" - ) - // Injectors from wire.go: - func injectedMessage() string { - string2 := _wireStringValue - return string2 + /* blockComment returns Foo and has a /*- style doc comment */ + func blockComment() *Foo { + foo := &Foo{} + return foo } - var ( - _wireStringValue = bar.PublicMsg - ) -=== NAME TestWire/StructPointer + // lineComment returns Bar and has a //- style doc comment + func lineComment() *Bar { + bar := &Bar{} + return bar + } +=== CONT TestWire/ValueChain +=== NAME TestWire/Cleanup wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1276,21 +1351,15 @@ // Injectors from wire.go: - func injectFooBar() *FooBar { - foo := provideFoo() - bar := provideBar() - fooBar := &FooBar{ - Foo: foo, - Bar: bar, + func injectBar() (*Bar, func()) { + foo, cleanup := provideFoo() + bar, cleanup2 := provideBar(foo) + return bar, func() { + cleanup2() + cleanup() } - return fooBar } - - func injectEmptyStruct() *Empty { - empty := &Empty{} - return empty - } -=== NAME TestWire/VarValue +=== NAME TestWire/Chain wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1302,54 +1371,21 @@ // Injectors from wire.go: - func injectedMessage() string { - string2 := _wireStringValue - return string2 + func injectFooBar() FooBar { + foo := provideFoo() + fooBar := provideFooBar(foo) + return fooBar } - - var ( - _wireStringValue = msg - ) -=== NAME TestWire/StructWithPreventTag - wire_test.go:108: /tmp/wire_test3028452191/src/example.com/foo/foo.go:45:2: "mu" is prevented from injecting by wire -=== NAME TestWire/MultipleBindings - wire_test.go:108: /tmp/wire_test1515227801/src/example.com/foo/wire.go:27:8: multiple bindings for example.com/foo.Foo - current: - <- provider "provideFooAgain" (/tmp/wire_test1515227801/src/example.com/foo/foo.go:39:6) - previous: - <- provider "provideFoo" (/tmp/wire_test1515227801/src/example.com/foo/foo.go:35:6) - wire_test.go:108: /tmp/wire_test1515227801/src/example.com/foo/wire.go:32:8: multiple bindings for example.com/foo.Foo - current: - <- provider "provideFoo" (/tmp/wire_test1515227801/src/example.com/foo/foo.go:35:6) - previous: - <- provider "provideFoo" (/tmp/wire_test1515227801/src/example.com/foo/foo.go:35:6) - <- provider set "Set" (/tmp/wire_test1515227801/src/example.com/foo/foo.go:31:11) - wire_test.go:108: /tmp/wire_test1515227801/src/example.com/foo/wire.go:37:8: multiple bindings for example.com/foo.Foo - current: - <- provider "provideFoo" (/tmp/wire_test1515227801/src/example.com/foo/foo.go:35:6) - previous: - <- provider "provideFoo" (/tmp/wire_test1515227801/src/example.com/foo/foo.go:35:6) - <- provider set "Set" (/tmp/wire_test1515227801/src/example.com/foo/foo.go:31:11) - <- provider set "SuperSet" (/tmp/wire_test1515227801/src/example.com/foo/foo.go:32:16) - wire_test.go:108: /tmp/wire_test1515227801/src/example.com/foo/foo.go:33:32: SetWithDuplicateBindings has multiple bindings for example.com/foo.Foo - current: - <- provider "provideFoo" (/tmp/wire_test1515227801/src/example.com/foo/foo.go:35:6) - <- provider set "Set" (/tmp/wire_test1515227801/src/example.com/foo/foo.go:31:11) - <- provider set "SuperSet" (/tmp/wire_test1515227801/src/example.com/foo/foo.go:32:16) - previous: - <- provider "provideFoo" (/tmp/wire_test1515227801/src/example.com/foo/foo.go:35:6) - <- provider set "Set" (/tmp/wire_test1515227801/src/example.com/foo/foo.go:31:11) - wire_test.go:108: /tmp/wire_test1515227801/src/example.com/foo/wire.go:47:8: multiple bindings for example.com/foo.Foo - current: - <- wire.Value (/tmp/wire_test1515227801/src/example.com/foo/wire.go:47:42) - previous: - <- provider "provideFoo" (/tmp/wire_test1515227801/src/example.com/foo/foo.go:35:6) - wire_test.go:108: /tmp/wire_test1515227801/src/example.com/foo/wire.go:52:8: multiple bindings for example.com/foo.Bar - current: - <- wire.Bind (/tmp/wire_test1515227801/src/example.com/foo/wire.go:52:31) - previous: - <- provider "provideBar" (/tmp/wire_test1515227801/src/example.com/foo/foo.go:43:6) -=== NAME TestWire/FieldsOfValueStruct +=== NAME TestWire/Cycle + wire_test.go:108: /tmp/wire_test3807363538/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 +=== CONT TestWire/UnexportedValue +=== CONT TestWire/UnexportedStruct +=== NAME TestWire/CopyOtherDecls wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1360,67 +1396,27 @@ package main import ( - "example.com/bar" - "example.com/baz" - "example.com/foo" "fmt" ) - // Injectors from wire.go: + // Injectors from foo.go: - func newBazService() *baz.Service { - config := _wireConfigValue - fooConfig := config.Foo - service := foo.New(fooConfig) - barConfig := config.Bar - barService := bar.New(barConfig, service) - bazService := &baz.Service{ - Foo: service, - Bar: barService, - } - return bazService + func injectedMessage() string { + string2 := provideMessage() + return string2 } - var ( - _wireConfigValue = &baz.Config{ - Foo: &foo.Config{1}, - Bar: &bar.Config{2}, - } - ) - - // wire.go: + // foo.go: func main() { - svc := newBazService() - fmt.Println(svc.String()) - } -=== NAME TestWire/FieldsOfStructDoNotProvidePtrToField - wire_test.go:108: /tmp/wire_test441893857/src/example.com/foo/wire.go:23:1: inject injectedMessagePtr: no provider found for *string, output of injector -=== NAME TestWire/FuncArgProvider - wire_test.go:108: /tmp/wire_test1169885599/src/example.com/foo/wire.go:25:19: var fn func() *example.com/foo.Foo is not a provider or a provider set -=== NAME TestWire/DocComment - 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: - - /* blockComment returns Foo and has a /*- style doc comment */ - func blockComment() *Foo { - foo := &Foo{} - return foo + fmt.Println(injectedMessage()) } - // lineComment returns Bar and has a //- style doc comment - func lineComment() *Bar { - bar := &Bar{} - return bar + // provideMessage provides a friendly user greeting. + func provideMessage() string { + return "Hello, World!" } +=== CONT TestWire/TwoDeps === NAME TestWire/BindInterfaceWithValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1446,7 +1442,8 @@ var ( _wireFileValue = os.Stdout ) -=== NAME TestWire/BuildTagsAllPackages +=== CONT TestWire/StructWithPreventTag +=== NAME TestWire/PartialCleanup wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1458,15 +1455,26 @@ // Injectors from wire.go: - func injectedMessage() string { - string2 := _wireStringValue - return string2 + 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 ( - _wireStringValue = "Hello, World!" - ) -=== NAME TestWire/NiladicIdentity +=== CONT TestWire/StructPointer +=== NAME TestWire/BuildTagsAllPackages wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1479,10 +1487,15 @@ // Injectors from wire.go: func injectedMessage() string { - string2 := provideMessage() + string2 := _wireStringValue return string2 } -=== NAME TestWire/ValueChain + + var ( + _wireStringValue = "Hello, World!" + ) +=== CONT TestWire/StructNotAStruct +=== NAME TestWire/BindInjectorArgPointer wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1494,16 +1507,12 @@ // Injectors from wire.go: - func injectFooBar() FooBar { - foo := _wireFooValue - fooBar := provideFooBar(foo) - return fooBar + func inject(foo *Foo) *Bar { + bar := NewBar(foo) + return bar } - - var ( - _wireFooValue = Foo(41) - ) -=== NAME TestWire/FieldsOfStructPointer +=== CONT TestWire/Struct +=== NAME TestWire/RelativePkg wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1516,17 +1525,15 @@ // Injectors from wire.go: func injectedMessage() string { - s := provideS() - string2 := s.Foo - return string2 - } - - func injectedMessagePtr() *string { - s := provideS() - string2 := &s.Foo + string2 := provideMessage() return string2 } -=== NAME TestWire/PartialCleanup +=== CONT TestWire/ReturnError +=== NAME TestWire/ProviderSetBindingMissingConcreteType + wire_test.go:108: /tmp/wire_test35703183/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/MultipleBindings +=== CONT TestWire/NamingWorstCase +=== NAME TestWire/PkgImport wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1536,28 +1543,24 @@ package main + import ( + "example.com/bar" + ) + + import ( + _ "example.com/anon1" + _ "example.com/anon2" + ) + // 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 injectFooBar() FooBar { + foo := provideFoo() + barBar := bar.ProvideBar() + fooBar := provideFooBar(foo, barBar) + return fooBar } -=== NAME TestWire/StructNotAStruct - wire_test.go:108: /tmp/wire_test1931903165/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/MultipleSimilarPackages === NAME TestWire/NoInjectParamNames wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1581,7 +1584,8 @@ } return mainContext, nil } -=== NAME TestWire/BindInjectorArgPointer +=== CONT TestWire/MultipleMissingInputs +=== NAME TestWire/ValueIsStruct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1593,10 +1597,40 @@ // Injectors from wire.go: - func inject(foo *Foo) *Bar { - bar := NewBar(foo) - return bar + func injectFoo() Foo { + foo := _wireFooValue + return foo + } + + var ( + _wireFooValue = Foo{X: 42} + ) +=== CONT TestWire/InvalidInjector +=== NAME TestWire/NoImplicitInterface + wire_test.go:108: /tmp/wire_test1205808908/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/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 + + // Injectors from wire.go: + + func injectedMessage() string { + string2 := _wireStringValue + return string2 } + + var ( + _wireStringValue = msg + ) +=== NAME TestWire/ValueIsInterfaceValue + wire_test.go:108: /tmp/wire_test590210716/src/example.com/foo/wire.go:27:13: argument to Value may not be an interface value (found io.Reader); use InterfaceValue instead === NAME TestWire/ValueConversion wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1617,7 +1651,48 @@ var ( _wireFooValue = Foo("Hello, World!") ) -=== NAME TestWire/NamingWorstCaseAllInOne +=== NAME TestWire/ValueFromFunctionScope + wire_test.go:108: /tmp/wire_test3167956900/src/example.com/foo/wire.go:23:1: inject injectBar: value int can't be used: f is not declared in package scope +=== NAME TestWire/UnexportedStruct + wire_test.go:108: /tmp/wire_test1980285557/src/example.com/foo/wire.go:26:17: foo not exported by package bar +=== NAME TestWire/MultipleBindings + wire_test.go:108: /tmp/wire_test3708194084/src/example.com/foo/wire.go:27:8: multiple bindings for example.com/foo.Foo + current: + <- provider "provideFooAgain" (/tmp/wire_test3708194084/src/example.com/foo/foo.go:39:6) + previous: + <- provider "provideFoo" (/tmp/wire_test3708194084/src/example.com/foo/foo.go:35:6) + wire_test.go:108: /tmp/wire_test3708194084/src/example.com/foo/wire.go:32:8: multiple bindings for example.com/foo.Foo + current: + <- provider "provideFoo" (/tmp/wire_test3708194084/src/example.com/foo/foo.go:35:6) + previous: + <- provider "provideFoo" (/tmp/wire_test3708194084/src/example.com/foo/foo.go:35:6) + <- provider set "Set" (/tmp/wire_test3708194084/src/example.com/foo/foo.go:31:11) + wire_test.go:108: /tmp/wire_test3708194084/src/example.com/foo/wire.go:37:8: multiple bindings for example.com/foo.Foo + current: + <- provider "provideFoo" (/tmp/wire_test3708194084/src/example.com/foo/foo.go:35:6) + previous: + <- provider "provideFoo" (/tmp/wire_test3708194084/src/example.com/foo/foo.go:35:6) + <- provider set "Set" (/tmp/wire_test3708194084/src/example.com/foo/foo.go:31:11) + <- provider set "SuperSet" (/tmp/wire_test3708194084/src/example.com/foo/foo.go:32:16) + wire_test.go:108: /tmp/wire_test3708194084/src/example.com/foo/foo.go:33:32: SetWithDuplicateBindings has multiple bindings for example.com/foo.Foo + current: + <- provider "provideFoo" (/tmp/wire_test3708194084/src/example.com/foo/foo.go:35:6) + <- provider set "Set" (/tmp/wire_test3708194084/src/example.com/foo/foo.go:31:11) + <- provider set "SuperSet" (/tmp/wire_test3708194084/src/example.com/foo/foo.go:32:16) + previous: + <- provider "provideFoo" (/tmp/wire_test3708194084/src/example.com/foo/foo.go:35:6) + <- provider set "Set" (/tmp/wire_test3708194084/src/example.com/foo/foo.go:31:11) + wire_test.go:108: /tmp/wire_test3708194084/src/example.com/foo/wire.go:47:8: multiple bindings for example.com/foo.Foo + current: + <- wire.Value (/tmp/wire_test3708194084/src/example.com/foo/wire.go:47:42) + previous: + <- provider "provideFoo" (/tmp/wire_test3708194084/src/example.com/foo/foo.go:35:6) + wire_test.go:108: /tmp/wire_test3708194084/src/example.com/foo/wire.go:52:8: multiple bindings for example.com/foo.Bar + current: + <- wire.Bind (/tmp/wire_test3708194084/src/example.com/foo/wire.go:52:31) + previous: + <- provider "provideBar" (/tmp/wire_test3708194084/src/example.com/foo/foo.go:43:6) +=== NAME TestWire/StructPointer wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1627,50 +1702,46 @@ package main - import ( - context2 "context" - "fmt" - "os" - "reflect" - ) - - // Injectors from foo.go: + // Injectors from wire.go: - func inject(context3 context2.Context, err2 struct{}) (context, error) { - mainContext, err := Provide(context3) - if err != nil { - return context{}, err + func injectFooBar() *FooBar { + foo := provideFoo() + bar := provideBar() + fooBar := &FooBar{ + Foo: foo, + Bar: bar, } - return mainContext, nil + return fooBar } - // foo.go: + func injectEmptyStruct() *Empty { + empty := &Empty{} + return empty + } +=== NAME TestWire/ValueChain + wire_test.go:164: wire_gen.go: + // Code generated by Wire. DO NOT EDIT. - type context struct{} + //go:generate go run github.com/google/wire/cmd/wire + //go:build !wireinject + // +build !wireinject - 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) - } + package main - func Provide(context2_2 context2.Context) (context, error) { - var context3 = context2.Background() - _ = context2_2 - _ = context3 - return context{}, nil - } + // Injectors from wire.go: - func (context) Provide() { + func injectFooBar() FooBar { + foo := _wireFooValue + fooBar := provideFooBar(foo) + return fooBar } -=== NAME TestWire/ReturnError + + var ( + _wireFooValue = Foo(41) + ) +=== NAME TestWire/UnexportedValue + wire_test.go:108: /tmp/wire_test2748522075/src/example.com/foo/wire.go:24:1: inject injectedMessage: value string can't be used: uses unexported identifier privateMsg +=== NAME TestWire/TwoDeps wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1682,14 +1753,13 @@ // Injectors from wire.go: - func injectFoo() (Foo, error) { - foo, err := provideFoo() - if err != nil { - return 0, err - } - return foo, nil + func injectFooBar() FooBar { + foo := provideFoo() + bar := provideBar() + fooBar := provideFooBar(foo, bar) + return fooBar } -=== NAME TestWire/NamingWorstCase +=== NAME TestWire/ReturnError wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1699,19 +1769,19 @@ 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 } +=== NAME TestWire/StructWithPreventTag + wire_test.go:108: /tmp/wire_test4213837621/src/example.com/foo/foo.go:45:2: "mu" is prevented from injecting by wire +=== NAME TestWire/StructNotAStruct + wire_test.go:108: /tmp/wire_test2267802660/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/Struct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1741,7 +1811,7 @@ } return fooBar } -=== NAME TestWire/Chain +=== NAME TestWire/NamingWorstCase wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1751,33 +1821,35 @@ package main - // Injectors from wire.go: - - func injectFooBar() FooBar { - foo := provideFoo() - fooBar := provideFooBar(foo) - return fooBar - } -=== NAME TestWire/Cleanup - 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 injectBar() (*Bar, func()) { - foo, cleanup := provideFoo() - bar, cleanup2 := provideBar(foo) - return bar, func() { - cleanup2() - cleanup() + func inject(context3 context2.Context, err2 struct{}) (context, error) { + mainContext, err := provide(context3) + if err != nil { + return context{}, err } + return mainContext, nil } +=== NAME TestWire/UnusedProviders + wire_test.go:108: /tmp/wire_test1934881146/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused provider set "unusedSet" + wire_test.go:108: /tmp/wire_test1934881146/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused provider "main.provideUnused" + wire_test.go:108: /tmp/wire_test1934881146/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused value of type string + wire_test.go:108: /tmp/wire_test1934881146/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_test1934881146/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused field "example.com/foo.S".Cfg +=== NAME TestWire/MultipleMissingInputs + wire_test.go:108: /tmp/wire_test48548650/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_test48548650/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_test48548650/src/example.com/foo/foo.go:29:6) + wire_test.go:108: /tmp/wire_test48548650/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_test48548650/src/example.com/foo/foo.go:29:6) + wire_test.go:108: /tmp/wire_test48548650/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_test48548650/src/example.com/foo/foo.go:37:6) + needed by example.com/foo.Zap in provider "provideZap" (/tmp/wire_test48548650/src/example.com/foo/foo.go:41:6) + needed by example.com/foo.Zop in provider "provideZop" (/tmp/wire_test48548650/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. @@ -1839,122 +1911,86 @@ svc := newMainService(cfg) fmt.Println(svc.String()) } -=== NAME TestWire/MultipleMissingInputs - wire_test.go:108: /tmp/wire_test616350223/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_test616350223/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_test616350223/src/example.com/foo/foo.go:29:6) - wire_test.go:108: /tmp/wire_test616350223/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_test616350223/src/example.com/foo/foo.go:29:6) - wire_test.go:108: /tmp/wire_test616350223/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_test616350223/src/example.com/foo/foo.go:37:6) - needed by example.com/foo.Zap in provider "provideZap" (/tmp/wire_test616350223/src/example.com/foo/foo.go:41:6) - needed by example.com/foo.Zop in provider "provideZop" (/tmp/wire_test616350223/src/example.com/foo/foo.go:45:6) === 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/NoImplicitInterface - wire_test.go:108: /tmp/wire_test2541295632/src/example.com/foo/wire.go:23:1: inject injectFooer: no provider found for example.com/foo.Fooer, output of injector -=== 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 === NAME TestWire/MultipleArgsSameType - wire_test.go:108: /tmp/wire_test1002971396/src/example.com/foo/wire.go:25:8: multiple bindings for string + wire_test.go:108: /tmp/wire_test3760135673/src/example.com/foo/wire.go:25:8: multiple bindings for string current: - <- argument b to injector function inject (/tmp/wire_test1002971396/src/example.com/foo/wire.go:23:1) + <- argument b to injector function inject (/tmp/wire_test3760135673/src/example.com/foo/wire.go:23:1) previous: - <- argument a to injector function inject (/tmp/wire_test1002971396/src/example.com/foo/wire.go:23:1) ---- PASS: TestWire (0.01s) - --- PASS: TestWire/BindInjectorArg (4.97s) - --- PASS: TestWire/InterfaceValueDoesntImplement (5.10s) - --- PASS: TestWire/InjectorMissingError (5.06s) - --- PASS: TestWire/ReturnArgumentAsInterface (5.11s) - --- PASS: TestWire/NiladicValue (5.11s) - --- PASS: TestWire/CopyOtherDecls (5.06s) - --- PASS: TestWire/ValueIsStruct (5.06s) - --- PASS: TestWire/FieldsOfCycle (5.06s) - --- PASS: TestWire/InterfaceValue (5.11s) - --- PASS: TestWire/TwoDeps (5.11s) - --- PASS: TestWire/ImportedInterfaceBinding (5.07s) - --- PASS: TestWire/ExportedValueDifferentPackage (5.07s) - --- PASS: TestWire/ProviderSetBindingMissingConcreteType (5.40s) - --- PASS: TestWire/PkgImport (5.40s) - --- PASS: TestWire/RelativePkg (5.40s) - --- PASS: TestWire/UnexportedStruct (5.39s) - --- PASS: TestWire/FieldsOfStruct (5.35s) - --- PASS: TestWire/ExampleWithMocks (5.35s) - --- PASS: TestWire/InterfaceBindingDoesntImplement (5.35s) - --- PASS: TestWire/UnusedProviders (5.41s) - --- PASS: TestWire/InterfaceValueInvalidArg0 (5.87s) - --- PASS: TestWire/InterfaceValueNotEnoughArgs (5.87s) - --- PASS: TestWire/FieldsOfImportedStruct (5.88s) - --- PASS: TestWire/ValueIsInterfaceValue (6.04s) - --- PASS: TestWire/InterfaceBindingInvalidArg0 (6.34s) - --- PASS: TestWire/InjectorMissingCleanup (6.34s) - --- PASS: TestWire/InjectInput (6.51s) - --- PASS: TestWire/InjectInputConflict (6.51s) - --- PASS: TestWire/InjectWithPanic (6.51s) - --- PASS: TestWire/ValueFromFunctionScope (6.58s) - --- PASS: TestWire/Cycle (6.58s) - --- PASS: TestWire/InterfaceBinding (6.58s) - --- PASS: TestWire/EmptyVar (6.58s) - --- PASS: TestWire/InterfaceBindingReuse (6.58s) - --- PASS: TestWire/UnexportedValue (6.63s) - --- PASS: TestWire/InterfaceBindingNotEnoughArgs (6.73s) - --- PASS: TestWire/Header (6.79s) - --- PASS: TestWire/Varargs (6.80s) - --- PASS: TestWire/ExportedValue (6.81s) - --- PASS: TestWire/StructPointer (6.81s) - --- PASS: TestWire/VarValue (6.81s) - --- PASS: TestWire/StructWithPreventTag (6.86s) - --- PASS: TestWire/MultipleBindings (1.82s) - --- PASS: TestWire/FieldsOfValueStruct (2.49s) - --- PASS: TestWire/FieldsOfStructDoNotProvidePtrToField (2.50s) - --- PASS: TestWire/FuncArgProvider (2.51s) - --- PASS: TestWire/DocComment (2.66s) - --- PASS: TestWire/BindInterfaceWithValue (2.54s) - --- PASS: TestWire/BuildTagsAllPackages (2.56s) - --- PASS: TestWire/NiladicIdentity (2.27s) - --- PASS: TestWire/ValueChain (2.56s) - --- PASS: TestWire/FieldsOfStructPointer (2.57s) - --- PASS: TestWire/PartialCleanup (2.29s) - --- PASS: TestWire/StructNotAStruct (2.36s) - --- PASS: TestWire/NoInjectParamNames (2.37s) - --- PASS: TestWire/BindInjectorArgPointer (2.66s) - --- PASS: TestWire/ValueConversion (2.67s) - --- PASS: TestWire/NamingWorstCaseAllInOne (2.38s) - --- PASS: TestWire/ReturnError (2.41s) - --- PASS: TestWire/NoopBuild (1.94s) - --- PASS: TestWire/NamingWorstCase (1.94s) - --- PASS: TestWire/Struct (2.42s) - --- PASS: TestWire/Chain (2.72s) - --- PASS: TestWire/Cleanup (2.73s) - --- PASS: TestWire/MultipleSimilarPackages (1.94s) - --- PASS: TestWire/MultipleMissingInputs (1.79s) - --- PASS: TestWire/InvalidInjector (1.40s) - --- PASS: TestWire/NoImplicitInterface (1.60s) - --- PASS: TestWire/ReservedKeywords (1.44s) - --- PASS: TestWire/MultipleArgsSameType (1.61s) + <- argument a to injector function inject (/tmp/wire_test3760135673/src/example.com/foo/wire.go:23:1) +--- PASS: TestWire (0.06s) + --- PASS: TestWire/InterfaceValueNotEnoughArgs (14.06s) + --- PASS: TestWire/Varargs (15.19s) + --- PASS: TestWire/NiladicValue (15.22s) + --- PASS: TestWire/InterfaceValueDoesntImplement (15.19s) + --- PASS: TestWire/InterfaceValue (15.26s) + --- PASS: TestWire/NamingWorstCaseAllInOne (15.65s) + --- PASS: TestWire/InterfaceValueInvalidArg0 (16.61s) + --- PASS: TestWire/InterfaceBinding (16.53s) + --- PASS: TestWire/InterfaceBindingInvalidArg0 (17.94s) + --- PASS: TestWire/InterfaceBindingReuse (18.33s) + --- PASS: TestWire/BindInjectorArg (18.79s) + --- PASS: TestWire/InjectWithPanic (19.96s) + --- PASS: TestWire/InjectorMissingCleanup (20.19s) + --- PASS: TestWire/InterfaceBindingNotEnoughArgs (20.26s) + --- PASS: TestWire/ReservedKeywords (20.48s) + --- PASS: TestWire/ReturnArgumentAsInterface (20.74s) + --- PASS: TestWire/InterfaceBindingDoesntImplement (20.66s) + --- PASS: TestWire/InjectorMissingError (20.66s) + --- PASS: TestWire/NiladicIdentity (20.85s) + --- PASS: TestWire/InjectInputConflict (20.68s) + --- PASS: TestWire/InjectInput (9.28s) + --- PASS: TestWire/Header (8.72s) + --- PASS: TestWire/ImportedInterfaceBinding (9.57s) + --- PASS: TestWire/FieldsOfStructPointer (9.19s) + --- PASS: TestWire/FuncArgProvider (9.67s) + --- PASS: TestWire/FieldsOfValueStruct (9.68s) + --- PASS: TestWire/FieldsOfStructDoNotProvidePtrToField (8.51s) + --- PASS: TestWire/FieldsOfImportedStruct (7.65s) + --- PASS: TestWire/FieldsOfCycle (8.26s) + --- PASS: TestWire/FieldsOfStruct (10.16s) + --- PASS: TestWire/ExportedValueDifferentPackage (8.27s) + --- PASS: TestWire/EmptyVar (8.83s) + --- PASS: TestWire/ExportedValue (9.97s) + --- PASS: TestWire/ExampleWithMocks (9.87s) + --- PASS: TestWire/DocComment (10.02s) + --- PASS: TestWire/Cleanup (9.71s) + --- PASS: TestWire/Chain (9.71s) + --- PASS: TestWire/Cycle (9.84s) + --- PASS: TestWire/CopyOtherDecls (9.74s) + --- PASS: TestWire/BindInterfaceWithValue (7.43s) + --- PASS: TestWire/PartialCleanup (5.78s) + --- PASS: TestWire/BuildTagsAllPackages (9.96s) + --- PASS: TestWire/BindInjectorArgPointer (7.09s) + --- PASS: TestWire/RelativePkg (6.40s) + --- PASS: TestWire/ProviderSetBindingMissingConcreteType (6.43s) + --- PASS: TestWire/NoopBuild (6.88s) + --- PASS: TestWire/PkgImport (7.93s) + --- PASS: TestWire/NoInjectParamNames (9.04s) + --- PASS: TestWire/ValueIsStruct (8.94s) + --- PASS: TestWire/NoImplicitInterface (9.30s) + --- PASS: TestWire/VarValue (9.46s) + --- PASS: TestWire/ValueIsInterfaceValue (7.09s) + --- PASS: TestWire/ValueConversion (7.53s) + --- PASS: TestWire/ValueFromFunctionScope (8.44s) + --- PASS: TestWire/UnexportedStruct (8.02s) + --- PASS: TestWire/MultipleBindings (7.45s) + --- PASS: TestWire/StructPointer (8.01s) + --- PASS: TestWire/ValueChain (8.41s) + --- PASS: TestWire/UnexportedValue (8.40s) + --- PASS: TestWire/TwoDeps (8.43s) + --- PASS: TestWire/StructNotAStruct (8.62s) + --- PASS: TestWire/StructWithPreventTag (8.69s) + --- PASS: TestWire/ReturnError (8.28s) + --- PASS: TestWire/Struct (8.64s) + --- PASS: TestWire/NamingWorstCase (7.69s) + --- PASS: TestWire/UnusedProviders (9.26s) + --- PASS: TestWire/MultipleMissingInputs (5.20s) + --- PASS: TestWire/MultipleSimilarPackages (7.24s) + --- PASS: TestWire/InvalidInjector (4.60s) + --- PASS: TestWire/MultipleArgsSameType (4.52s) === RUN TestUnexport --- PASS: TestUnexport (0.00s) === RUN TestExport @@ -2010,7 +2046,7 @@ --- PASS: TestDisambiguate/disambiguate("select",_map[]) (0.00s) --- PASS: TestDisambiguate/disambiguate("var",_map[]) (0.00s) PASS -ok github.com/google/wire/internal/wire 8.354s +ok github.com/google/wire/internal/wire 41.108s create-stamp debian/debhelper-build-stamp dh_testroot -O--builddirectory=_build -O--buildsystem=golang dh_prep -O--builddirectory=_build -O--buildsystem=golang @@ -2047,12 +2083,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/3432473/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3432473/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/4041495 and its subdirectories -I: Current time: Wed Jul 16 08:03:14 -12 2025 -I: pbuilder-time-stamp: 1752696194 +I: removing directory /srv/workspace/pbuilder/3432473 and its subdirectories +I: Current time: Fri Jun 14 03:45:35 +14 2024 +I: pbuilder-time-stamp: 1718286335