Skip to content

script: use github.com/kubernetes-sigs/cri-tools directly#4034

Merged
estesp merged 1 commit intocontainerd:masterfrom
fuweid:me-use-current-git-for-critools
Feb 17, 2020
Merged

script: use github.com/kubernetes-sigs/cri-tools directly#4034
estesp merged 1 commit intocontainerd:masterfrom
fuweid:me-use-current-git-for-critools

Conversation

@fuweid
Copy link
Copy Markdown
Member

@fuweid fuweid commented Feb 17, 2020

When we call go get -d -v github.com/kubernetes-incubator/cri-tools/... which repos has been
moved to github.com/kubernetes-sigs/cri-tools, go get will create
package github.com/kubernetes-sigs/cri-tools.

go get -d -v github.com/kubernetes-incubator/cri-tools/...
github.com/kubernetes-incubator/cri-tools (download)
github.com/kubernetes-sigs/cri-tools (download)

According to old version of github.com/kubernetes-incubator/cri-tools
Makefile, if there is no github.com/kubernetes-sigs/cri-tools package,
it will create softlink self to github.com/kubernetes-sigs/cri-tools.
But go get will create github.com/kubernetes-sigs/cri-tools and
there is no softlink. Therefore, the critools are always latest one, not
specific version.

So, use github.com/kubernetes-sigs/cri-tools will be better and save
traffic from go get.

Signed-off-by: Wei Fu fuweid89@gmail.com

When we call `go get -d -v
github.com/kubernetes-incubator/cri-tools/...` which repos has been
moved to `github.com/kubernetes-sigs/cri-tools`, `go get` will create
package `github.com/kubernetes-sigs/cri-tools`.

```
go get -d -v github.com/kubernetes-incubator/cri-tools/...
github.com/kubernetes-incubator/cri-tools (download)
github.com/kubernetes-sigs/cri-tools (download)
```

According to old version of `github.com/kubernetes-incubator/cri-tools`
Makefile, if there is no `github.com/kubernetes-sigs/cri-tools` package,
it will create softlink self to `github.com/kubernetes-sigs/cri-tools`.
But `go get` will create `github.com/kubernetes-sigs/cri-tools` and
there is no softlink. Therefore, the critools are always latest one, not
specific version.

So, use `github.com/kubernetes-sigs/cri-tools` will be better and save
traffic from `go get`.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Feb 17, 2020

Build succeeded.

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@estesp estesp merged commit 48d998f into containerd:master Feb 17, 2020
@fuweid fuweid deleted the me-use-current-git-for-critools branch February 17, 2020 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants