-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: cannot fetch gitlab repo using git:// using insteadOf (macOS git 2.19.1) #28422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @denisemauldin, What is the output of On gitlab.com, it returns a meta tag for the
With the following settings in my
This leads me to believe that git isn't broken (I'm using 2.19.1 as well) But I don't have access to a custom host, so it's difficult for me to diagnose further. |
@andybons Here's the output for your questions. Our host is internal/local and does not support https, which is why I'm trying to change git from using https:// to git://. Thanks.
Our host does not support https. |
@denisemauldin Thank you for following up with the output. The issue is that your server does not support SSL/TLS (https) so it can't get at the meta tags needed by the I'm sorry that I don't have a better solution for you. More context can be found at #27254 (comment) Closing out for now. Please comment if you feel this was in error. |
What version of Go are you using (
go version
)?go 1.11.1 darwin/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/dmauldin/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/dmauldin/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.11.1/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.11.1/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/_t/sfww_0f53kl1_9x3hj3p5d100000gn/T/go-build553492779=/tmp/go-build -gno-record-gcc-switches -fno-common"
What did you do? What did you expect to see? What did you see instead?
Installed go and attempted to use
go get
to fetch a gitlab repository via git:// instead of https://I found this URL: #6968
I added a git config for my URL.
Running
go get gitlab.<myhost>/blah/blah.git
returnsunrecognized import path
with thehttps
url still in thehttps fetch
(which gets aconnection refused
). IsinsteadOf
still the correct way to do this as per the linked issue?The text was updated successfully, but these errors were encountered: