CNG: gitlab-shell installs go@1.14 not compatible for gitaly build
Summary
When I try to build gitlab-shell image using v12.10.14 tag of CNG repo, installation finishes successfully but the image has Go 1.14.5 installed, which can't be consumed in building Gitaly image (requiring Go 1.13).
Steps to reproduce
- switch to
v12.10.14
branch of CNG repo. - in gitlab-shell directory,
docker build \
--build-arg GITLAB_SHELL_VERSION=v12.2.0 \
--build-arg CI_API_V4_URL=https://gitlab.com/api/v4 \
--build-arg FETCH_ARTIFACTS_PAT= \
-t <private_cr_url>/gitlab-shell:v12.2.0 .
- in gitaly directory,
docker build -f Dockerfile \
--build-arg GITALY_SERVER_VERSION=v12.10.14 \
--build-arg TAG=2.24.0 \
--build-arg SHELL_CONTAINER=v12.2.0 \
--build-arg FROM_SHELL_IMAGE=<private_cr_url>/gitlab-shell \
--build-arg CI_API_V4_URL=https://gitlab.com/api/v4 \
--build-arg FETCH_ARTIFACTS_PAT= \
-t <gitaly-tag> .
after step 2, if I exec onto the docker container and check go version, I see go version go1.14.5 linux/amd64
. However, this does not appear to be an upstream issue as registry.gitlab.com/gitlab-org/build/cng/gitlab-shell:v12.2.0
image has go1.13.9
built in.
Configuration used
v12.10.14 branch of CNG repo
Current behavior
go 1.14 installed in gitlab-shell
Expected behavior
go 1.13 installed in gitlab-shell
Versions
- Chart: (tagged version | branch | hash
git rev-parse HEAD
) - Platform:
- Cloud: (GKE | AKS | EKS | ?)
- Self-hosted: (OpenShift | Minikube | Rancher RKE | ?)
- Kubernetes: (
kubectl version
)- Client:
- Server:
- Helm: (
helm version
)- Client:
- Server:
Relevant logs
(Please provide any relevate log snippets you have collected, using code blocks (```) to format)