opencontainers / runtime-tools

OCI Runtime Tools
https://www.opencontainers.org/
Apache License 2.0
434 stars 141 forks source link

build error #715

Open i0x71 opened 3 years ago

i0x71 commented 3 years ago

Hi, i just downloaded release 0.9.0 and im getting build errors, any suggestions ?

runtime-tools-0.9.0$ make go build -tags "" -ldflags "-X main.gitCommit= -X main.version=0.9.0" -o oci-runtime-tool ./cmd/oci-runtime-tool

_/home/i0x71/goEnv/runtime-tools-0.9.0/cmd/oci-runtime-tool

cmd/oci-runtime-tool/generate.go:22:21: cannot use cli.StringSliceFlag literal (type cli.StringSliceFlag) as type cli.Flag in slice literal: cli.StringSliceFlag does not implement cli.Flag (Apply method has pointer receiver) cmd/oci-runtime-tool/generate.go:23:21: cannot use cli.StringSliceFlag literal (type cli.StringSliceFlag) as type cli.Flag in slice literal: cli.StringSliceFlag does not implement cli.Flag (Apply method has pointer receiver) cmd/oci-runtime-tool/generate.go:24:21: cannot use cli.StringSliceFlag literal (type cli.StringSliceFlag) as type cli.Flag in slice literal: cli.StringSliceFlag does not implement cli.Flag (Apply method has pointer receiver) cmd/oci-runtime-tool/generate.go:25:21: cannot use cli.StringSliceFlag literal (type cli.StringSliceFlag) as type cli.Flag in slice literal: cli.StringSliceFlag does not implement cli.Flag (Apply method has pointer receiver) cmd/oci-runtime-tool/generate.go:26:14: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal: cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver) cmd/oci-runtime-tool/generate.go:27:21: cannot use cli.StringSliceFlag literal (type cli.StringSliceFlag) as type cli.Flag in slice literal: cli.StringSliceFlag does not implement cli.Flag (Apply method has pointer receiver) cmd/oci-runtime-tool/generate.go:28:14: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal: cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver) cmd/oci-runtime-tool/generate.go:29:21: cannot use cli.StringSliceFlag literal (type cli.StringSliceFlag) as type cli.Flag in slice literal: cli.StringSliceFlag does not implement cli.Flag (Apply method has pointer receiver) cmd/oci-runtime-tool/generate.go:30:14: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal: cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver) cmd/oci-runtime-tool/generate.go:31:16: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal: cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver) cmd/oci-runtime-tool/generate.go:31:16: too many errors make: *** [Makefile:14: tool] Error 2