Diff of the two buildlogs: -- --- b1/build.log 2024-05-17 17:56:27.038813070 +0000 +++ b2/build.log 2024-05-17 18:04:05.039329756 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu Jun 19 12:17:56 -12 2025 -I: pbuilder-time-stamp: 1750378676 +I: Current time: Sat May 18 07:56:31 +14 2024 +I: pbuilder-time-stamp: 1715968591 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/3914156/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3587633/tmp/hooks/D01_modify_environment starting +debug: Running on ionos1-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 May 17 17:56 /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/3587633/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3587633/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='trixie' - 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=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='6cf05b7da2144896ad934665593fb0fb' - 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='3914156' - PS1='# ' - PS2='> ' + INVOCATION_ID=318363f635064f8788c5a812ac3e8988 + 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=3587633 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.YF0wHJ5X/pbuilderrc_TW0h --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.YF0wHJ5X/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.YF0wHJ5X/pbuilderrc_hM5S --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.YF0wHJ5X/b2 --logfile b2/build.log golang-github-google-wire_0.5.0-2.dsc' + SUDO_GID=110 + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos15-amd64 6.6.13+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.6.13-1~bpo12+1 (2024-02-15) 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 17 17:46 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/3914156/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 May 17 11:24 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3587633/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 amd64 golang-golang-x-net-dev all 1:0.24.0+dfsg-1 [895 kB] Get: 48 http://deb.debian.org/debian trixie/main amd64 golang-golang-x-sync-dev all 0.7.0-1 [19.0 kB] Get: 49 http://deb.debian.org/debian trixie/main amd64 golang-golang-x-tools-dev all 1:0.19.0+ds-1 [1566 kB] -Fetched 71.6 MB in 1s (79.2 MB/s) +Fetched 71.6 MB in 4s (17.0 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 ... 19699 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/3587633/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/3587633/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 @@ -402,35 +438,35 @@ 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 -internal/godebugs -internal/goversion -golang.org/x/tools/internal/packagesinternal -encoding -log/internal -internal/platform -internal/itoa -internal/race -internal/coverage/rtcov + 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/goarch -runtime/internal/syscall -unicode/utf8 +internal/coverage/rtcov +internal/unsafeheader internal/goos -cmp +github.com/google/wire internal/cpu -unicode/utf16 +runtime/internal/syscall runtime/internal/atomic -github.com/google/wire -math/bits -internal/unsafeheader -unicode +internal/race sync/atomic -internal/goexperiment +internal/godebugs +unicode/utf8 +internal/platform +log/internal +internal/goversion +unicode internal/chacha8rand runtime/internal/math -internal/gover +cmp +math/bits +unicode/utf16 +internal/itoa +encoding +internal/goexperiment internal/abi runtime/internal/sys +golang.org/x/tools/internal/packagesinternal +internal/gover slices internal/bytealg math @@ -444,71 +480,71 @@ sort math/rand internal/oserror -path -internal/safefilepath io strconv +internal/safefilepath +path syscall -hash +strings text/tabwriter bytes -strings +hash container/heap golang.org/x/mod/semver -crypto -internal/types/errors reflect +internal/types/errors +crypto go/version -go/build/constraint bufio regexp/syntax -regexp -internal/syscall/execenv +go/build/constraint internal/syscall/unix +internal/syscall/execenv time +regexp +internal/fmtsort +encoding/binary context io/fs internal/poll -internal/fmtsort -encoding/binary encoding/base64 crypto/md5 os +path/filepath internal/lazyregexp io/ioutil -path/filepath fmt os/exec internal/goroot flag -internal/buildcfg go/token -golang.org/x/tools/internal/event/label -log -github.com/pmezard/go-difflib/difflib go/doc/comment +internal/buildcfg encoding/json math/big +golang.org/x/tools/internal/event/label +log +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/tokeninternal golang.org/x/tools/internal/event/core -github.com/google/subcommands +golang.org/x/tools/internal/event/tag go/ast +github.com/google/subcommands golang.org/x/tools/internal/event golang.org/x/tools/internal/gocommand golang.org/x/tools/go/internal/packagesdriver +go/printer go/internal/typeparams golang.org/x/tools/go/ast/astutil -go/printer go/doc go/parser go/constant golang.org/x/tools/internal/pkgbits -go/format go/build go/types +go/format golang.org/x/tools/internal/aliases golang.org/x/tools/internal/versions golang.org/x/tools/internal/typesinternal @@ -521,7 +557,7 @@ github.com/google/wire/internal/wire github.com/google/wire/cmd/wire dh_auto_test -O--builddirectory=_build -O--buildsystem=golang - cd _build && go test -vet=off -v -p 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 @@ -667,114 +703,35 @@ === PAUSE TestWire/Varargs === CONT TestWire/BindInjectorArg === CONT TestWire/InterfaceValueNotEnoughArgs -=== CONT TestWire/ReturnArgumentAsInterface -=== CONT TestWire/UnusedProviders -=== CONT TestWire/NiladicValue -=== CONT TestWire/MultipleSimilarPackages -=== CONT TestWire/ValueIsInterfaceValue -=== CONT TestWire/FieldsOfValueStruct -=== CONT TestWire/StructWithPreventTag -=== CONT TestWire/PkgImport -=== CONT TestWire/Varargs -=== CONT TestWire/ValueConversion -=== CONT TestWire/ValueChain +=== CONT TestWire/FieldsOfStructPointer +=== CONT TestWire/InjectorMissingError +=== CONT TestWire/FieldsOfStructDoNotProvidePtrToField === CONT TestWire/InterfaceValueInvalidArg0 -=== CONT TestWire/ValueFromFunctionScope -=== CONT TestWire/InjectInput -=== CONT TestWire/PartialCleanup -=== CONT TestWire/NoInjectParamNames -=== CONT TestWire/NoImplicitInterface -=== CONT TestWire/NoopBuild -=== CONT TestWire/UnexportedStruct -=== CONT TestWire/InterfaceValueDoesntImplement -=== CONT TestWire/InterfaceValue -=== CONT TestWire/InterfaceBindingReuse -=== CONT TestWire/InterfaceBindingNotEnoughArgs +=== CONT TestWire/Cycle +=== CONT TestWire/CopyOtherDecls +=== CONT TestWire/InjectorMissingCleanup +=== CONT TestWire/Varargs === CONT TestWire/InterfaceBindingInvalidArg0 -=== CONT TestWire/InterfaceBindingDoesntImplement +=== CONT TestWire/InterfaceBindingReuse +=== CONT TestWire/ExportedValue +=== CONT TestWire/FieldsOfStruct === CONT TestWire/InterfaceBinding -=== CONT TestWire/InjectorMissingError -=== CONT TestWire/InjectorMissingCleanup -=== CONT TestWire/InjectWithPanic -=== CONT TestWire/InjectInputConflict +=== CONT TestWire/FieldsOfImportedStruct +=== CONT TestWire/FieldsOfCycle +=== CONT TestWire/ExportedValueDifferentPackage +=== CONT TestWire/RelativePkg +=== CONT TestWire/InterfaceBindingDoesntImplement +=== NAME TestWire/InjectorMissingError + wire_test.go:108: /tmp/wire_test3040672159/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/VarValue -=== CONT TestWire/ImportedInterfaceBinding -=== CONT TestWire/Header +=== NAME TestWire/FieldsOfStructDoNotProvidePtrToField + wire_test.go:108: /tmp/wire_test1605339407/src/example.com/foo/wire.go:23:1: inject injectedMessagePtr: no provider found for *string, output of injector === CONT TestWire/ValueIsStruct -=== CONT TestWire/FuncArgProvider -=== CONT TestWire/RelativePkg -=== CONT TestWire/ReservedKeywords -=== CONT TestWire/InvalidInjector -=== CONT TestWire/MultipleMissingInputs -=== CONT TestWire/MultipleBindings -=== NAME TestWire/UnusedProviders - wire_test.go:108: /tmp/wire_test1212537468/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused provider set "unusedSet" - wire_test.go:108: /tmp/wire_test1212537468/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused provider "main.provideUnused" - wire_test.go:108: /tmp/wire_test1212537468/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused value of type string - wire_test.go:108: /tmp/wire_test1212537468/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_test1212537468/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused field "example.com/foo.S".Cfg -=== CONT TestWire/MultipleArgsSameType -=== NAME TestWire/ValueChain - 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() FooBar { - foo := _wireFooValue - fooBar := provideFooBar(foo) - return fooBar - } - - var ( - _wireFooValue = Foo(41) - ) -=== CONT TestWire/TwoDeps -=== NAME TestWire/PkgImport - 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/bar" - ) - - import ( - _ "example.com/anon1" - _ "example.com/anon2" - ) - - // Injectors from wire.go: - - func injectFooBar() FooBar { - foo := provideFoo() - barBar := bar.ProvideBar() - fooBar := provideFooBar(foo, barBar) - return fooBar - } -=== CONT TestWire/UnexportedValue -=== NAME TestWire/InterfaceBindingNotEnoughArgs - wire_test.go:108: /tmp/wire_test373122559/src/example.com/foo/wire.go:25:33: not enough arguments in call to wire.Bind - have (*Fooer) - want (interface{}, interface{}) -=== CONT TestWire/DocComment -=== CONT TestWire/FieldsOfStructPointer === NAME TestWire/InterfaceValueNotEnoughArgs - wire_test.go:108: /tmp/wire_test2313783183/src/example.com/foo/wire.go:25:38: not enough arguments in call to wire.InterfaceValue + wire_test.go:108: /tmp/wire_test691536484/src/example.com/foo/wire.go:25:38: not enough arguments in call to wire.InterfaceValue have (string) want (interface{}, interface{}) -=== CONT TestWire/FieldsOfStructDoNotProvidePtrToField +=== CONT TestWire/ValueIsInterfaceValue === NAME TestWire/RelativePkg wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -791,8 +748,7 @@ string2 := provideMessage() return string2 } -=== CONT TestWire/FieldsOfStruct -=== NAME TestWire/MultipleSimilarPackages +=== NAME TestWire/FieldsOfImportedStruct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -811,53 +767,31 @@ // Injectors from wire.go: - func newMainService(mainConfig MainConfig) *MainService { - config := mainConfig.Foo - service := foo.New(config) - barConfig := mainConfig.Bar + func newBazService(config *baz.Config) *baz.Service { + fooConfig := config.Foo + service := foo.New(fooConfig) + barConfig := config.Bar barService := bar.New(barConfig, service) - bazConfig := mainConfig.baz - bazService := baz.New(bazConfig, barService) - mainService := &MainService{ + bazService := &baz.Service{ Foo: service, Bar: barService, - baz: bazService, } - return mainService + return bazService } // 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{ + cfg := &baz.Config{ Foo: &foo.Config{1}, Bar: &bar.Config{2}, - baz: &baz.Config{3}, } - svc := newMainService(cfg) + svc := newBazService(cfg) fmt.Println(svc.String()) } -=== CONT TestWire/FieldsOfImportedStruct -=== NAME TestWire/FuncArgProvider - wire_test.go:108: /tmp/wire_test2754930194/src/example.com/foo/wire.go:25:19: var fn func() *example.com/foo.Foo is not a provider or a provider set -=== CONT TestWire/FieldsOfCycle -=== NAME TestWire/NiladicValue +=== CONT TestWire/ValueFromFunctionScope +=== CONT TestWire/ValueConversion +=== NAME TestWire/Varargs wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -869,18 +803,12 @@ // 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/ExportedValueDifferentPackage -=== NAME TestWire/NoImplicitInterface - wire_test.go:108: /tmp/wire_test1785651046/src/example.com/foo/wire.go:23:1: inject injectFooer: no provider found for example.com/foo.Fooer, output of injector -=== NAME TestWire/NoInjectParamNames +=== CONT TestWire/ValueChain +=== NAME TestWire/CopyOtherDecls wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -891,59 +819,31 @@ package main import ( - context2 "context" + "fmt" ) - // Injectors from wire.go: + // Injectors from foo.go: - func inject(contextContext context2.Context, arg struct{}) (context, error) { - mainContext, err := provide(contextContext) - if err != nil { - return context{}, err - } - return mainContext, nil + func injectedMessage() string { + string2 := provideMessage() + return string2 } -=== CONT TestWire/ExportedValue -=== CONT TestWire/ExampleWithMocks -=== NAME TestWire/MultipleBindings - wire_test.go:108: /tmp/wire_test2390067549/src/example.com/foo/wire.go:27:8: multiple bindings for example.com/foo.Foo - current: - <- provider "provideFooAgain" (/tmp/wire_test2390067549/src/example.com/foo/foo.go:39:6) - previous: - <- provider "provideFoo" (/tmp/wire_test2390067549/src/example.com/foo/foo.go:35:6) - wire_test.go:108: /tmp/wire_test2390067549/src/example.com/foo/wire.go:32:8: multiple bindings for example.com/foo.Foo - current: - <- provider "provideFoo" (/tmp/wire_test2390067549/src/example.com/foo/foo.go:35:6) - previous: - <- provider "provideFoo" (/tmp/wire_test2390067549/src/example.com/foo/foo.go:35:6) - <- provider set "Set" (/tmp/wire_test2390067549/src/example.com/foo/foo.go:31:11) - wire_test.go:108: /tmp/wire_test2390067549/src/example.com/foo/wire.go:37:8: multiple bindings for example.com/foo.Foo - current: - <- provider "provideFoo" (/tmp/wire_test2390067549/src/example.com/foo/foo.go:35:6) - previous: - <- provider "provideFoo" (/tmp/wire_test2390067549/src/example.com/foo/foo.go:35:6) - <- provider set "Set" (/tmp/wire_test2390067549/src/example.com/foo/foo.go:31:11) - <- provider set "SuperSet" (/tmp/wire_test2390067549/src/example.com/foo/foo.go:32:16) - wire_test.go:108: /tmp/wire_test2390067549/src/example.com/foo/foo.go:33:32: SetWithDuplicateBindings has multiple bindings for example.com/foo.Foo - current: - <- provider "provideFoo" (/tmp/wire_test2390067549/src/example.com/foo/foo.go:35:6) - <- provider set "Set" (/tmp/wire_test2390067549/src/example.com/foo/foo.go:31:11) - <- provider set "SuperSet" (/tmp/wire_test2390067549/src/example.com/foo/foo.go:32:16) - previous: - <- provider "provideFoo" (/tmp/wire_test2390067549/src/example.com/foo/foo.go:35:6) - <- provider set "Set" (/tmp/wire_test2390067549/src/example.com/foo/foo.go:31:11) - wire_test.go:108: /tmp/wire_test2390067549/src/example.com/foo/wire.go:47:8: multiple bindings for example.com/foo.Foo - current: - <- wire.Value (/tmp/wire_test2390067549/src/example.com/foo/wire.go:47:42) - previous: - <- provider "provideFoo" (/tmp/wire_test2390067549/src/example.com/foo/foo.go:35:6) - wire_test.go:108: /tmp/wire_test2390067549/src/example.com/foo/wire.go:52:8: multiple bindings for example.com/foo.Bar - current: - <- wire.Bind (/tmp/wire_test2390067549/src/example.com/foo/wire.go:52:31) - previous: - <- provider "provideBar" (/tmp/wire_test2390067549/src/example.com/foo/foo.go:43:6) -=== CONT TestWire/EmptyVar -=== NAME TestWire/InterfaceValue + + // foo.go: + + func main() { + fmt.Println(injectedMessage()) + } + + // provideMessage provides a friendly user greeting. + func provideMessage() string { + return "Hello, World!" + } +=== CONT TestWire/UnusedProviders +=== NAME TestWire/InterfaceBindingDoesntImplement + wire_test.go:108: /tmp/wire_test670118832/src/example.com/foo/wire.go:25:13: string does not implement example.com/foo.Fooer +=== CONT TestWire/UnexportedValue +=== NAME TestWire/ExportedValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -954,22 +854,21 @@ package main import ( - "io" - "strings" + "example.com/bar" ) // 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 = bar.PublicMsg ) -=== CONT TestWire/NamingWorstCaseAllInOne -=== NAME TestWire/Varargs +=== CONT TestWire/UnexportedStruct +=== NAME TestWire/BindInjectorArg wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -981,12 +880,12 @@ // Injectors from wire.go: - func injectedMessage(t title, lines ...string) string { - string2 := provideMessage(lines...) - return string2 + func inject(foo Foo) *Bar { + bar := NewBar(foo) + return bar } -=== CONT TestWire/NiladicIdentity -=== NAME TestWire/PartialCleanup +=== CONT TestWire/TwoDeps +=== NAME TestWire/FieldsOfStructPointer wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -998,29 +897,22 @@ // Injectors from wire.go: - func injectBaz() (Baz, func(), error) { - foo, cleanup := provideFoo() - bar, cleanup2, err := provideBar(foo) - if err != nil { - cleanup() - return 0, nil, err - } - baz, err := provideBaz(bar) - if err != nil { - cleanup2() - cleanup() - return 0, nil, err - } - return baz, func() { - cleanup2() - cleanup() - }, nil + func injectedMessage() string { + s := provideS() + string2 := s.Foo + return string2 } -=== CONT TestWire/ReturnError + + func injectedMessagePtr() *string { + s := provideS() + string2 := &s.Foo + return string2 + } +=== CONT TestWire/StructWithPreventTag === NAME TestWire/InterfaceValueInvalidArg0 - wire_test.go:108: /tmp/wire_test1328316578/src/example.com/foo/wire.go:25:13: first argument to InterfaceValue must be a pointer to an interface type; found string -=== CONT TestWire/ProviderSetBindingMissingConcreteType -=== NAME TestWire/ValueConversion + wire_test.go:108: /tmp/wire_test2328558390/src/example.com/foo/wire.go:25:13: first argument to InterfaceValue must be a pointer to an interface type; found string +=== CONT TestWire/StructPointer +=== NAME TestWire/ExportedValueDifferentPackage wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1030,17 +922,29 @@ package main + import ( + "os" + ) + // Injectors from wire.go: - func injectedMessage() Foo { - foo := _wireFooValue - return foo + func injectedFile() *os.File { + file := _wireFileValue + return file } var ( - _wireFooValue = Foo("Hello, World!") + _wireFileValue = os.Stdout ) -=== NAME TestWire/ReturnArgumentAsInterface +=== CONT TestWire/StructNotAStruct +=== NAME TestWire/Cycle + wire_test.go:108: /tmp/wire_test473317871/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/Struct +=== NAME TestWire/InterfaceBindingReuse wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1050,17 +954,15 @@ package main - import ( - "fmt" - ) - // Injectors from wire.go: - func injectStringer(s MyString) fmt.Stringer { - return s + func injectFooBar() FooBar { + bar := provideBar() + fooBar := provideFooBar(bar, bar) + return fooBar } -=== CONT TestWire/BuildTagsAllPackages -=== NAME TestWire/ImportedInterfaceBinding +=== CONT TestWire/ReturnError +=== NAME TestWire/FieldsOfStruct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1070,30 +972,28 @@ package main - import ( - "example.com/foo" - ) - // Injectors from wire.go: - func injectFooer() foo.Fooer { - bar := provideBar() - return bar + func injectedMessage() string { + s := provideS() + string2 := s.Foo + return string2 } -=== CONT TestWire/Cycle -=== CONT TestWire/CopyOtherDecls +=== CONT TestWire/ReturnArgumentAsInterface +=== NAME TestWire/InterfaceBindingInvalidArg0 + wire_test.go:108: /tmp/wire_test618714390/src/example.com/foo/wire.go:25:13: first argument to Bind must be a pointer to an interface type; found string +=== NAME TestWire/FieldsOfCycle + wire_test.go:108: /tmp/wire_test1699513109/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/InjectorMissingCleanup - wire_test.go:108: /tmp/wire_test389762276/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/Cleanup -=== NAME TestWire/InjectInputConflict - wire_test.go:108: /tmp/wire_test844158526/src/example.com/foo/wire.go:24:2: multiple bindings for example.com/foo.Foo - current: - <- provider "provideFoo" (/tmp/wire_test844158526/src/example.com/foo/foo.go:37:6) - <- provider set "Set" (/tmp/wire_test844158526/src/example.com/foo/foo.go:33:11) - previous: - <- argument foo to injector function injectBar (/tmp/wire_test844158526/src/example.com/foo/wire.go:23:1) -=== CONT TestWire/Chain -=== NAME TestWire/InterfaceBindingReuse + wire_test.go:108: /tmp/wire_test322758057/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/ReservedKeywords +=== CONT TestWire/NamingWorstCaseAllInOne +=== CONT TestWire/ProviderSetBindingMissingConcreteType +=== NAME TestWire/InterfaceBinding wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1105,33 +1005,17 @@ // Injectors from wire.go: - func injectFooBar() FooBar { + func injectFooer() Fooer { bar := provideBar() - fooBar := provideFooBar(bar, bar) - return fooBar + return bar } -=== CONT TestWire/BindInterfaceWithValue -=== NAME TestWire/MultipleMissingInputs - wire_test.go:108: /tmp/wire_test3513901468/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_test3513901468/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_test3513901468/src/example.com/foo/foo.go:29:6) - wire_test.go:108: /tmp/wire_test3513901468/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_test3513901468/src/example.com/foo/foo.go:29:6) - wire_test.go:108: /tmp/wire_test3513901468/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_test3513901468/src/example.com/foo/foo.go:37:6) - needed by example.com/foo.Zap in provider "provideZap" (/tmp/wire_test3513901468/src/example.com/foo/foo.go:41:6) - needed by example.com/foo.Zop in provider "provideZop" (/tmp/wire_test3513901468/src/example.com/foo/foo.go:45:6) -=== CONT TestWire/NamingWorstCase +=== CONT TestWire/PkgImport === NAME TestWire/UnexportedStruct - wire_test.go:108: /tmp/wire_test1706722359/src/example.com/foo/wire.go:26:17: foo not exported by package bar -=== CONT TestWire/BindInjectorArgPointer -=== NAME TestWire/StructWithPreventTag - wire_test.go:108: /tmp/wire_test1713858036/src/example.com/foo/foo.go:45:2: "mu" is prevented from injecting by wire -=== 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/StructPointer -=== CONT TestWire/StructNotAStruct + wire_test.go:108: /tmp/wire_test3856966882/src/example.com/foo/wire.go:26:17: foo not exported by package bar +=== CONT TestWire/PartialCleanup +=== NAME TestWire/ValueIsInterfaceValue + wire_test.go:108: /tmp/wire_test1061927595/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/NoopBuild === NAME TestWire/VarValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1152,14 +1036,8 @@ var ( _wireStringValue = msg ) -=== CONT TestWire/Struct -=== NAME TestWire/ValueFromFunctionScope - wire_test.go:108: /tmp/wire_test3690728467/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/InterfaceValueDoesntImplement - wire_test.go:108: /tmp/wire_test522581739/src/example.com/foo/wire.go:26:13: string does not implement io.Reader -=== NAME TestWire/InjectorMissingError - wire_test.go:108: /tmp/wire_test1608854570/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/BindInjectorArg +=== CONT TestWire/NoInjectParamNames +=== NAME TestWire/ReturnError wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1171,11 +1049,25 @@ // Injectors from wire.go: - func inject(foo Foo) *Bar { - bar := NewBar(foo) - return bar + func injectFoo() (Foo, error) { + foo, err := provideFoo() + if err != nil { + return 0, err + } + return foo, nil } -=== NAME TestWire/InjectWithPanic +=== NAME TestWire/UnusedProviders + wire_test.go:108: /tmp/wire_test3759151116/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused provider set "unusedSet" + wire_test.go:108: /tmp/wire_test3759151116/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused provider "main.provideUnused" + wire_test.go:108: /tmp/wire_test3759151116/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused value of type string + wire_test.go:108: /tmp/wire_test3759151116/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_test3759151116/src/example.com/foo/wire.go:23:1: inject injectFooBar: unused field "example.com/foo.S".Cfg +=== NAME TestWire/UnexportedValue + wire_test.go:108: /tmp/wire_test3132621518/src/example.com/foo/wire.go:24:1: inject injectedMessage: value string can't be used: uses unexported identifier privateMsg +=== CONT TestWire/NoImplicitInterface +=== CONT TestWire/NiladicValue +=== CONT TestWire/NiladicIdentity +=== NAME TestWire/ValueChain wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1187,12 +1079,15 @@ // Injectors from wire.go: - func injectedMessage() string { - string2 := provideMessage() - return string2 + func injectFooBar() FooBar { + foo := _wireFooValue + fooBar := provideFooBar(foo) + return fooBar } -=== NAME TestWire/ValueIsInterfaceValue - wire_test.go:108: /tmp/wire_test4061003284/src/example.com/foo/wire.go:27:13: argument to Value may not be an interface value (found io.Reader); use InterfaceValue instead + + var ( + _wireFooValue = Foo(41) + ) === NAME TestWire/ValueIsStruct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1213,7 +1108,9 @@ var ( _wireFooValue = Foo{X: 42} ) -=== NAME TestWire/InjectInput +=== CONT TestWire/Cleanup +=== CONT TestWire/Chain +=== NAME TestWire/PkgImport wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1223,16 +1120,25 @@ package main + import ( + "example.com/bar" + ) + + import ( + _ "example.com/anon1" + _ "example.com/anon2" + ) + // Injectors from wire.go: - func injectFooBar(foo Foo) FooBar { - bar := provideBar() - fooBar := provideFooBar(foo, bar) + func injectFooBar() FooBar { + foo := provideFoo() + barBar := bar.ProvideBar() + fooBar := provideFooBar(foo, barBar) return fooBar } -=== NAME TestWire/InterfaceBindingDoesntImplement - wire_test.go:108: /tmp/wire_test2227382773/src/example.com/foo/wire.go:25:13: string does not implement example.com/foo.Fooer -=== NAME TestWire/InterfaceBinding +=== CONT TestWire/BuildTagsAllPackages +=== NAME TestWire/ValueConversion wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1244,14 +1150,20 @@ // Injectors from wire.go: - func injectFooer() Fooer { - bar := provideBar() - return bar + func injectedMessage() Foo { + foo := _wireFooValue + return foo } -=== NAME TestWire/Header + + var ( + _wireFooValue = Foo("Hello, World!") + ) +=== CONT TestWire/BindInterfaceWithValue +=== NAME TestWire/ValueFromFunctionScope + wire_test.go:108: /tmp/wire_test41839415/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/BindInjectorArgPointer +=== NAME TestWire/TwoDeps 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 @@ -1262,13 +1174,14 @@ // Injectors from wire.go: - func injectFoo() Foo { + func injectFooBar() FooBar { foo := provideFoo() - return foo + bar := provideBar() + fooBar := provideFooBar(foo, bar) + return fooBar } -=== NAME TestWire/InterfaceBindingInvalidArg0 - wire_test.go:108: /tmp/wire_test500855126/src/example.com/foo/wire.go:25:13: first argument to Bind must be a pointer to an interface type; found string -=== NAME TestWire/ReservedKeywords +=== CONT TestWire/InterfaceBindingNotEnoughArgs +=== NAME TestWire/ReturnArgumentAsInterface wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1278,21 +1191,17 @@ package main + import ( + "fmt" + ) + // Injectors from wire.go: - func injectInterface() Interface { - select2 := provideSelect() - mainInterface := provideInterface(select2) - return mainInterface + func injectStringer(s MyString) fmt.Stringer { + return s } - - // 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/FieldsOfValueStruct +=== CONT TestWire/Header +=== NAME TestWire/Struct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1302,50 +1211,27 @@ package main - import ( - "example.com/bar" - "example.com/baz" - "example.com/foo" - "fmt" - ) - // Injectors from wire.go: - func newBazService() *baz.Service { - config := _wireConfigValue - fooConfig := config.Foo - service := foo.New(fooConfig) - barConfig := config.Bar - barService := bar.New(barConfig, service) - bazService := &baz.Service{ - Foo: service, - Bar: barService, + func injectFooBar() FooBar { + foo := provideFoo() + bar := provideBar() + fooBar := FooBar{ + Foo: foo, + Bar: bar, } - return bazService + return fooBar } - var ( - _wireConfigValue = &baz.Config{ - Foo: &foo.Config{1}, - Bar: &bar.Config{2}, + func injectPartFooBar() FooBar { + foo := provideFoo() + fooBar := FooBar{ + Foo: foo, } - ) - - // wire.go: - - func main() { - svc := newBazService() - fmt.Println(svc.String()) + return fooBar } -=== NAME TestWire/UnexportedValue - wire_test.go:108: /tmp/wire_test234495436/src/example.com/foo/wire.go:24:1: inject injectedMessage: value string can't be used: uses unexported identifier privateMsg -=== NAME TestWire/MultipleArgsSameType - wire_test.go:108: /tmp/wire_test2495985272/src/example.com/foo/wire.go:25:8: multiple bindings for string - current: - <- argument b to injector function inject (/tmp/wire_test2495985272/src/example.com/foo/wire.go:23:1) - previous: - <- argument a to injector function inject (/tmp/wire_test2495985272/src/example.com/foo/wire.go:23:1) -=== NAME TestWire/DocComment +=== CONT TestWire/InjectWithPanic +=== NAME TestWire/NamingWorstCaseAllInOne wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1355,20 +1241,51 @@ package main - // Injectors from wire.go: + import ( + context2 "context" + "fmt" + "os" + "reflect" + ) - /* blockComment returns Foo and has a /*- style doc comment */ - func blockComment() *Foo { - foo := &Foo{} - return foo + // Injectors from foo.go: + + func inject(context3 context2.Context, err2 struct{}) (context, error) { + mainContext, err := Provide(context3) + if err != nil { + return context{}, err + } + return mainContext, nil } - // lineComment returns Bar and has a //- style doc comment - func lineComment() *Bar { - bar := &Bar{} - return bar + // foo.go: + + type context struct{} + + func main() { + if _, ok := reflect.TypeOf(context{}).MethodByName("Provide"); !ok { + fmt.Println("ERROR: context.Provide renamed") + os.Exit(1) + } + c, err := inject(context2.Background(), struct{}{}) + if err != nil { + fmt.Println("ERROR:", err) + os.Exit(1) + } + fmt.Println(c) } -=== NAME TestWire/FieldsOfStructPointer + + func Provide(context2_2 context2.Context) (context, error) { + var context3 = context2.Background() + _ = context2_2 + _ = context3 + return context{}, nil + } + + func (context) Provide() { + } +=== CONT TestWire/InjectInputConflict +=== NAME TestWire/ReservedKeywords wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1380,24 +1297,25 @@ // Injectors from wire.go: - func injectedMessage() string { - s := provideS() - string2 := s.Foo - return string2 + func injectInterface() Interface { + select2 := provideSelect() + mainInterface := provideInterface(select2) + return mainInterface } - func injectedMessagePtr() *string { - s := provideS() - string2 := &s.Foo - return string2 - } -=== NAME TestWire/FieldsOfCycle - wire_test.go:108: /tmp/wire_test174142720/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/TwoDeps + // 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/ProviderSetBindingMissingConcreteType + wire_test.go:108: /tmp/wire_test755161196/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/InjectInput +=== CONT TestWire/ImportedInterfaceBinding +=== NAME TestWire/StructNotAStruct + wire_test.go:108: /tmp/wire_test3020678393/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/StructPointer wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1409,13 +1327,26 @@ // Injectors from wire.go: - func injectFooBar() FooBar { + func injectFooBar() *FooBar { foo := provideFoo() bar := provideBar() - fooBar := provideFooBar(foo, bar) + fooBar := &FooBar{ + Foo: foo, + Bar: bar, + } return fooBar } -=== NAME TestWire/FieldsOfImportedStruct + + func injectEmptyStruct() *Empty { + empty := &Empty{} + return empty + } +=== CONT TestWire/FieldsOfValueStruct +=== CONT TestWire/FuncArgProvider +=== NAME TestWire/StructWithPreventTag + wire_test.go:108: /tmp/wire_test258229597/src/example.com/foo/foo.go:45:2: "mu" is prevented from injecting by wire +=== CONT TestWire/InterfaceValue +=== NAME TestWire/PartialCleanup wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1425,38 +1356,28 @@ package main - import ( - "example.com/bar" - "example.com/baz" - "example.com/foo" - "fmt" - ) - // Injectors from wire.go: - func newBazService(config *baz.Config) *baz.Service { - fooConfig := config.Foo - service := foo.New(fooConfig) - barConfig := config.Bar - barService := bar.New(barConfig, service) - bazService := &baz.Service{ - Foo: service, - Bar: barService, + func injectBaz() (Baz, func(), error) { + foo, cleanup := provideFoo() + bar, cleanup2, err := provideBar(foo) + if err != nil { + cleanup() + return 0, nil, err } - return bazService - } - - // wire.go: - - func main() { - cfg := &baz.Config{ - Foo: &foo.Config{1}, - Bar: &bar.Config{2}, + baz, err := provideBaz(bar) + if err != nil { + cleanup2() + cleanup() + return 0, nil, err } - svc := newBazService(cfg) - fmt.Println(svc.String()) + return baz, func() { + cleanup2() + cleanup() + }, nil } -=== NAME TestWire/FieldsOfStruct +=== CONT TestWire/InterfaceValueDoesntImplement +=== NAME TestWire/BindInterfaceWithValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1466,14 +1387,23 @@ package main + import ( + "io" + "os" + ) + // Injectors from wire.go: - func injectedMessage() string { - s := provideS() - string2 := s.Foo - return string2 + func inject() io.Writer { + file := _wireFileValue + return file } -=== NAME TestWire/BuildTagsAllPackages + + var ( + _wireFileValue = os.Stdout + ) +=== CONT TestWire/MultipleBindings +=== NAME TestWire/Cleanup wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1485,15 +1415,16 @@ // Injectors from wire.go: - func injectedMessage() string { - string2 := _wireStringValue - return string2 + func injectBar() (*Bar, func()) { + foo, cleanup := provideFoo() + bar, cleanup2 := provideBar(foo) + return bar, func() { + cleanup2() + cleanup() + } } - - var ( - _wireStringValue = "Hello, World!" - ) -=== NAME TestWire/ExportedValueDifferentPackage +=== CONT TestWire/NamingWorstCase +=== NAME TestWire/NiladicValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1503,27 +1434,18 @@ package main - import ( - "os" - ) - // Injectors from wire.go: - func injectedFile() *os.File { - file := _wireFileValue - return file + func injectedMessage() string { + string2 := _wireStringValue + return string2 } var ( - _wireFileValue = os.Stdout + _wireStringValue = "Hello, World!" ) -=== NAME TestWire/Cycle - wire_test.go:108: /tmp/wire_test2575472113/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/ExportedValue +=== CONT TestWire/MultipleSimilarPackages +=== NAME TestWire/NiladicIdentity wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1533,21 +1455,15 @@ package main - import ( - "example.com/bar" - ) - // Injectors from wire.go: func injectedMessage() string { - string2 := _wireStringValue + string2 := provideMessage() return string2 } - - var ( - _wireStringValue = bar.PublicMsg - ) -=== NAME TestWire/NamingWorstCaseAllInOne +=== CONT TestWire/MultipleMissingInputs +=== CONT TestWire/EmptyVar +=== NAME TestWire/NoInjectParamNames wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1559,50 +1475,40 @@ 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) + func inject(contextContext context2.Context, arg struct{}) (context, error) { + mainContext, err := provide(contextContext) if err != nil { return context{}, err } return mainContext, nil } +=== CONT TestWire/ExampleWithMocks +=== NAME TestWire/NoImplicitInterface + wire_test.go:108: /tmp/wire_test2402676830/src/example.com/foo/wire.go:23:1: inject injectFooer: no provider found for example.com/foo.Fooer, output of injector +=== CONT TestWire/InvalidInjector +=== NAME TestWire/Chain + wire_test.go:164: wire_gen.go: + // Code generated by Wire. DO NOT EDIT. - // foo.go: - - 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 := provideFoo() + fooBar := provideFooBar(foo) + return fooBar } -=== NAME TestWire/FieldsOfStructDoNotProvidePtrToField - wire_test.go:108: /tmp/wire_test1300184168/src/example.com/foo/wire.go:23:1: inject injectedMessagePtr: no provider found for *string, output of injector -=== NAME TestWire/ExampleWithMocks +=== CONT TestWire/MultipleArgsSameType +=== NAME TestWire/BuildTagsAllPackages wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1614,52 +1520,16 @@ // Injectors from wire.go: - // initApp returns a real app. - func initApp() *app { - mainTimer := _wireRealTimeValue - mainGreeter := greeter{ - T: mainTimer, - } - mainApp := &app{ - g: mainGreeter, - } - return mainApp + func injectedMessage() string { + string2 := _wireStringValue + return string2 } var ( - _wireRealTimeValue = realTime{} + _wireStringValue = "Hello, World!" ) - - // 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, - } - return mainAppWithMocks - } -=== NAME TestWire/ReturnError +=== CONT TestWire/DocComment +=== NAME TestWire/BindInjectorArgPointer wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1671,14 +1541,15 @@ // Injectors from wire.go: - func injectFoo() (Foo, error) { - foo, err := provideFoo() - if err != nil { - return 0, err - } - return foo, nil + func inject(foo *Foo) *Bar { + bar := NewBar(foo) + return bar } -=== NAME TestWire/NiladicIdentity +=== NAME TestWire/InterfaceBindingNotEnoughArgs + wire_test.go:108: /tmp/wire_test1771134658/src/example.com/foo/wire.go:25:33: not enough arguments in call to wire.Bind + have (*Fooer) + want (interface{}, interface{}) +=== NAME TestWire/InjectWithPanic wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1694,7 +1565,16 @@ string2 := provideMessage() return string2 } -=== NAME TestWire/Cleanup +=== NAME TestWire/InjectInputConflict + wire_test.go:108: /tmp/wire_test1654572347/src/example.com/foo/wire.go:24:2: multiple bindings for example.com/foo.Foo + current: + <- provider "provideFoo" (/tmp/wire_test1654572347/src/example.com/foo/foo.go:37:6) + <- provider set "Set" (/tmp/wire_test1654572347/src/example.com/foo/foo.go:33:11) + previous: + <- argument foo to injector function injectBar (/tmp/wire_test1654572347/src/example.com/foo/wire.go:23:1) +=== NAME TestWire/FuncArgProvider + wire_test.go:108: /tmp/wire_test52744293/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/ImportedInterfaceBinding wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1704,17 +1584,35 @@ package main + import ( + "example.com/foo" + ) + // Injectors from wire.go: - func injectBar() (*Bar, func()) { - foo, cleanup := provideFoo() - bar, cleanup2 := provideBar(foo) - return bar, func() { - cleanup2() - cleanup() - } + func injectFooer() foo.Fooer { + bar := provideBar() + return bar } -=== NAME TestWire/BindInterfaceWithValue +=== 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/InterfaceValue wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1726,20 +1624,20 @@ import ( "io" - "os" + "strings" ) // Injectors from wire.go: - func inject() io.Writer { - file := _wireFileValue - return file + func injectedReader() io.Reader { + reader := _wireReaderValue + return reader } var ( - _wireFileValue = os.Stdout + _wireReaderValue = strings.NewReader("hello world") ) -=== NAME TestWire/Chain +=== NAME TestWire/FieldsOfValueStruct wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1749,18 +1647,42 @@ package main + import ( + "example.com/bar" + "example.com/baz" + "example.com/foo" + "fmt" + ) + // Injectors from wire.go: - func injectFooBar() FooBar { - foo := provideFoo() - fooBar := provideFooBar(foo) - return fooBar + 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 } -=== NAME TestWire/ProviderSetBindingMissingConcreteType - wire_test.go:108: /tmp/wire_test1451035953/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/EmptyVar - wire_test.go:108: /tmp/wire_test2201292972/src/example.com/foo/wire.go:24:13: var example.com/foo.myFakeSet struct{} is not a provider or a provider set -=== NAME TestWire/NamingWorstCase + + var ( + _wireConfigValue = &baz.Config{ + Foo: &foo.Config{1}, + Bar: &bar.Config{2}, + } + ) + + // wire.go: + + func main() { + svc := newBazService() + fmt.Println(svc.String()) + } +=== NAME TestWire/InjectInput wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1770,20 +1692,63 @@ 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 + func injectFooBar(foo Foo) FooBar { + bar := provideBar() + fooBar := provideFooBar(foo, bar) + return fooBar } -=== NAME TestWire/CopyOtherDecls +=== NAME TestWire/InterfaceValueDoesntImplement + wire_test.go:108: /tmp/wire_test3030564906/src/example.com/foo/wire.go:26:13: string does not implement io.Reader +=== NAME TestWire/MultipleMissingInputs + wire_test.go:108: /tmp/wire_test3529541923/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_test3529541923/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_test3529541923/src/example.com/foo/foo.go:29:6) + wire_test.go:108: /tmp/wire_test3529541923/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_test3529541923/src/example.com/foo/foo.go:29:6) + wire_test.go:108: /tmp/wire_test3529541923/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_test3529541923/src/example.com/foo/foo.go:37:6) + needed by example.com/foo.Zap in provider "provideZap" (/tmp/wire_test3529541923/src/example.com/foo/foo.go:41:6) + needed by example.com/foo.Zop in provider "provideZop" (/tmp/wire_test3529541923/src/example.com/foo/foo.go:45:6) +=== NAME TestWire/MultipleBindings + wire_test.go:108: /tmp/wire_test2391410242/src/example.com/foo/wire.go:27:8: multiple bindings for example.com/foo.Foo + current: + <- provider "provideFooAgain" (/tmp/wire_test2391410242/src/example.com/foo/foo.go:39:6) + previous: + <- provider "provideFoo" (/tmp/wire_test2391410242/src/example.com/foo/foo.go:35:6) + wire_test.go:108: /tmp/wire_test2391410242/src/example.com/foo/wire.go:32:8: multiple bindings for example.com/foo.Foo + current: + <- provider "provideFoo" (/tmp/wire_test2391410242/src/example.com/foo/foo.go:35:6) + previous: + <- provider "provideFoo" (/tmp/wire_test2391410242/src/example.com/foo/foo.go:35:6) + <- provider set "Set" (/tmp/wire_test2391410242/src/example.com/foo/foo.go:31:11) + wire_test.go:108: /tmp/wire_test2391410242/src/example.com/foo/wire.go:37:8: multiple bindings for example.com/foo.Foo + current: + <- provider "provideFoo" (/tmp/wire_test2391410242/src/example.com/foo/foo.go:35:6) + previous: + <- provider "provideFoo" (/tmp/wire_test2391410242/src/example.com/foo/foo.go:35:6) + <- provider set "Set" (/tmp/wire_test2391410242/src/example.com/foo/foo.go:31:11) + <- provider set "SuperSet" (/tmp/wire_test2391410242/src/example.com/foo/foo.go:32:16) + wire_test.go:108: /tmp/wire_test2391410242/src/example.com/foo/foo.go:33:32: SetWithDuplicateBindings has multiple bindings for example.com/foo.Foo + current: + <- provider "provideFoo" (/tmp/wire_test2391410242/src/example.com/foo/foo.go:35:6) + <- provider set "Set" (/tmp/wire_test2391410242/src/example.com/foo/foo.go:31:11) + <- provider set "SuperSet" (/tmp/wire_test2391410242/src/example.com/foo/foo.go:32:16) + previous: + <- provider "provideFoo" (/tmp/wire_test2391410242/src/example.com/foo/foo.go:35:6) + <- provider set "Set" (/tmp/wire_test2391410242/src/example.com/foo/foo.go:31:11) + wire_test.go:108: /tmp/wire_test2391410242/src/example.com/foo/wire.go:47:8: multiple bindings for example.com/foo.Foo + current: + <- wire.Value (/tmp/wire_test2391410242/src/example.com/foo/wire.go:47:42) + previous: + <- provider "provideFoo" (/tmp/wire_test2391410242/src/example.com/foo/foo.go:35:6) + wire_test.go:108: /tmp/wire_test2391410242/src/example.com/foo/wire.go:52:8: multiple bindings for example.com/foo.Bar + current: + <- wire.Bind (/tmp/wire_test2391410242/src/example.com/foo/wire.go:52:31) + previous: + <- provider "provideBar" (/tmp/wire_test2391410242/src/example.com/foo/foo.go:43:6) +=== NAME TestWire/MultipleSimilarPackages wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1794,27 +1759,57 @@ package main import ( + "example.com/bar" + "example.com/baz" + "example.com/foo" "fmt" ) - // Injectors from foo.go: + // Injectors from wire.go: - func injectedMessage() string { - string2 := provideMessage() - return string2 + func newMainService(mainConfig MainConfig) *MainService { + config := mainConfig.Foo + service := foo.New(config) + barConfig := mainConfig.Bar + barService := bar.New(barConfig, service) + bazConfig := mainConfig.baz + bazService := baz.New(bazConfig, barService) + mainService := &MainService{ + Foo: service, + Bar: barService, + baz: bazService, + } + return mainService } - // foo.go: + // wire.go: - func main() { - fmt.Println(injectedMessage()) + type MainConfig struct { + Foo *foo.Config + Bar *bar.Config + baz *baz.Config } - // provideMessage provides a friendly user greeting. - func provideMessage() string { - return "Hello, World!" + type MainService struct { + Foo *foo.Service + Bar *bar.Service + baz *baz.Service } -=== NAME TestWire/BindInjectorArgPointer + + 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/NamingWorstCase wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1824,15 +1819,20 @@ package main + import ( + context2 "context" + ) + // Injectors from wire.go: - func inject(foo *Foo) *Bar { - bar := NewBar(foo) - return bar + func inject(context3 context2.Context, err2 struct{}) (context, error) { + mainContext, err := provide(context3) + if err != nil { + return context{}, err + } + return mainContext, nil } -=== NAME TestWire/StructNotAStruct - wire_test.go:108: /tmp/wire_test2452149169/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/StructPointer +=== NAME TestWire/ExampleWithMocks wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1844,21 +1844,63 @@ // Injectors from wire.go: - func injectFooBar() *FooBar { - foo := provideFoo() - bar := provideBar() - fooBar := &FooBar{ - Foo: foo, - Bar: bar, + // initApp returns a real app. + func initApp() *app { + mainTimer := _wireRealTimeValue + mainGreeter := greeter{ + T: mainTimer, } - return fooBar + mainApp := &app{ + g: mainGreeter, + } + return mainApp } - func injectEmptyStruct() *Empty { - empty := &Empty{} - return empty + 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 } -=== NAME TestWire/Struct + + // 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/EmptyVar + wire_test.go:108: /tmp/wire_test1567796498/src/example.com/foo/wire.go:24:13: var example.com/foo.myFakeSet struct{} is not a provider or a provider set +=== NAME TestWire/MultipleArgsSameType + wire_test.go:108: /tmp/wire_test3750621799/src/example.com/foo/wire.go:25:8: multiple bindings for string + current: + <- argument b to injector function inject (/tmp/wire_test3750621799/src/example.com/foo/wire.go:23:1) + previous: + <- argument a to injector function inject (/tmp/wire_test3750621799/src/example.com/foo/wire.go:23:1) +=== 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/DocComment wire_test.go:164: wire_gen.go: // Code generated by Wire. DO NOT EDIT. @@ -1870,94 +1912,88 @@ // Injectors from wire.go: - func injectFooBar() FooBar { - foo := provideFoo() - bar := provideBar() - fooBar := FooBar{ - Foo: foo, - Bar: bar, - } - return fooBar + /* blockComment returns Foo and has a /*- style doc comment */ + func blockComment() *Foo { + foo := &Foo{} + return foo } - func injectPartFooBar() FooBar { - foo := provideFoo() - fooBar := FooBar{ - Foo: foo, - } - return fooBar + // lineComment returns Bar and has a //- style doc comment + func lineComment() *Bar { + bar := &Bar{} + return bar } ---- PASS: TestWire (0.01s) - --- PASS: TestWire/UnusedProviders (5.05s) - --- PASS: TestWire/ValueChain (5.05s) - --- PASS: TestWire/PkgImport (5.07s) - --- PASS: TestWire/InterfaceBindingNotEnoughArgs (5.08s) - --- PASS: TestWire/NoopBuild (5.12s) - --- PASS: TestWire/InterfaceValueNotEnoughArgs (5.33s) - --- PASS: TestWire/RelativePkg (5.34s) - --- PASS: TestWire/MultipleSimilarPackages (5.36s) - --- PASS: TestWire/FuncArgProvider (5.52s) - --- PASS: TestWire/NiladicValue (5.54s) - --- PASS: TestWire/NoImplicitInterface (5.68s) - --- PASS: TestWire/NoInjectParamNames (5.68s) - --- PASS: TestWire/MultipleBindings (5.86s) - --- PASS: TestWire/InterfaceValue (5.88s) - --- PASS: TestWire/Varargs (5.88s) - --- PASS: TestWire/PartialCleanup (5.89s) - --- PASS: TestWire/InterfaceValueInvalidArg0 (6.25s) - --- PASS: TestWire/ReturnArgumentAsInterface (6.27s) - --- PASS: TestWire/ImportedInterfaceBinding (6.27s) - --- PASS: TestWire/ValueConversion (6.28s) - --- PASS: TestWire/InjectorMissingCleanup (6.29s) - --- PASS: TestWire/InjectInputConflict (6.66s) - --- PASS: TestWire/InterfaceBindingReuse (6.73s) - --- PASS: TestWire/MultipleMissingInputs (6.78s) - --- PASS: TestWire/UnexportedStruct (6.80s) - --- PASS: TestWire/StructWithPreventTag (6.82s) - --- PASS: TestWire/InvalidInjector (6.82s) - --- PASS: TestWire/VarValue (6.82s) - --- PASS: TestWire/ValueFromFunctionScope (6.87s) - --- PASS: TestWire/InterfaceValueDoesntImplement (6.89s) - --- PASS: TestWire/InjectorMissingError (6.89s) - --- PASS: TestWire/BindInjectorArg (6.89s) - --- PASS: TestWire/InjectWithPanic (6.90s) - --- PASS: TestWire/ValueIsInterfaceValue (6.90s) - --- PASS: TestWire/ValueIsStruct (6.90s) - --- PASS: TestWire/InjectInput (6.90s) - --- PASS: TestWire/InterfaceBinding (6.91s) - --- PASS: TestWire/InterfaceBindingDoesntImplement (6.91s) - --- PASS: TestWire/Header (6.91s) - --- PASS: TestWire/InterfaceBindingInvalidArg0 (6.94s) - --- PASS: TestWire/ReservedKeywords (6.98s) - --- PASS: TestWire/FieldsOfValueStruct (7.03s) - --- PASS: TestWire/UnexportedValue (2.65s) - --- PASS: TestWire/MultipleArgsSameType (2.73s) - --- PASS: TestWire/DocComment (2.78s) - --- PASS: TestWire/FieldsOfStructPointer (2.77s) - --- PASS: TestWire/FieldsOfCycle (2.39s) - --- PASS: TestWire/TwoDeps (2.86s) - --- PASS: TestWire/FieldsOfStruct (2.70s) - --- PASS: TestWire/FieldsOfImportedStruct (2.69s) - --- PASS: TestWire/BuildTagsAllPackages (1.86s) - --- PASS: TestWire/ExportedValueDifferentPackage (2.61s) - --- PASS: TestWire/Cycle (1.89s) - --- PASS: TestWire/ExportedValue (2.49s) - --- PASS: TestWire/NamingWorstCaseAllInOne (2.29s) - --- PASS: TestWire/FieldsOfStructDoNotProvidePtrToField (2.86s) - --- PASS: TestWire/ExampleWithMocks (2.51s) - --- PASS: TestWire/ReturnError (2.32s) - --- PASS: TestWire/NiladicIdentity (2.34s) - --- PASS: TestWire/Cleanup (1.98s) - --- PASS: TestWire/BindInterfaceWithValue (1.54s) - --- PASS: TestWire/Chain (1.61s) - --- PASS: TestWire/ProviderSetBindingMissingConcreteType (2.03s) - --- PASS: TestWire/EmptyVar (2.42s) - --- PASS: TestWire/NamingWorstCase (1.53s) - --- PASS: TestWire/CopyOtherDecls (2.04s) - --- PASS: TestWire/BindInjectorArgPointer (1.52s) - --- PASS: TestWire/StructNotAStruct (1.54s) - --- PASS: TestWire/StructPointer (1.54s) - --- PASS: TestWire/Struct (1.54s) +--- PASS: TestWire (0.10s) + --- PASS: TestWire/InjectorMissingError (22.46s) + --- PASS: TestWire/FieldsOfStructDoNotProvidePtrToField (23.33s) + --- PASS: TestWire/InterfaceValueNotEnoughArgs (23.45s) + --- PASS: TestWire/RelativePkg (23.79s) + --- PASS: TestWire/FieldsOfImportedStruct (23.93s) + --- PASS: TestWire/Varargs (24.10s) + --- PASS: TestWire/CopyOtherDecls (24.14s) + --- PASS: TestWire/InterfaceBindingDoesntImplement (23.84s) + --- PASS: TestWire/ExportedValue (24.13s) + --- PASS: TestWire/BindInjectorArg (24.36s) + --- PASS: TestWire/FieldsOfStructPointer (24.41s) + --- PASS: TestWire/InterfaceValueInvalidArg0 (24.40s) + --- PASS: TestWire/ExportedValueDifferentPackage (24.20s) + --- PASS: TestWire/Cycle (24.48s) + --- PASS: TestWire/InterfaceBindingReuse (24.50s) + --- PASS: TestWire/FieldsOfStruct (24.44s) + --- PASS: TestWire/FieldsOfCycle (24.44s) + --- PASS: TestWire/InterfaceBindingInvalidArg0 (24.56s) + --- PASS: TestWire/InjectorMissingCleanup (24.57s) + --- PASS: TestWire/InterfaceBinding (24.56s) + --- PASS: TestWire/UnexportedStruct (10.32s) + --- PASS: TestWire/ValueIsInterfaceValue (11.14s) + --- PASS: TestWire/VarValue (12.31s) + --- PASS: TestWire/ReturnError (10.40s) + --- PASS: TestWire/UnexportedValue (10.74s) + --- PASS: TestWire/UnusedProviders (10.78s) + --- PASS: TestWire/ValueChain (11.00s) + --- PASS: TestWire/ValueIsStruct (11.80s) + --- PASS: TestWire/PkgImport (10.61s) + --- PASS: TestWire/ValueConversion (11.25s) + --- PASS: TestWire/ValueFromFunctionScope (11.50s) + --- PASS: TestWire/TwoDeps (11.90s) + --- PASS: TestWire/ReturnArgumentAsInterface (11.69s) + --- PASS: TestWire/Struct (12.01s) + --- PASS: TestWire/NamingWorstCaseAllInOne (12.14s) + --- PASS: TestWire/ReservedKeywords (12.24s) + --- PASS: TestWire/ProviderSetBindingMissingConcreteType (12.65s) + --- PASS: TestWire/StructNotAStruct (12.90s) + --- PASS: TestWire/StructPointer (12.97s) + --- PASS: TestWire/StructWithPreventTag (13.05s) + --- PASS: TestWire/PartialCleanup (7.59s) + --- PASS: TestWire/BindInterfaceWithValue (8.05s) + --- PASS: TestWire/Cleanup (8.29s) + --- PASS: TestWire/NiladicValue (8.49s) + --- PASS: TestWire/NiladicIdentity (8.51s) + --- PASS: TestWire/NoopBuild (8.87s) + --- PASS: TestWire/NoInjectParamNames (8.76s) + --- PASS: TestWire/NoImplicitInterface (8.86s) + --- PASS: TestWire/Chain (8.74s) + --- PASS: TestWire/BuildTagsAllPackages (8.97s) + --- PASS: TestWire/BindInjectorArgPointer (9.23s) + --- PASS: TestWire/InterfaceBindingNotEnoughArgs (9.87s) + --- PASS: TestWire/InjectWithPanic (10.09s) + --- PASS: TestWire/InjectInputConflict (10.15s) + --- PASS: TestWire/FuncArgProvider (9.66s) + --- PASS: TestWire/ImportedInterfaceBinding (10.18s) + --- PASS: TestWire/Header (11.19s) + --- PASS: TestWire/InterfaceValue (10.03s) + --- PASS: TestWire/FieldsOfValueStruct (10.43s) + --- PASS: TestWire/InjectInput (11.50s) + --- PASS: TestWire/InterfaceValueDoesntImplement (6.59s) + --- PASS: TestWire/MultipleMissingInputs (5.90s) + --- PASS: TestWire/MultipleBindings (6.23s) + --- PASS: TestWire/MultipleSimilarPackages (6.30s) + --- PASS: TestWire/NamingWorstCase (6.52s) + --- PASS: TestWire/ExampleWithMocks (6.41s) + --- PASS: TestWire/EmptyVar (6.53s) + --- PASS: TestWire/MultipleArgsSameType (6.22s) + --- PASS: TestWire/InvalidInjector (6.41s) + --- PASS: TestWire/DocComment (6.12s) === 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 8.754s +ok github.com/google/wire/internal/wire 51.179s 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 '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_amd64.deb'. +dpkg-deb: building package 'golang-github-google-wire-dev' in '../golang-github-google-wire-dev_0.5.0-2_all.deb'. dpkg-genbuildinfo --build=binary -O../golang-github-google-wire_0.5.0-2_amd64.buildinfo dpkg-genchanges --build=binary -O../golang-github-google-wire_0.5.0-2_amd64.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/3587633/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3587633/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/3914156 and its subdirectories -I: Current time: Thu Jun 19 12:19:26 -12 2025 -I: pbuilder-time-stamp: 1750378766 +I: removing directory /srv/workspace/pbuilder/3587633 and its subdirectories +I: Current time: Sat May 18 08:04:03 +14 2024 +I: pbuilder-time-stamp: 1715969043