kev
kev

Reputation: 9755

Where does the go docker sdk gets fetched from?

I can execute:

go get github.com/docker/docker/client

(from here) and see the source in my $GOPATH/src/github.com/docker/docker/client.

But there is no such repository https://github.com/docker/docker/client.

Where does go actually get the source from? Can someone point me to the url?

Upvotes: 1

Views: 38

Answers (1)

Samuel Toh
Samuel Toh

Reputation: 19298

Q: Where does the go docker sdk gets fetched from?

A: As mentioned. https://github.com/moby/moby

I had trouble working out the answer like you do as well. But this is how I derived it in the end.

Like what you you did.

First, running go get github.com/docker/docker/client. This command git cloned a docker/docker project into my $GOPATH/github.com directory.

Then I went to the project directory and did a git remote get-url origin to find out the original source it came from.

Output is: https://github.com/docker/docker

Putting this URL into the browser redirects me to the github.com/moby/moby project, I think they must have setup a dns to redirect people to that URL.

I haven't lookup or read about how the go get command works but it seems like there is a little bit of smartness in there to tell it that github.com/docker/docker is the actual project's URL which git clone would perform against. Then the /client bit is just a submodule or a directory of the project that it is cloning from.

Upvotes: 1

Related Questions