Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make build_darwin error #1041

Open
Dr-wgy opened this issue Jun 7, 2024 · 1 comment
Open

make build_darwin error #1041

Dr-wgy opened this issue Jun 7, 2024 · 1 comment
Assignees
Labels
type/question Further information is requested

Comments

@Dr-wgy
Copy link

Dr-wgy commented Jun 7, 2024

Issue Description

Type: bug report , feature request or question

Describe what happened (or what feature you want)

rm -rf target/chaosblade-1.7.3
mkdir -p target/chaosblade-1.7.3/bin target/chaosblade-1.7.3/yaml
env CGO_ENABLED=1 GO111MODULE=on go run build/spec.go target/chaosblade-1.7.3/yaml/chaosblade-cloud-spec-1.7.3.yaml
go: updates to go.mod needed; to update it:
go mod tidy
make[1]: *** [build_yaml] Error 1
make: *** [cloud] Error 2

Describe what you expected to happen

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

Tell us your environment

go version 1.20.14 mac

Anything else we need to know?

@Dr-wgy Dr-wgy changed the title make build_darwin make build_darwin error Jun 7, 2024
@xcaspar xcaspar self-assigned this Jul 24, 2024
@xcaspar xcaspar added the type/bug Something isn't working label Jul 24, 2024
@xcaspar
Copy link
Member

xcaspar commented Jul 24, 2024

Please pull latest codes and try again using make build_with cloud command. The normal output is as follows:

 make build_with cloud                                
rm -rf target/chaosblade-1.7.4 target/chaosblade-1.7.4.tar.gz
mkdir -p target/chaosblade-1.7.4/bin target/chaosblade-1.7.4/lib target/chaosblade-1.7.4/yaml
make -C target/cache/chaosblade-exec-cloud
rm -rf target/chaosblade-1.7.4 
mkdir -p target/chaosblade-1.7.4/bin target/chaosblade-1.7.4/yaml
env CGO_ENABLED=1 GO111MODULE=on go run build/spec.go target/chaosblade-1.7.4/yaml/chaosblade-cloud-spec-1.7.4.yaml
env CGO_ENABLED=1 GO111MODULE=on go build -ldflags="-s -w" -o target/chaosblade-1.7.4/bin/chaos_cloud main.go
cp target/cache/chaosblade-exec-cloud/target/chaosblade-1.7.4/bin/* target/chaosblade-1.7.4/bin
cp target/cache/chaosblade-exec-cloud/target/chaosblade-1.7.4/yaml/* target/chaosblade-1.7.4/yaml

@xcaspar xcaspar added type/question Further information is requested and removed type/bug Something isn't working labels Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants