kusion icon indicating copy to clipboard operation
kusion copied to clipboard

Go test donot support macos m1

Open chai2010 opened this issue 3 years ago • 2 comments

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/[email protected]/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/[email protected]/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

chai2010 avatar May 25 '22 04:05 chai2010

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

elliotxx avatar Jun 01 '22 03:06 elliotxx

https://github.com/agiledragon/gomonkey

howieyuen avatar Jun 06 '22 08:06 howieyuen

Replaced with github.com/bytedance/mockey

SparkYuan avatar Aug 23 '23 04:08 SparkYuan