moby(docker)make test error(“无法加载软件包”)

我试图从源代码中制作(docker)moby,并通过以下链接testing源代码https://docs.docker.com/opensource/project/test-and-docs/

但是我遇到了一种错误“ 无法加载包 ”,有什么想法?

谢谢,

日志快照:

/home/z/software/moby$make test Makefile:115: The docker client CLI has moved to github.com/docker/cli. For a dev-test cycle involving the CLI, run: DOCKER_CLI_PATH=/host/path/to/cli/binary make shell then change the cli and compile into a binary at the same location. docker build -t "docker-dev:dry-run-test" -f "Dockerfile" . Sending build context to Docker daemon 89.84MB Step 1/41 : FROM debian:stretch ---> 72ef1cf971d1 Step 2/41 : ARG APT_MIRROR=deb.debian.org ---> Using cache ---> 443b40b04fd5 ... Successfully tagged docker-dev:dry-run-test docker run --rm -i --privileged -e DOCKER_CROSSPLATFORMS -e BUILD_APT_MIRROR -e BUILDFLAGS -e KEEPBUNDLE -e DOCKER_BUILD_ARGS -e DOCKER_BUILD_GOGC -e DOCKER_BUILD_PKGS -e DOCKER_BASH_COMPLETION_PATH -e DOCKER_CLI_PATH -e DOCKER_DEBUG -e DOCKER_EXPERIMENTAL -e DOCKER_GITCOMMIT -e DOCKER_GRAPHDRIVER -e DOCKER_INCREMENTAL_BINARY -e DOCKER_PORT -e DOCKER_REMAP_ROOT -e DOCKER_STORAGE_OPTS -e DOCKER_USERLANDPROXY -e TEST_INTEGRATION_DIR -e TESTDIRS -e TESTFLAGS -e TIMEOUT -e HTTP_PROXY -e HTTPS_PROXY -e NO_PROXY -e http_proxy -e https_proxy -e no_proxy -e VERSION -v "/home/z/software/moby/bundles:/go/src/github.com/docker/docker/bundles" -v /home/z/software/moby/.git:/go/src/github.com/docker/docker/.git -v "dockerdev-go-pkg-cache-gopath:/go/pkg" -v "dockerdev-go-pkg-cache-goroot-linux_amd64:/usr/local/go/pkg/linux_amd64" -v "dockerdev-go-pkg-cache-goroot-linux_amd64_netgo:/usr/local/go/pkg/linux_amd64_netgo" -t "docker-dev:dry-run-test" hack/make.sh dynbinary cross test-unit test-integration test-docker-py Removing bundles/ ---> Making bundle: dynbinary (in bundles/dynbinary) Building: bundles/dynbinary-daemon/dockerd-17.06.0-dev Created binary: bundles/dynbinary-daemon/dockerd-17.06.0-dev ---> Making bundle: cross (in bundles/cross) Created symlinks: bundles/cross/linux/amd64/docker-containerd bundles/cross/linux/amd64/docker-containerd-ctr bundles/cross/linux/amd64/docker-containerd-ctr.md5 bundles/cross/linux/amd64/docker-containerd-ctr.sha256 bundles/cross/linux/amd64/docker-containerd-shim bundles/cross/linux/amd64/docker-containerd-shim.md5 bundles/cross/linux/amd64/docker-containerd-shim.sha256 bundles/cross/linux/amd64/docker-containerd.md5 bundles/cross/linux/amd64/docker-containerd.sha256 bundles/cross/linux/amd64/docker-init bundles/cross/linux/amd64/docker-init.md5 bundles/cross/linux/amd64/docker-init.sha256 bundles/cross/linux/amd64/docker-proxy bundles/cross/linux/amd64/docker-proxy.md5 bundles/cross/linux/amd64/docker-proxy.sha256 bundles/cross/linux/amd64/docker-runc bundles/cross/linux/amd64/docker-runc.md5 bundles/cross/linux/amd64/docker-runc.sha256 bundles/cross/linux/amd64/dockerd bundles/cross/linux/amd64/dockerd-17.06.0-dev bundles/cross/linux/amd64/dockerd-17.06.0-dev.md5 bundles/cross/linux/amd64/dockerd-17.06.0-dev.sha256 Cross building: bundles/cross/linux/amd64 Building: bundles/cross/linux/amd64/dockerd-17.06.0-dev Created binary: bundles/cross/linux/amd64/dockerd-17.06.0-dev Copying nested executables into bundles/cross/linux/amd64 Cross building: bundles/cross/windows/amd64 Building: bundles/cross/windows/amd64/dockerd-17.06.0-dev.exe Created binary: bundles/cross/windows/amd64/dockerd-17.06.0-dev.exe ---> Making bundle: test-unit (in bundles/test-unit) DEPRECATED: use hack/test/unit instead of hack/make.sh test-unit can't load package: package github.com/docker/docker/bundles/test-integration/d1e2cd29f1efd/root/plugins/5bd618b2f25571b0498e3d2e7b7b43edb3b8cbc2321832604832e15a5c5c149e/rootfs/usr/local/go/doc/progs: found packages rand (cgo1.go) and rand2 (cgo2.go) in /go/src/github.com/docker/docker/bundles/test-integration/d1e2cd29f1efd/root/plugins/5bd618b2f25571b0498e3d2e7b7b43edb3b8cbc2321832604832e15a5c5c149e/rootfs/usr/local/go/doc/progs can't load package: package github.com/docker/docker/bundles/test-integration/d1e2cd29f1efd/root/plugins/5bd618b2f25571b0498e3d2e7b7b43edb3b8cbc2321832604832e15a5c5c149e/rootfs/usr/local/go/misc/cgo/errors: found packages main (err1.go) and pkg (issue13635.go) in /go/src/github.com/docker/docker/bundles/test-integration/d1e2cd29f1efd/root/plugins/5bd618b2f25571b0498e3d2e7b7b43edb3b8cbc2321832604832e15a5c5c149e/rootfs/usr/local/go/misc/cgo/errors can't load package: package github.com/docker/docker/bundles/test-integration/d1e2cd29f1efd/root/plugins/5bd618b2f25571b0498e3d2e7b7b43edb3b8cbc2321832604832e15a5c5c149e/rootfs/usr/local/go/misc/cgo/testcarchive: C source files not allowed when not using cgo or SWIG: main.c main2.c main3.c main4.c main5.c main_unix.c ...