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: how to use `go mod download` to download a module from http port 80 ? #31741

Closed
m3ng9i opened this issue Apr 29, 2019 · 3 comments
Closed

Comments

@m3ng9i
Copy link

@m3ng9i m3ng9i commented Apr 29, 2019

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

$ go version
go version go1.12.4 linux/amd64

Does this issue reproduce with the latest release?

Yes

What did you do?

I want to use go mod download command to download a private repository which is served at http port 80 (but not https port 443). The go mod download return an error:

    go: my-package.local/mypkg@v0.1.0: unrecognized import path "my-package.local/mypkg" (https fetch: Get https://my-package.local/mypkg?go-get=1: dial tcp <IP>:443: connect: connection refused)
    go: error loading module requirements
@ianlancetaylor ianlancetaylor changed the title How to use `go mod download` to download a module from http port 80 ? cmd/go: how to use `go mod download` to download a module from http port 80 ? Apr 29, 2019
@ianlancetaylor ianlancetaylor added this to the Go1.13 milestone Apr 29, 2019
@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Apr 29, 2019

CC @bcmills

Perhaps go mod download needs a -insecure flag.

@bcmills

This comment has been minimized.

Copy link
Member

@bcmills bcmills commented Apr 29, 2019

@bcmills

This comment has been minimized.

Copy link
Member

@bcmills bcmills commented Apr 29, 2019

Duplicate of #27332

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.