Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for go generate command #342

Closed
wants to merge 2 commits into from
Closed

Conversation

lkebin
Copy link

@lkebin lkebin commented Jan 17, 2022

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 lkebin closed this Jan 17, 2022
@lkebin lkebin reopened this Jan 18, 2022
@marekchen
Copy link

marekchen commented Apr 1, 2022

support

@lkebin
Copy link
Author

lkebin commented Aug 15, 2022

Resolved on #353

@lkebin lkebin closed this Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants