From 8578ed8d0bde74bbada32d04b3cfbd55840899b1 Mon Sep 17 00:00:00 2001 From: XiaodongLoong <57342990+XiaodongLoong@users.noreply.github.com> Date: Wed, 20 Nov 2019 21:26:06 -0600 Subject: [PATCH] buildx fix type convert compile error on mips64el buildx fix type convert compile error; the type of the "s.Rdev" is 32bit on mip64el, and it cannot convert 'uint32' to 'uint64' implicitly with programming in GO language; convert the "s.Rdev" type to 'uint64' explicitly; --- vendor/github.com/docker/docker/pkg/system/stat_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/github.com/docker/docker/pkg/system/stat_linux.go b/vendor/github.com/docker/docker/pkg/system/stat_linux.go index 98c9eb18..8a090a53 100644 --- a/vendor/github.com/docker/docker/pkg/system/stat_linux.go +++ b/vendor/github.com/docker/docker/pkg/system/stat_linux.go @@ -8,7 +8,7 @@ func fromStatT(s *syscall.Stat_t) (*StatT, error) { mode: s.Mode, uid: s.Uid, gid: s.Gid, - rdev: s.Rdev, + rdev: uint64(s.Rdev), mtim: s.Mtim}, nil }