From a58291c0b81576a6abe9702e597508e3be8bc80e Mon Sep 17 00:00:00 2001 From: Luca Steeb Date: Tue, 26 Jan 2021 08:55:11 +0700 Subject: [PATCH] internal/wire: use full go run command in go:generate comment (#268) Change the go:generate command to use the full go run ... command to ensure the version specified in the current go module is used instead of the global binary. Fixes #160 --- _tutorial/wire_gen.go | 2 +- docs/guide.md | 2 +- internal/wire/testdata/BindInjectorArg/want/wire_gen.go | 2 +- internal/wire/testdata/BindInjectorArgPointer/want/wire_gen.go | 2 +- internal/wire/testdata/BindInterfaceWithValue/want/wire_gen.go | 2 +- internal/wire/testdata/BuildTagsAllPackages/want/wire_gen.go | 2 +- internal/wire/testdata/Chain/want/wire_gen.go | 2 +- internal/wire/testdata/Cleanup/want/wire_gen.go | 2 +- internal/wire/testdata/CopyOtherDecls/want/wire_gen.go | 2 +- internal/wire/testdata/DocComment/want/wire_gen.go | 2 +- internal/wire/testdata/ExampleWithMocks/want/wire_gen.go | 2 +- internal/wire/testdata/ExportedValue/want/wire_gen.go | 2 +- .../testdata/ExportedValueDifferentPackage/want/wire_gen.go | 2 +- internal/wire/testdata/FieldsOfImportedStruct/want/wire_gen.go | 2 +- internal/wire/testdata/FieldsOfStruct/want/wire_gen.go | 2 +- internal/wire/testdata/FieldsOfStructPointer/want/wire_gen.go | 2 +- internal/wire/testdata/FieldsOfValueStruct/want/wire_gen.go | 2 +- internal/wire/testdata/Header/want/wire_gen.go | 2 +- .../wire/testdata/ImportedInterfaceBinding/want/wire_gen.go | 2 +- internal/wire/testdata/InjectInput/want/wire_gen.go | 2 +- internal/wire/testdata/InjectWithPanic/want/wire_gen.go | 2 +- internal/wire/testdata/InterfaceBinding/want/wire_gen.go | 2 +- internal/wire/testdata/InterfaceBindingReuse/want/wire_gen.go | 2 +- internal/wire/testdata/InterfaceValue/want/wire_gen.go | 2 +- internal/wire/testdata/MultipleSimilarPackages/want/wire_gen.go | 2 +- internal/wire/testdata/NamingWorstCase/want/wire_gen.go | 2 +- internal/wire/testdata/NamingWorstCaseAllInOne/want/wire_gen.go | 2 +- internal/wire/testdata/NiladicIdentity/want/wire_gen.go | 2 +- internal/wire/testdata/NiladicValue/want/wire_gen.go | 2 +- internal/wire/testdata/NoInjectParamNames/want/wire_gen.go | 2 +- internal/wire/testdata/PartialCleanup/want/wire_gen.go | 2 +- internal/wire/testdata/PkgImport/want/wire_gen.go | 2 +- internal/wire/testdata/RelativePkg/want/wire_gen.go | 2 +- internal/wire/testdata/ReservedKeywords/want/wire_gen.go | 2 +- .../wire/testdata/ReturnArgumentAsInterface/want/wire_gen.go | 2 +- internal/wire/testdata/ReturnError/want/wire_gen.go | 2 +- internal/wire/testdata/Struct/want/wire_gen.go | 2 +- internal/wire/testdata/StructPointer/want/wire_gen.go | 2 +- internal/wire/testdata/TwoDeps/want/wire_gen.go | 2 +- internal/wire/testdata/ValueChain/want/wire_gen.go | 2 +- internal/wire/testdata/ValueConversion/want/wire_gen.go | 2 +- internal/wire/testdata/ValueIsStruct/want/wire_gen.go | 2 +- internal/wire/testdata/VarValue/want/wire_gen.go | 2 +- internal/wire/testdata/Varargs/want/wire_gen.go | 2 +- internal/wire/wire.go | 2 +- 45 files changed, 45 insertions(+), 45 deletions(-) diff --git a/_tutorial/wire_gen.go b/_tutorial/wire_gen.go index 77e33b06..46ce25c3 100644 --- a/_tutorial/wire_gen.go +++ b/_tutorial/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/docs/guide.md b/docs/guide.md index eaf1e914..eb5f70e9 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -151,7 +151,7 @@ Wire will produce an implementation of the injector in a file called ```go // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/BindInjectorArg/want/wire_gen.go b/internal/wire/testdata/BindInjectorArg/want/wire_gen.go index a9ceae29..1b8ba1d5 100644 --- a/internal/wire/testdata/BindInjectorArg/want/wire_gen.go +++ b/internal/wire/testdata/BindInjectorArg/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/BindInjectorArgPointer/want/wire_gen.go b/internal/wire/testdata/BindInjectorArgPointer/want/wire_gen.go index abbd9c65..53091f09 100644 --- a/internal/wire/testdata/BindInjectorArgPointer/want/wire_gen.go +++ b/internal/wire/testdata/BindInjectorArgPointer/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/BindInterfaceWithValue/want/wire_gen.go b/internal/wire/testdata/BindInterfaceWithValue/want/wire_gen.go index 6fb9db47..fa4e50fc 100644 --- a/internal/wire/testdata/BindInterfaceWithValue/want/wire_gen.go +++ b/internal/wire/testdata/BindInterfaceWithValue/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/BuildTagsAllPackages/want/wire_gen.go b/internal/wire/testdata/BuildTagsAllPackages/want/wire_gen.go index 2cb12acf..ad744f94 100644 --- a/internal/wire/testdata/BuildTagsAllPackages/want/wire_gen.go +++ b/internal/wire/testdata/BuildTagsAllPackages/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/Chain/want/wire_gen.go b/internal/wire/testdata/Chain/want/wire_gen.go index f91b68b8..ffa8d55c 100644 --- a/internal/wire/testdata/Chain/want/wire_gen.go +++ b/internal/wire/testdata/Chain/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/Cleanup/want/wire_gen.go b/internal/wire/testdata/Cleanup/want/wire_gen.go index 0d7f2e9d..12e1640c 100644 --- a/internal/wire/testdata/Cleanup/want/wire_gen.go +++ b/internal/wire/testdata/Cleanup/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/CopyOtherDecls/want/wire_gen.go b/internal/wire/testdata/CopyOtherDecls/want/wire_gen.go index f76d5edb..db647bde 100644 --- a/internal/wire/testdata/CopyOtherDecls/want/wire_gen.go +++ b/internal/wire/testdata/CopyOtherDecls/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/DocComment/want/wire_gen.go b/internal/wire/testdata/DocComment/want/wire_gen.go index bc8efa93..03b34234 100644 --- a/internal/wire/testdata/DocComment/want/wire_gen.go +++ b/internal/wire/testdata/DocComment/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/ExampleWithMocks/want/wire_gen.go b/internal/wire/testdata/ExampleWithMocks/want/wire_gen.go index 8f57c065..1f65f285 100644 --- a/internal/wire/testdata/ExampleWithMocks/want/wire_gen.go +++ b/internal/wire/testdata/ExampleWithMocks/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/ExportedValue/want/wire_gen.go b/internal/wire/testdata/ExportedValue/want/wire_gen.go index 9b504e77..71776216 100644 --- a/internal/wire/testdata/ExportedValue/want/wire_gen.go +++ b/internal/wire/testdata/ExportedValue/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/ExportedValueDifferentPackage/want/wire_gen.go b/internal/wire/testdata/ExportedValueDifferentPackage/want/wire_gen.go index 98574e6a..644de349 100644 --- a/internal/wire/testdata/ExportedValueDifferentPackage/want/wire_gen.go +++ b/internal/wire/testdata/ExportedValueDifferentPackage/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/FieldsOfImportedStruct/want/wire_gen.go b/internal/wire/testdata/FieldsOfImportedStruct/want/wire_gen.go index a2fbf951..eb66e4ba 100644 --- a/internal/wire/testdata/FieldsOfImportedStruct/want/wire_gen.go +++ b/internal/wire/testdata/FieldsOfImportedStruct/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/FieldsOfStruct/want/wire_gen.go b/internal/wire/testdata/FieldsOfStruct/want/wire_gen.go index 2092a3db..8baee553 100644 --- a/internal/wire/testdata/FieldsOfStruct/want/wire_gen.go +++ b/internal/wire/testdata/FieldsOfStruct/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/FieldsOfStructPointer/want/wire_gen.go b/internal/wire/testdata/FieldsOfStructPointer/want/wire_gen.go index b01acbeb..480f8403 100644 --- a/internal/wire/testdata/FieldsOfStructPointer/want/wire_gen.go +++ b/internal/wire/testdata/FieldsOfStructPointer/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/FieldsOfValueStruct/want/wire_gen.go b/internal/wire/testdata/FieldsOfValueStruct/want/wire_gen.go index 80ebda19..15951880 100644 --- a/internal/wire/testdata/FieldsOfValueStruct/want/wire_gen.go +++ b/internal/wire/testdata/FieldsOfValueStruct/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/Header/want/wire_gen.go b/internal/wire/testdata/Header/want/wire_gen.go index 5acba8f1..07e319c3 100644 --- a/internal/wire/testdata/Header/want/wire_gen.go +++ b/internal/wire/testdata/Header/want/wire_gen.go @@ -2,7 +2,7 @@ // // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/ImportedInterfaceBinding/want/wire_gen.go b/internal/wire/testdata/ImportedInterfaceBinding/want/wire_gen.go index 420770b1..e3e745f6 100644 --- a/internal/wire/testdata/ImportedInterfaceBinding/want/wire_gen.go +++ b/internal/wire/testdata/ImportedInterfaceBinding/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/InjectInput/want/wire_gen.go b/internal/wire/testdata/InjectInput/want/wire_gen.go index 0487fb88..6a04f53f 100644 --- a/internal/wire/testdata/InjectInput/want/wire_gen.go +++ b/internal/wire/testdata/InjectInput/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/InjectWithPanic/want/wire_gen.go b/internal/wire/testdata/InjectWithPanic/want/wire_gen.go index a45f720f..f5f5237d 100644 --- a/internal/wire/testdata/InjectWithPanic/want/wire_gen.go +++ b/internal/wire/testdata/InjectWithPanic/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/InterfaceBinding/want/wire_gen.go b/internal/wire/testdata/InterfaceBinding/want/wire_gen.go index 7147bb3f..7c7fa825 100644 --- a/internal/wire/testdata/InterfaceBinding/want/wire_gen.go +++ b/internal/wire/testdata/InterfaceBinding/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/InterfaceBindingReuse/want/wire_gen.go b/internal/wire/testdata/InterfaceBindingReuse/want/wire_gen.go index 12c89c63..91ad1706 100644 --- a/internal/wire/testdata/InterfaceBindingReuse/want/wire_gen.go +++ b/internal/wire/testdata/InterfaceBindingReuse/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/InterfaceValue/want/wire_gen.go b/internal/wire/testdata/InterfaceValue/want/wire_gen.go index 376bd010..a09adc6c 100644 --- a/internal/wire/testdata/InterfaceValue/want/wire_gen.go +++ b/internal/wire/testdata/InterfaceValue/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/MultipleSimilarPackages/want/wire_gen.go b/internal/wire/testdata/MultipleSimilarPackages/want/wire_gen.go index dff7e7f8..13bb34bb 100644 --- a/internal/wire/testdata/MultipleSimilarPackages/want/wire_gen.go +++ b/internal/wire/testdata/MultipleSimilarPackages/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/NamingWorstCase/want/wire_gen.go b/internal/wire/testdata/NamingWorstCase/want/wire_gen.go index f44ccb64..af7ab8c0 100644 --- a/internal/wire/testdata/NamingWorstCase/want/wire_gen.go +++ b/internal/wire/testdata/NamingWorstCase/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/NamingWorstCaseAllInOne/want/wire_gen.go b/internal/wire/testdata/NamingWorstCaseAllInOne/want/wire_gen.go index b1ea251a..ed0758a9 100644 --- a/internal/wire/testdata/NamingWorstCaseAllInOne/want/wire_gen.go +++ b/internal/wire/testdata/NamingWorstCaseAllInOne/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/NiladicIdentity/want/wire_gen.go b/internal/wire/testdata/NiladicIdentity/want/wire_gen.go index a45f720f..f5f5237d 100644 --- a/internal/wire/testdata/NiladicIdentity/want/wire_gen.go +++ b/internal/wire/testdata/NiladicIdentity/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/NiladicValue/want/wire_gen.go b/internal/wire/testdata/NiladicValue/want/wire_gen.go index 2cb12acf..ad744f94 100644 --- a/internal/wire/testdata/NiladicValue/want/wire_gen.go +++ b/internal/wire/testdata/NiladicValue/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/NoInjectParamNames/want/wire_gen.go b/internal/wire/testdata/NoInjectParamNames/want/wire_gen.go index 51f42407..a613d1ad 100644 --- a/internal/wire/testdata/NoInjectParamNames/want/wire_gen.go +++ b/internal/wire/testdata/NoInjectParamNames/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/PartialCleanup/want/wire_gen.go b/internal/wire/testdata/PartialCleanup/want/wire_gen.go index 7a2893b8..e5dd8b9d 100644 --- a/internal/wire/testdata/PartialCleanup/want/wire_gen.go +++ b/internal/wire/testdata/PartialCleanup/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/PkgImport/want/wire_gen.go b/internal/wire/testdata/PkgImport/want/wire_gen.go index e7b662a4..94441149 100644 --- a/internal/wire/testdata/PkgImport/want/wire_gen.go +++ b/internal/wire/testdata/PkgImport/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/RelativePkg/want/wire_gen.go b/internal/wire/testdata/RelativePkg/want/wire_gen.go index a45f720f..f5f5237d 100644 --- a/internal/wire/testdata/RelativePkg/want/wire_gen.go +++ b/internal/wire/testdata/RelativePkg/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/ReservedKeywords/want/wire_gen.go b/internal/wire/testdata/ReservedKeywords/want/wire_gen.go index cd24e424..8d9f7d59 100644 --- a/internal/wire/testdata/ReservedKeywords/want/wire_gen.go +++ b/internal/wire/testdata/ReservedKeywords/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/ReturnArgumentAsInterface/want/wire_gen.go b/internal/wire/testdata/ReturnArgumentAsInterface/want/wire_gen.go index 211e06f8..e1ba2429 100644 --- a/internal/wire/testdata/ReturnArgumentAsInterface/want/wire_gen.go +++ b/internal/wire/testdata/ReturnArgumentAsInterface/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/ReturnError/want/wire_gen.go b/internal/wire/testdata/ReturnError/want/wire_gen.go index 188ad1f6..93e03bb4 100644 --- a/internal/wire/testdata/ReturnError/want/wire_gen.go +++ b/internal/wire/testdata/ReturnError/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/Struct/want/wire_gen.go b/internal/wire/testdata/Struct/want/wire_gen.go index 4fc97e9f..7f58000e 100644 --- a/internal/wire/testdata/Struct/want/wire_gen.go +++ b/internal/wire/testdata/Struct/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/StructPointer/want/wire_gen.go b/internal/wire/testdata/StructPointer/want/wire_gen.go index c078331b..84be63df 100644 --- a/internal/wire/testdata/StructPointer/want/wire_gen.go +++ b/internal/wire/testdata/StructPointer/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/TwoDeps/want/wire_gen.go b/internal/wire/testdata/TwoDeps/want/wire_gen.go index 4551f397..da2deae2 100644 --- a/internal/wire/testdata/TwoDeps/want/wire_gen.go +++ b/internal/wire/testdata/TwoDeps/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/ValueChain/want/wire_gen.go b/internal/wire/testdata/ValueChain/want/wire_gen.go index a730a00c..23eedd83 100644 --- a/internal/wire/testdata/ValueChain/want/wire_gen.go +++ b/internal/wire/testdata/ValueChain/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/ValueConversion/want/wire_gen.go b/internal/wire/testdata/ValueConversion/want/wire_gen.go index beb2fbcb..8183f036 100644 --- a/internal/wire/testdata/ValueConversion/want/wire_gen.go +++ b/internal/wire/testdata/ValueConversion/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/ValueIsStruct/want/wire_gen.go b/internal/wire/testdata/ValueIsStruct/want/wire_gen.go index 5448a5c9..c90ec703 100644 --- a/internal/wire/testdata/ValueIsStruct/want/wire_gen.go +++ b/internal/wire/testdata/ValueIsStruct/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/VarValue/want/wire_gen.go b/internal/wire/testdata/VarValue/want/wire_gen.go index 7e5e1900..70012813 100644 --- a/internal/wire/testdata/VarValue/want/wire_gen.go +++ b/internal/wire/testdata/VarValue/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/testdata/Varargs/want/wire_gen.go b/internal/wire/testdata/Varargs/want/wire_gen.go index 2ffaf3e8..d26201ca 100644 --- a/internal/wire/testdata/Varargs/want/wire_gen.go +++ b/internal/wire/testdata/Varargs/want/wire_gen.go @@ -1,6 +1,6 @@ // Code generated by Wire. DO NOT EDIT. -//go:generate wire +//go:generate go run github.com/google/wire/cmd/wire //+build !wireinject package main diff --git a/internal/wire/wire.go b/internal/wire/wire.go index d23e6b63..a9b7a50d 100644 --- a/internal/wire/wire.go +++ b/internal/wire/wire.go @@ -267,7 +267,7 @@ func (g *gen) frame(tags string) []byte { tags = fmt.Sprintf(" gen -tags \"%s\"", tags) } buf.WriteString("// Code generated by Wire. DO NOT EDIT.\n\n") - buf.WriteString("//go:generate wire" + tags + "\n") + buf.WriteString("//go:generate go run github.com/google/wire/cmd/wire" + tags + "\n") buf.WriteString("//+build !wireinject\n\n") buf.WriteString("package ") buf.WriteString(g.pkg.Name)