Skip to content

Move to Go modules#4760

Merged
estesp merged 12 commits intocontainerd:masterfrom
zhsj:gomod
Dec 1, 2020
Merged

Move to Go modules#4760
estesp merged 12 commits intocontainerd:masterfrom
zhsj:gomod

Conversation

@zhsj
Copy link
Contributor

@zhsj zhsj commented Nov 21, 2020

Updates #3031

@k8s-ci-robot
Copy link

Hi @zhsj. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Nov 21, 2020

Build succeeded.

@AkihiroSuda AkihiroSuda added this to the 1.5 milestone Nov 21, 2020
@theopenlab-ci
Copy link

theopenlab-ci bot commented Nov 21, 2020

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Nov 21, 2020

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Nov 21, 2020

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Nov 21, 2020

Build succeeded.

@zhsj
Copy link
Contributor Author

zhsj commented Nov 21, 2020

Two things are left which will be addressed in later PR:

  • doc clean up
  • bump protobuf and grpc version.
    This is needed, so we can drop replace in go.mod. The replace is inconvenient for downstream users, they need copy all the replace to their go.mod.

@zhsj zhsj marked this pull request as ready for review November 21, 2020 17:37
@theopenlab-ci
Copy link

theopenlab-ci bot commented Nov 21, 2020

Build succeeded.

@zhsj
Copy link
Contributor Author

zhsj commented Nov 21, 2020

Use release-tools to compare the libraries with master:

  • github.com/Microsoft/go-winio v0.4.14 -> 5b44b70ab3ab
  • github.com/Microsoft/hcsshim/test 966bebae11b4 new
  • github.com/fullsailor/pkcs7 8306686428a5 -> d7302db945fa
  • github.com/golang/groupcache 215e87163ea7 new
  • github.com/google/go-cmp v0.2.0 -> v0.5.1
  • github.com/imdario/mergo v0.3.7 -> v0.3.10
  • github.com/matttproud/golang_protobuf_extensions v1.0.1 -> c182affec369
  • github.com/moby/sys/symlink v0.1.0 new
  • github.com/prometheus/client_golang v1.6.0 -> v1.7.1
  • github.com/prometheus/common v0.9.1 -> v0.10.0
  • github.com/prometheus/procfs v0.0.11 -> v0.1.3
  • github.com/urfave/cli v1.22.1 -> v1.22.2
  • go.opencensus.io v0.22.0 -> v0.22.2
  • golang.org/x/sync 42b317875d0f -> 6e8e738ad208
  • golang.org/x/xerrors 9bdfabe68543 new
  • google.golang.org/appengine v1.6.5 new
  • gopkg.in/yaml.v2 v2.2.8 -> v2.3.0

Does the github.com/urfave/cli bug in v1.22.2 affects containerd too? Does containerd has command that accepts -1 as parament like runc?

Edit:

without bump urfave/cli

  • github.com/Microsoft/go-winio v0.4.14 -> 5b44b70ab3ab
  • github.com/Microsoft/hcsshim/test 966bebae11b4 new
  • github.com/fullsailor/pkcs7 8306686428a5 -> d7302db945fa
  • github.com/golang/groupcache 215e87163ea7 new
  • github.com/google/go-cmp v0.2.0 -> v0.5.1
  • github.com/imdario/mergo v0.3.7 -> v0.3.10
  • github.com/matttproud/golang_protobuf_extensions v1.0.1 -> c182affec369
  • github.com/moby/sys/symlink v0.1.0 new
  • github.com/prometheus/client_golang v1.6.0 -> v1.7.1
  • github.com/prometheus/common v0.9.1 -> v0.10.0
  • github.com/prometheus/procfs v0.0.11 -> v0.1.3
  • go.opencensus.io v0.22.0 -> v0.22.2
  • golang.org/x/sync 42b317875d0f -> 6e8e738ad208
  • golang.org/x/xerrors 9bdfabe68543 new
  • google.golang.org/appengine v1.6.5 new
  • gopkg.in/yaml.v2 v2.2.8 -> v2.3.0

@theopenlab-ci
Copy link

theopenlab-ci bot commented Nov 22, 2020

Build succeeded.

@zhsj
Copy link
Contributor Author

zhsj commented Nov 22, 2020

hmm, the upgrade of google/protobuf is not straightforward, let's leave it to another PR. containerd/ttrpc#62

@theopenlab-ci
Copy link

theopenlab-ci bot commented Nov 22, 2020

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Nov 22, 2020

Build succeeded.

@AkihiroSuda
Copy link
Member

Does the github.com/urfave/cli bug in v1.22.2 affects containerd too? Does containerd has command that accepts -1 as parament like runc?

Potentially yes. So better to continue using v1.22.1

@AkihiroSuda
Copy link
Member

LGTM except a couple of nits, thanks for working on this 👍

@AkihiroSuda
Copy link
Member

/ok-to-test

go.mod Outdated
Copy link
Member

@dims dims Nov 25, 2020

Choose a reason for hiding this comment

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

Can you please add a trailing comment?
// urfave/cli must be <= v1.22.1 due to a regression: https://github.com/urfave/cli/issues/1092

the trailing comments get preserved (see the go.mod in kubernetes/kubernetes for examples of how we add some comments)

Copy link
Contributor Author

@zhsj zhsj Nov 25, 2020

Choose a reason for hiding this comment

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

Added. btw, kubernetes is using v1.22.2 never mind, kubernetes doesn't use urfave/cli for command.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Nov 25, 2020

Build succeeded.

Copy link
Member

@mikebrow mikebrow 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
Member

@dims dims left a comment

Choose a reason for hiding this comment

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

LGTM

zhsj added 12 commits December 1, 2020 01:33
Signed-off-by: Shengjing Zhu <zhsj@debian.org>
Signed-off-by: Shengjing Zhu <zhsj@debian.org>
Signed-off-by: Shengjing Zhu <zhsj@debian.org>
Signed-off-by: Shengjing Zhu <zhsj@debian.org>
Signed-off-by: Shengjing Zhu <zhsj@debian.org>
Signed-off-by: Shengjing Zhu <zhsj@debian.org>
Hack with space in grep, so it won't match github.com/Microsoft/hcsshim/test

Signed-off-by: Shengjing Zhu <zhsj@debian.org>
So it won't touch go.mod

Signed-off-by: Shengjing Zhu <zhsj@debian.org>
Signed-off-by: Shengjing Zhu <zhsj@debian.org>
Signed-off-by: Shengjing Zhu <zhsj@debian.org>
Signed-off-by: Shengjing Zhu <zhsj@debian.org>
Signed-off-by: Shengjing Zhu <zhsj@debian.org>
@zhsj
Copy link
Contributor Author

zhsj commented Nov 30, 2020

rebased due to conflicts.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Nov 30, 2020

Build succeeded.

Copy link
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

@estesp estesp merged commit fbf1a72 into containerd:master Dec 1, 2020
@fuweid
Copy link
Member

fuweid commented Dec 2, 2020

I compared vendor.conf with go.{mod,sum} and found one change (containerd doesn't use github.com/hashicorp/golang-lru directly):

vendor.conf
github.com/hashicorp/golang-lru                     v0.5.3

go.mod
github.com/hashicorp/golang-lru                     v0.5.1

Changes LGTM.

@zhsj
Copy link
Contributor Author

zhsj commented Dec 2, 2020

I compared vendor.conf with go.{mod,sum} and found one change (containerd doesn't use github.com/hashicorp/golang-lru directly):

I used release-tool to compare the dependencies. This in not included in vendor/modules.txt, thus release-tool won't check it :)

@zhsj zhsj deleted the gomod branch December 2, 2020 06:46
@fuweid
Copy link
Member

fuweid commented Dec 2, 2020

OK! Thanks @zhsj Great Job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants