Golang won't import remote packages without a top level domain
I was trying to pull a Go package from a private Github enterprise server that had no top level domain (TLD) in it's hostname. Just git . Internally it resolved to git.company.net but was accessed just through git . My issues started then the go tool tried to pull a dependency from the import path "git/JesseMichael/project/package" but failed with the error: unrecognized import path "git/JesseMichael/project" (import path does not begin with hostname) go/src/cmd/go/internal/get/vcs.go#L766-L769 host := importPath[:slash] if !strings.Contains(host, ".") { return nil, errors.New("import path does not begin with hostname") } Go does not allow you to have a remote import path for a server without a . in the hostname. But changing the import path to include the full hostname doesn't fix the problem. When the import path is "git.company.net/JesseMichael/project/package" I would get the error: parsing...