mockery: Release v2.10.1 hangs on Starting mockery dry-run=false version=v2.10.1
Noted when running mockery --all --inpackage --case snake
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (9 by maintainers)
Noted when running mockery --all --inpackage --case snake
Building mockery v2.10.4 with
replace golang.org/x/tools => github.com/reillywatson/tools v0.1.10-0.20220322163840-50e5cab0be89
fixes theUnexpected package creation during export data loading
problem for me.See https://github.com/golang/go/issues/51629#issuecomment-1094332432
I see, thanks for the information @taylow . Unfortunately, mockery is incompatible with Golang 1.18 features so you will have to pin your dependencies on versions that don’t use generics. I do plan to add support for generics, however PRs to do this are more than welcome and will speed up the whole process.
resolved for now by pinning previous version
go install github.com/vektra/mockery/v2@v2.10.0