Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

mandatory "interfaces" attribute despite "source" being set #58

Open
irfansharif opened this issue Jul 5, 2021 · 0 comments
Open

mandatory "interfaces" attribute despite "source" being set #58

irfansharif opened this issue Jul 5, 2021 · 0 comments

Comments

@irfansharif
Copy link

This is a very minor "bug". According to the documentation for gomock arguments, interfaces is required if source is unset, and ignored if it is. Despite being ignored, it's still a mandatory attribute when source is set. Removing it from
here results in the following error.

@@ -2,7 +2,6 @@
     out = "mocks_generated.go",
     source = "rangefeed.go",
-    interfaces = [""],
     library = ":rangefeed_base",
     package = "rangefeed",
ERROR: /Users/irfansharif/Software/src/github.com/cockroachdb/cockroach/pkg/kv/kvclient/rangefeed/BUILD.bazel:30:7: //pkg/kv/kvclient/rangefeed:mock_rangefeed: missing value for mandatory attribute 'interfaces' in '_gomock_source' rule
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant