-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: get can't fetch packages sources without dots in the base name #6520
Comments
Again, at least for git, it tries to use the given URL as a relative file-system path, which is neither broadly available nor unique. From reading vcs.go and get.go, the flow roughly reads like this: 1. Remote schemas are tried when repoRootForImportPath() (whic doesn't return an error despite not finding anything...) 2. No result? Then it must be the first element in $GOPATH 3. Call vcs.create() on the folder to import the package. As it expects it to be a local package, the remote path is prefixed by $GOPATH[0]. In the case of GIT, the clone-command exits with status 128, thus making go get fail as a whole. On a side note, get.go's downloadPackage() has a code (roughly) on the form if x != "" { ... } else { ... } if x == "" { ... } which looks like the else and second if-statement should be catenated together. Should I submit a change-request? |
I am triaging it again. Design of "go get" is about downloading packages from remote internet hosts, it means a domain with dot. If one wants to handle this for the local hostnames then it is possible to use local hostnames with a dot. I am not sure that we want to handle this case on the side of ping @msiebuhr |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
The text was updated successfully, but these errors were encountered: