KusionStack / kusion

Declarative Intent Driven Platform Orchestrator for Internal Developer Platform (IDP).
https://kusionstack.io
Apache License 2.0
858 stars 78 forks source link

Go test donot support macos m1 #48

Closed chai2010 closed 1 year ago

chai2010 commented 2 years ago

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

macbook-m1:compile chai$ go env GOOS GOARCH
darwin
arm64
macbook-m1:compile chai$ go list
kusionstack.io/kusion/pkg/compile
macbook-m1:compile chai$ go test
# bou.ke/monkey
/Users/chai/go/pkg/mod/bou.ke/monkey@v1.0.2/replace.go:24:14: undefined: jmpToFunctionValue
FAIL    kusionstack.io/kusion/pkg/compile [build failed]

2. What did you expect to see? (Required)

Go test build successe

3. What did you see instead (Required)

# bou.ke/monkey
/Users/chai/go/pkg/mod/bou.ke/monkey@v1.0.2/replace.go:24:14: undefined: jmpToFunctionValue
FAIL    kusionstack.io/kusion/pkg/compile [build failed]

4. What is your KusionStack components version? (Required)

latest https://github.com/KusionStack/kusion/commit/2e9b7501fe3b2dd3a98468e374d0715c44cd70e2

elliotxx commented 2 years ago

bou.ke/monkey does not support M1, and the package has been archived, should consider replacing with another package for mock. @SparkYuan @howieyuen

howieyuen commented 2 years ago

https://github.com/agiledragon/gomonkey

SparkYuan commented 1 year ago

Replaced with github.com/bytedance/mockey