简体   繁体   中英

Running unit test in golang error: %1 is not a valid win32 application

I am trying to run the unit test cases written in go lang. While executing the test cases, i am getting error like "%1 is not a valid Win32 application".

Not sure, what is happening.

if i set my GOOS to windows it is working

If go env GOOS<\/code> produces a different operating system than your own, then you can restore it to its default value by unsetting the environment variable GOOS<\/code> .

try restarting your PC!!! I don't know exactly but this may cause because by temporary files clashing with your go instance

"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM