bazel-contrib / bazel-contrib/rules_go

undefined: gomock.AssignableToTypeOf while using github third party package "github.com/golang/mock" in Golang Project using bazel as a Build tool

Open
#3,069 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.5k
Forks
760
Avg merge
1d 11h
Merged PRs (30d)
12

Description

### What version of rules_go are you using?
v0.30.0

### What version of gazelle are you using?
v0.24.0

### What version of Bazel are you using?
4.2.1

### Does this issue reproduce with the latest releases of all the above?
Yes

### What operating system and processor architecture are you using?

Linux amd64

### Any other potentially useful information about your toolchain?

Golang is language that we are using for our project

### What did you do?
The issue is undefined: gomock.AssignableToTypeOf Occuring While using function gomock.AssignableToTypeOf of package "github.com/golang/mock"

### What did you expect to see?
No issues should occur while using function gomock.AssignableToTypeOf of package "github.com/golang/mock"

### What did you see instead?
The issue is undefined: gomock.AssignableToTypeOf Occuring While using function gomock.AssignableToTypeOf of package "github.com/golang/mock"

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the undefined gomock.AssignableToTypeOf error with rules_go v0.30.0, Gazelle v0.24.0, and Bazel 4.2.1 on Linux amd64. Inspect how the github.com/golang/mock dependency is declared and built; the issue is done when a Go project using that function builds without the undefined-symbol error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.