cmd/go: go mod get unexpected EOF
even though can git clone
#52396
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Thank you for visiting here.
First of all, I apologize for my bad English, maybe a little wrong, hope you can help me.
Then I had a little problem when deploying a new CI/CD system on k8s platform (v1.23.5+1) with Gitlab runner (14.9.0) and dind (docker:dind)
When deploying CI to Golang apps with private repositories at
https://gitlab.domain.com
, (I did thego env -w GOPRIVATE
configuration), I had a problem with thego mod tidy
command. Specifically getting theunexpected EOF
error. I've triedgo mod tidy -v
but it doesn't seem to give any more info.I did a lot of work to figure out the problem. Specifically, I have done wget and
git clone
commands with my private repository and they are still able to download successfully. I tried adding a private repository athttps://gitlab.com
ingo.mod
, they can still be retrieved without any errors.And actually, without using my new runner, I can still
git clone
andgo mod tidy
in another vps.All of this leaves me wondering where am I actually getting the error? Is it my gitlab or my k8s gitlab runner
This is runner output:
This is my
.gitlab-ci.yml
Dockerfile
scripts/env.sh
go env -w GOPRIVATE=gitlab.domain.com/*
git config --global --add url."https://nood_deploy:rvbsosecret_Hizt97zQSn@gitlab.domain.com".insteadOf "https://gitlab.domain.com"
Thank you for still being here :3
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?go env
Output in my golang:alpine3.15 imageThe text was updated successfully, but these errors were encountered: