Skip to content

go get https://github.com/user/repo should work #30913

@localhostdotdev

Description

@localhostdotdev

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

$ go version
go version go1.12.1 darwin/amd64

Does this issue reproduce with the latest release?

Yes

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

macOS / amd64 (this applies to all platforms) (and I don't like giving out my local user name)

What did you do?

go get https://github.com/cloudflare/mitmengine

What did you expect to see?

Nothing, just having the dependency added.

What did you see instead?

An error:

package https:/github.com/cloudflare/mitmengine: https:/github.com/cloudflare/mitmengine: invalid import path: malformed import path "https:/github.com/cloudflare/mitmengine": invalid char ':'

I'm not sure what's the rationale behind this (it actually goes through the git protocol probably), but as an user I expect to be able to copy/paste from Chrome and have it work without removing the https:// everytime.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions