x/vgo: error invalid server URL "ssh://git@git.company.com/org/repo": must be HTTPS
#24000
Labels
Milestone
invalid server URL "ssh://git@git.company.com/org/repo": must be HTTPS
#24000
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
vgo version
)?go version go1.10 darwin/amd64 vgo:2018-02-20.1
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
vgo env
)?$ vgo env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/dmitris/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/dmitris/go"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
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/d9/6nm5dx2j7vz3hv0kw1m2mdrw0000gp/T/go-build101725784=/tmp/go-build -gno-record-gcc-switches -fno-common"
VGOMODROOT=""
What did you do?
attempt to compile existing package with
vgo
by adding an empty filego.mod
and runningvgo install -v
What did you expect to see?
package built without errors
What did you see instead?
An error fetching the code:
invalid server URL "ssh://git@git.company.com/go/foobar": must be HTTPS
The package being built - let's call it
go.company.com/team/proj
[real names changed but consistently] uses an internal package go.company.com/go/foobar. The "normal"go get
relies on the redirector proxy (similar to the one on golang.org/x) serving meta tags:vgo
shows the following error - possibly it does not (yet) know how to handlessh://git@
(or is it by design?):I hope that vgo would continue to allow checking out code from
ssh://git@git.company.com
without having to apply any "hacks" mapping https://git.company.com (useless for us, must use authenticated ssh access to the internal git server) to that "real" git URL.The text was updated successfully, but these errors were encountered: