Skip to content

cmd/go: how to use go mod download to download a module from http port 80 ? #31741

Closed
@m3ng9i

Description

@m3ng9i

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/[email protected]: 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.modules

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions