Skip to content

[release/1.2 backport] script: use github.com/kubernetes-sigs/cri-tools directly#4035

Merged
estesp merged 1 commit intocontainerd:release/1.2from
fuweid:cp12-246a560e
Feb 17, 2020
Merged

[release/1.2 backport] script: use github.com/kubernetes-sigs/cri-tools directly#4035
estesp merged 1 commit intocontainerd:release/1.2from
fuweid:cp12-246a560e

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
(cherry picked from commit 246a560)
Signed-off-by: Wei Fu fuweid89@gmail.com

from #4034

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>
(cherry picked from commit 246a560)
Signed-off-by: Wei Fu <fuweid89@gmail.com>
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

but we should wait with merging until after "master" has been merged (#4034)

@estesp estesp merged commit 89c46ed into containerd:release/1.2 Feb 17, 2020
@fuweid fuweid deleted the cp12-246a560e 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