Skip to content
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

cmd/go: go module with a private repo on specific port #38213

Closed
0x221A opened this issue Apr 2, 2020 · 2 comments
Closed

cmd/go: go module with a private repo on specific port #38213

0x221A opened this issue Apr 2, 2020 · 2 comments
Labels
FrozenDueToAge modules WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@0x221A
Copy link

0x221A commented Apr 2, 2020

What version of Go are you using (go version)?

$ go version
go version go1.14 darwin/amd64

Does this issue reproduce with the latest release?

No

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/rootblack45/Library/Caches/go-build"
GOENV="/Users/rootblack45/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/rootblack45/Projects/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.14/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.14/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
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/qh/bpc7h6_96yg0nqdm3ztr_3p00000gn/T/go-build518112140=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

I want to use go mod with a private repo. My GitLab running on port 19547 and GitLab SSH running on port 36000. I try to config git config to specific port but still got an error

What did you see instead?

git.rootblack45.io/mymodule: cannot find module providing package git.rootblack45.io/mymodule: unrecognized import path "git.rootblack45.io/mymodule": https fetch: Get "https://git.rootblack45.io/mymodule?go-get=1": dial tcp :443: i/o timeout

@bcmills
Copy link
Contributor

bcmills commented Apr 2, 2020

The remote import path protocol expects the initial HTTPS (or HTTP) response from the default port (Go package paths are not URLs, and do not include port numbers). The response from that server should include the port (if needed) in the VCS URL that it returns.

@bcmills bcmills added modules WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Apr 2, 2020
@0x221A
Copy link
Author

0x221A commented Apr 2, 2020

The remote import path protocol expects the initial HTTPS (or HTTP) response from the default port (Go package paths are not URLs and do not include port numbers). The response from that server should include the port (if needed) in the VCS URL that it returns.

A default port is running another service. I know that Go package paths are not URLs. I don't know that the response from the server is included the port or not. But I had tried to change .gitconfig file to pull Go package by SSH instead of HTTP but it, not work

@golang golang locked and limited conversation to collaborators Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge modules WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

4 participants