agiledragon / gomonkey

gomonkey is a library to make monkey patching in unit tests easy
MIT License
1.93k stars 178 forks source link

can gomonkey used on arm platform? #19

Open User979269852 opened 4 years ago

User979269852 commented 4 years ago

I used it om arm platform,and it failed with such error: "../../../../pkg/mod/github.com/agiledragon/gomonkey@v2.0.1+incompatible/patch.go:160:10: undefined: buildJmpDirective",but it runs ok on x86 platform.Can't it used on arm platform?

agiledragon commented 4 years ago

Why must you use gomonkey on arm platform? Supported Platform include MAC OS X amd64, Linux amd64 and Windows amd64 which has been explained in the README.

unicofu commented 3 years ago

@agiledragon I meet a same issue in ubuntu18, have you solve this problem?

lamg commented 3 years ago

@agiledragon with Apple M1 laptops released solving this becomes more important. Could you explain what would be needed for supporting that platform?

fran96 commented 3 years ago

@agiledragon same issue on Apple M1, how can this be solved please?

wathenjiang commented 3 years ago

yet, Use go stub instead, or use gomonkey on amd64.

agiledragon commented 2 years ago

Arm64 is fully supported in the v2.2.0.

kristopher8 commented 2 years ago

Arm64 is fully supported in the v2.2.0.

not support yet

agiledragon commented 2 years ago

Arm64 is fully supported in the v2.2.0.

not support yet

What happend?

EllenChen999 commented 2 years ago

Arm64 is fully supported in the v2.2.0.

not support yet

What happend?

it is not work on arm64

it reports errors : panic: permission denied [recovered]

arfan commented 1 year ago

yep I got the panic: permission denied also

Kush-Wednesday commented 1 year ago

undefined: buildJmpDirective I am getting this error and I have version 2.9.0

alandtsang commented 9 months ago

The same error on MacOS M2 with version 2.10.1

agiledragon commented 8 months ago

v2.11.0 has been released!