-
Notifications
You must be signed in to change notification settings - Fork 94
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
Missing package in generated fakes using go 1.23.1 #297
Comments
We are also seeing this with
|
I just tagged |
I don't think this bug is resolved by v6.9.0 - @joefitzgerald are you sure you were using go1.23 when you tested it? Using go1.23 and counterfeiter v6.9.0, I still get exactly the same result as described in the bug report above using the input given by the bug reporter. The root cause seems to have been a breaking change in the stdlib - the AST that's exposed by
|
In some cases the the generated fake functions are missing the needed package info for Types when using go 1.23.1. If go 1.22.7 is used everything is working fine.
See the following example:
Resulting output using go 1.23.1:
Resulting output using go 1.22.7:
The text was updated successfully, but these errors were encountered: