rootfs: fix compilation error (includes sirupsen->Sirupsen fix)#448
rootfs: fix compilation error (includes sirupsen->Sirupsen fix)#448mlaventure merged 2 commits intocontainerd:masterfrom
Conversation
vendor.conf
Outdated
There was a problem hiding this comment.
Reason of this fix: the go-runc vendored in this PR no longer depends on logrus
cmd/ctr/run.go
Outdated
There was a problem hiding this comment.
I included this unrelated fix in the PR just because this is nitpicky.
I can open separate PR if I should.
There was a problem hiding this comment.
|
I know the Sirupsen rename is possibly a problem with far-reaching effects, but I think we need to use the "right" name (lowercase) and start fixing all the imported vendors. I don't think we are in a rush necessarily so even if it takes some time we are OK? Or are we stuck because of the duplicate use (imports using both cases)? |
|
I agree with @estesp here. We could fix it in |
rootfs/apply.go
Outdated
There was a problem hiding this comment.
Please don't reassign: this fix needs to be upstreamed to OCI. I'll submit a PR today.
There was a problem hiding this comment.
I've filed opencontainers/image-spec#514 to take care of this.
|
I agree we should fix docker and use lowercase version here, that is the right approach. |
|
Thank you all for the comment. However, IIUC, we should make this package compilable by the end of January, or at the latest, by the end of February. Given that there is a risk we fail to modify docker to use the lowercase name by the period, When the upstream docker is successfully updated to use the lowercase name, we can safely remove |
|
@AkihiroSuda apparently the change to lowercase was reverted (see sirupsen/logrus#451 (comment)), so upper case it is :) |
github.com/docker/docker/pkg/archive requires Sirupsen/logrus. So let's remove sirupsen/logrus at the moment. Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
|
@mlaventure Rebased PR to master. |
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
|
LGTM |
go build github.com/docker/containerd/rootfswas failing because of an errorIdeally we should migrate to
sirupsen, but it seems hard. (https://github.com/docker/containerd/pull/415#pullrequestreview-16305753)So I suggest adapting
Sirupsenat the moment.This PR also fixes a bunch of other compilation errors in
rootfs, and some clean up for CLI.