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
Actual behavior A clear and concise description of what the bug is.
mockgen imports another package github.com/cometbft/cometbft/rpc/jsonrpc/types with same name while source only imports github.com/cometbft/cometbft/types, and ambiguous error occurs:
"types" is ambiguous because of duplicate imports: [github.com/cometbft/cometbft/types github.com/cometbft/cometbft/rpc/jsonrpc/types]
Expected behavior A clear and concise description of what you expected to
happen.
No error when generate mock file.
To Reproduce Steps to reproduce the behavior
#!/usr/bin/env bash
for i in {1..10}; do
mockgen -source=client/v2/broadcast/comet/comet.go -package testutil -destination client/v2/broadcast/comet/testutil/comet_mock.go
done
Additional Information
gomock mode (reflect or source): source
gomock version or git ref: v0.5.0
golang version: go1.23.3
Triage Notes for the Maintainers
The text was updated successfully, but these errors were encountered:
Actual behavior A clear and concise description of what the bug is.
mockgen imports another package
github.com/cometbft/cometbft/rpc/jsonrpc/types
with same name while source only importsgithub.com/cometbft/cometbft/types
, and ambiguous error occurs:Expected behavior A clear and concise description of what you expected to
happen.
No error when generate mock file.
To Reproduce Steps to reproduce the behavior
Additional Information
Triage Notes for the Maintainers
The text was updated successfully, but these errors were encountered: