chaosblade-io / chaosblade

An easy to use and powerful chaos engineering experiment toolkit.(阿里巴巴开源的一款简单易用、功能强大的混沌实验注入工具)
https://chaosblade.io
Apache License 2.0
5.86k stars 934 forks source link

undefined: channel.OsChannel #1016

Open lomoonmoonbird opened 3 months ago

lomoonmoonbird commented 3 months ago

Issue Description

编译chaosblade,执行命令 make build_linux

Type: bug report , feature request or question

Describe what happened (or what feature you want)

git clone -b master https://github.com/lomoonmoonbird/chaosblade-exec-cplus.git target/cache/chaosblade-exec-cplus Cloning into 'target/cache/chaosblade-exec-cplus'... make -C target/cache/chaosblade-exec-cplus make[1]: Entering directory '/go/src/github.com/lomoonmoonbird/chaosblade/target/cache/chaosblade-exec-cplus' rm -rf build-target/chaosblade-1.7.3 mkdir -p build-target/chaosblade-1.7.3/yaml build-target/chaosblade-1.7.3/lib/cplus/script env CGO_ENABLED=1 GO111MODULE=on go build -ldflags="-linkmode external -extldflags -static" -o build-target/chaosblade-1.7.3/lib/cplus/chaosblade-exec-cplus main.go go: downloading github.com/sirupsen/logrus v1.4.2 go: downloading github.com/shirou/gopsutil v2.20.5+incompatible go: downloading gopkg.in/yaml.v2 v2.2.8 go: downloading golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3 github.com/lomoonmoonbird/chaosblade-exec-cplus/common common/channel.go:27:15: undefined: channel.OsChannel make[1]: [Makefile:40: build_cplus] Error 2 make[1]: Leaving directory '/go/src/github.com/lomoonmoonbird/chaosblade/target/cache/chaosblade-exec-cplus' make: [Makefile:208: cplus] Error 2 make[1]: [Makefile:277: build_linux_with_arg] Error 2 make[1]: Leaving directory '/home/chaosblade/chaosblade' make: [Makefile:111: build_linux] Error 2

Describe what you expected to happen

How to reproduce it (as minimally and precisely as possible)

  1. make build_linux

Tell us your environment

Anything else we need to know?

zhanluxianshen commented 3 months ago

Your clone repo is not https://github.com/chaosblade-io/chaosblade .

lomoonmoonbird commented 3 months ago

Your clone repo is not https://github.com/chaosblade-io/chaosblade .

yes, my clone repo is definitely is https://github.com/chaosblade-io/chaosblade, image

in the chaosblade dirctory, it is the same as chaosblade-io repo: image

so in this direcotry i ran "make build_Linux" command, and then when built on exec_cplus step, it throw an errors

image