Skip to content

Conversation

@marckhouzam
Copy link
Contributor

Description of the Change

golang.org/x/tools v0.38.0 had broken the Counterfeiter code generation, so before this PR, if you run go generate ./... you will see errors like these:

$ go generate ./...
# github.com/maxbrunsfeld/counterfeiter/v6/generator
../../../../go/pkg/mod/github.com/maxbrunsfeld/counterfeiter/[email protected]/generator/import.go:45:17: undefined: imports.VendorlessPath
../../../../go/pkg/mod/github.com/maxbrunsfeld/counterfeiter/[email protected]/generator/import.go:75:29: undefined: imports.VendorlessPath
../../../../go/pkg/mod/github.com/maxbrunsfeld/counterfeiter/[email protected]/generator/loader.go:125:28: undefined: imports.VendorlessPath
[...]

This PR updates golang.org/x/tools to the fixed version v0.39.0.

Why Is This PR Valuable?

Fixed code generation

I'm not sure when the generated code is being used, but it is out of date. If it has value, I can push a different PR to update the generate fakes.

Copy link
Contributor

@anujc25 anujc25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for fixing this. 👍

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