Skip to content

compiling cli failed on schema #4000

@trippleflux

Description

@trippleflux

Description

Compiling Cli 23.0.0 failed with the following error :

.go_work/build/src/github.com/docker/cli/cli/compose/schema/schema.go:62:12: pattern data/config_schema_v*.json: no matching files found

Full log :

( cd /home/username/works/openwrt/build_dir/target-x86_64_glibc_custom/docker-23.0.0; GOOS="linux" GOARCH="amd64" GO386="" GOAMD64="v1" GOARM="" GOMIPS="" GOMIPS64="" GOPPC64="" CGO_ENABLED=1 CC="ccache_cc" CXX="ccache_cxx" CGO_CFLAGS="-mtune=tigerlake -march=tigerlake -O3 -funsafe-math-optimizations -ftree-vectorize -fno-caller-saves -fno-plt -mtune=tigerlake -march=tigerlake -O3 -funsafe-math-optimizations -ftree-vectorize -fhonour-copts -fmacro-prefix-map=/home/username/works/openwrt/build_dir/target-x86_64_glibc_custom/docker-23.0.0=docker-23.0.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_CPPFLAGS="-I/home/username/works/openwrt/staging_dir/toolchain-x86_64_gcc-12.2.0_glibc/usr/include -I/home/username/works/openwrt/staging_dir/toolchain-x86_64_gcc-12.2.0_glibc/include" CGO_CXXFLAGS="-mtune=tigerlake -march=tigerlake -O3 -funsafe-math-optimizations -ftree-vectorize -fno-caller-saves -fno-plt -mtune=tigerlake -march=tigerlake -O3 -funsafe-math-optimizations -ftree-vectorize -fhonour-copts -fmacro-prefix-map=/home/username/works/openwrt/build_dir/target-x86_64_glibc_custom/docker-23.0.0=docker-23.0.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_LDFLAGS="-L/home/username/works/openwrt/staging_dir/toolchain-x86_64_gcc-12.2.0_glibc/usr/lib -L/home/username/works/openwrt/staging_dir/toolchain-x86_64_gcc-12.2.0_glibc/lib -znow -zrelro -lc -lgcc_eh" GOPATH="/home/username/works/openwrt/build_dir/target-x86_64_glibc_custom/docker-23.0.0/.go_work/build" GOCACHE="/home/username/works/openwrt/tmp/go-build" GOMODCACHE="/home/username/works/openwrt/dl/go-mod-cache" GOENV=off GO111MODULE=auto GITCOMMIT=e92dd87  GO_LINKMODE=static VERSION=23.0.0 ./scripts/build/binary; )
Building static docker-linux-amd64
+ go build -o build/docker-linux-amd64 -tags  osusergo pkcs11 -ldflags  -X "github.com/docker/cli/cli/version.GitCommit=e92dd87" -X "github.com/docker/cli/cli/version.BuildTime=2023-02-03T08:38:11Z" -X "github.com/docker/cli/cli/version.Version=23.0.0" -extldflags -static -buildmode=pie github.com/docker/cli/cmd/docker
.go_work/build/src/github.com/docker/cli/cli/compose/schema/schema.go:62:12: pattern data/config_schema_v*.json: no matching files found
make[2]: *** [Makefile:76: /home/username/works/openwrt/build_dir/target-x86_64_glibc_custom/docker-23.0.0/.built] Error 1
make[2]: Leaving directory '/home/username/works/openwrt/feeds/packages/utils/docker'
time: package/feeds/packages/docker/compile#11.08#4.83#17.00
    ERROR: package/feeds/packages/docker failed to build.
make[1]: *** [package/Makefile:116: package/feeds/packages/docker/compile] Error 1
make[1]: Leaving directory '/home/username/works/openwrt'
make: *** [/home/username/works/openwrt/include/toplevel.mk:231: package/docker/compile] Error 2

Reproduce

Compiling docker cli 23.0.0 on OpenWrt

Expected behavior

No response

docker version

None

docker info

None

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions