You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a design decision, we have decided to not check in our counterfeiter fakes and choose to generate them on demand in CI when necessary.
As of go 1.13.1, counterfeiter is no longer able to generate fakes when the following is true:
the <package>fakes directory does not exist
there is a file that imports the <pacakge>fakes directory
It will fail with the following output:
± |master ✓ | → go generate ./...
Writing `FakeThingDoer` to `counterfeiterreprofakes/fake_thing_doer.go`...
-: go: finding github.com/jfmyers9/counterfeiterrepro/counterfeiterreprofakes latest
go build github.com/jfmyers9/counterfeiterrepro/counterfeiterreprofakes: no Go files in
exit status 1
stuff.go:3: running "go": exit status 1
As a design decision, we have decided to not check in our counterfeiter fakes and choose to generate them on demand in CI when necessary.
As of go 1.13.1, counterfeiter is no longer able to generate fakes when the following is true:
<package>fakes
directory does not exist<pacakge>fakes
directoryIt will fail with the following output:
As an example, we built the following repository: https://github.com/jfmyers9/counterfeiterrepro
In our exploration, we oddly found that if you added
packages.NeedTypesInfo
tocounterfeiter/generator/loader.go
Line 33 in 4b91f4b
Let us know if you have any other questions,
@jfmyers9 && @christarazi
The text was updated successfully, but these errors were encountered: