New issue
Advanced search Search tips

Issue 779856 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

implicit mockgen dependency

Project Member Reported by no...@chromium.org, Oct 30 2017

Issue description

https://cs.chromium.org/chromium/infra/go/src/infra/appengine/sheriff-o-matic/som/client/mock/generate.go?l=3
depends on presence of mockgen which is not declared anywhere in infra.git and not present in $PATH. This prevents others to simply run go generate in SOM.

please declare the dependency explicitly
see https://chromium.googlesource.com/infra/infra/+/master/go/README.md#Dependency-management
consider adding gomock to
https://chromium.googlesource.com/infra/infra/+/0bd11f4e91c94a5d17b81d5a575a939898e47583/go/bootstrap.py#118
 

Comment 1 by no...@chromium.org, Oct 31 2017

Cc: zhangtiff@chromium.org seanmccullough@chromium.org

Comment 2 by no...@chromium.org, Oct 31 2017

on top of that, it seems that gomock now generates a different package name for milo_mock.go (package mock_proto), so manual changes to the generated files are required, unless i am doing something wrong

Comment 3 by no...@chromium.org, Oct 31 2017

an alternative to changing bootstrap.py is to include `go install` in go:generate comment
Labels: Milestone-Reliability
Status: Available (was: Untriaged)

Comment 5 by no...@chromium.org, Apr 30 2018

Owner: tandrii@chromium.org
Status: Fixed (was: Available)
tandrii fixed it https://chromium-review.googlesource.com/c/infra/infra/+/1033590

Sign in to add a comment