gitaly-proto failing to build from source
Copied from email from @pravi.
I have been building gitaly-proto from source for a long time in debian (we generate the source files from .proto files in debian) till 0.118.1 (for gitlab 11.4.9). But when trying to update to 0.123.0 (for gitlab 11.5.3), I'm not able to build it any more.
I can see the location of generated files have changed, but dh-make-golang (the debian tool to build go packages) seems to be not able to find the new location.
Thanks Praveen
We use golang 1.10.
Build log below,
mkdir -p go/gitalypb
_support/generate-from-proto
-> protoc -I . blob.proto commit.proto conflicts.proto diff.proto
namespace.proto notifications.proto operations.proto ref.proto
remote.proto repository-service.proto server.proto shared.proto
smarthttp.proto ssh.proto storage.proto wiki.proto
--go_out=plugins=grpc:go/gitalypb
-> grpc_tools_ruby_protoc -I . --ruby_out=ruby/lib/gitaly
--grpc_out=ruby/lib/gitaly blob.proto commit.proto conflicts.proto
diff.proto namespace.proto notifications.proto operations.proto
ref.proto remote.proto repository-service.proto server.proto
shared.proto smarthttp.proto ssh.proto storage.proto wiki.proto
dh_auto_configure -O--buildsystem=golang -O--package=golang-gitaly-proto-dev
dh_auto_configure -O--buildsystem=ruby -O--package=ruby-gitaly
dh_auto_configure: No packages to build. Architecture mismatch: amd64,
want: all
make[1]: Leaving directory
'/home/pravi/forge/debian/git/go-team/golang-gitaly-proto'
dh_auto_build -O--buildsystem=golang -O--package=golang-gitaly-proto-dev
cd obj-x86_64-linux-gnu && go install
-gcflags=\"-trimpath=/home/pravi/forge/debian/git/go-team/golang-gitaly-proto/obj-x86_64-linux-gnu/src\"
-asmflags=\"-trimpath=/home/pravi/forge/debian/git/go-team/golang-gitaly-proto/obj-x86_64-linux-gnu/src\"
-v -p 4 gitlab.com/gitlab-org/gitaly-proto/go/gitalypb
gitlab.com/gitlab-org/gitaly-proto/go/helper
src/gitlab.com/gitlab-org/gitaly-proto/go/helper/inforefs.go:6:2: no Go
files in
/home/pravi/forge/debian/git/go-team/golang-gitaly-proto/obj-x86_64-linux-gnu/src/gitlab.com/gitlab-org/gitaly-proto/go
dh_auto_build: cd obj-x86_64-linux-gnu && go install
-gcflags=\"-trimpath=/home/pravi/forge/debian/git/go-team/golang-gitaly-proto/obj-x86_64-linux-gnu/src\"
-asmflags=\"-trimpath=/home/pravi/forge/debian/git/go-team/golang-gitaly-proto/obj-x86_64-linux-gnu/src\"
-v -p 4 gitlab.com/gitlab-org/gitaly-proto/go/gitalypb
gitlab.com/gitlab-org/gitaly-proto/go/helper returned exit code 1
make: *** [debian/rules:9: build] Error 1