gitlab-shell compile fails during gitlab 9.2 upgrade
Summary
Compiling gitlab-shell fails during Gitlab 9.2 upgrade following https://github.com/gitlabhq/gitlabhq/blob/9-2-stable/doc/update/9.1-to-9.2.md, preventing upgrade to Gitlab 9.2.
Steps to reproduce
cd /home/git/gitlab
sudo -u git -H git fetch --all
sudo -u git -H git checkout 9-2-stable
cd /home/git/gitlab-shell
sudo -u git -H git fetch --all --tags
sudo -u git -H git checkout v$(</home/git/gitlab/GITLAB_SHELL_VERSION)
sudo -u git -H bin/compile
What is the current bug behavior?
Output from sudo -u git -H bin/compile
:
# gitlab.com/gitlab-org/gitlab-shell/go/vendor/google.golang.org/grpc/transport
go_build/src/gitlab.com/gitlab-org/gitlab-shell/go/vendor/google.golang.org/grpc/transport/http2_client.go:133: undefined: dialContext
command failed: {"GOPATH"=>"/var/lib/git/gitlab-shell/go_build", "GO15VENDOREXPERIMENT"=>"1"} go install gitlab.com/gitlab-org/gitlab-shell/go/cmd/...
What is the expected correct behavior?
Gitlab-shell compilation completes with no errors.
Relevant logs and/or screenshots
go version go1.5.3 linux/amd64
Output of checks
Results of GitLab environment info
(Run under Gitlab 9.1.4 since this bug prevents upgrading to 9.2):
System information
System: Debian 8.8
Current User: git
Using RVM: no
Ruby Version: 2.3.3p222
Gem Version: 2.5.2
Bundler Version:1.14.5
Rake Version: 10.5.0
Redis Version: 2.8.17
Git Version: 2.7.4
Sidekiq Version:4.2.7
GitLab information
Version: 9.1.4
Revision: 729c75f
Directory: /var/lib/git/gitlab
DB Adapter: postgresql
URL: https://gitlab.example.com
HTTP Clone URL: https://gitlab.example.com/some-group/some-project.git
SSH Clone URL: git@gitlab.example.com:some-group/some-project.git
Using LDAP: yes
Using Omniauth: yes
Omniauth Providers: gitlab
GitLab Shell
Version: 5.0.2
Repository storage paths:
- default: /var/lib/git/repositories
Hooks: /var/lib/git/gitlab-shell/hooks
Git: /usr/local/bin/git
Results of GitLab application Check
Possible fixes
Edited by Daniel Bakken