wire icon indicating copy to clipboard operation
wire copied to clipboard

fix for go generate command

Open lkebin opened this issue 3 years ago • 1 comments

When wire command generate wire_gen.go file, go generate will not be work in module mode

$ go generate ./...
/Users/kb/.go/pkg/mod/github.com/google/[email protected]/cmd/wire/main.go:34:2: missing go.sum entry for module providing package github.com/google/subcommands (imported by github.com/google/wire/cmd/wire); to add:
        go get github.com/google/wire/cmd/[email protected]
/Users/kb/.go/pkg/mod/github.com/google/[email protected]/internal/wire/copyast.go:21:2: missing go.sum entry for module providing package golang.org/x/tools/go/ast/astutil (imported by github.com/google/wire/internal/wire); to add:
        go get github.com/google/wire/internal/[email protected]
/Users/kb/.go/pkg/mod/github.com/google/[email protected]/internal/wire/parse.go:30:2: missing go.sum entry for module providing package golang.org/x/tools/go/packages (imported by github.com/google/wire/internal/wire); to add:
        go get github.com/google/wire/internal/[email protected]
/Users/kb/.go/pkg/mod/github.com/google/[email protected]/internal/wire/analyze.go:26:2: missing go.sum entry for module providing package golang.org/x/tools/go/types/typeutil (imported by github.com/google/wire/cmd/wire); to add:
        go get github.com/google/wire/cmd/[email protected]
app/wire_gen.go:3: running "go": exit status 1

lkebin avatar Jan 17 '22 09:01 lkebin

support

marekchen avatar Apr 01 '22 18:04 marekchen

Resolved on #353

lkebin avatar Aug 15 '22 15:08 lkebin