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
Labels
FrozenDueToAge modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@m3ng9i
Copy link

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 modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Apr 29, 2019
@ianlancetaylor ianlancetaylor added this to the Go1.13 milestone Apr 29, 2019
@ianlancetaylor
Copy link
Contributor

CC @bcmills

Perhaps go mod download needs a -insecure flag.

@bcmills
Copy link
Contributor

bcmills commented Apr 29, 2019

See #27332 (comment).

@bcmills
Copy link
Contributor

bcmills commented Apr 29, 2019

Duplicate of #27332

@bcmills bcmills marked this as a duplicate of #27332 Apr 29, 2019
@bcmills bcmills closed this as completed Apr 29, 2019
@golang golang locked and limited conversation to collaborators Apr 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

4 participants