Golang AWS SAM lambda函数调试在M1 Mac上不起作用

ome*_*man 6 goland aws-sam apple-m1

当尝试调试简单的 SAM 时,我收到以下错误:

could not launch process: fork/exec /var/task/hello: function not implemented
Run Code Online (Sandbox Code Playgroud)

有人知道如何解决吗?

完整日志是:

Mounting /Users/.../HelloWorld as /var/task:ro,delegated inside runtime container
START RequestId: 87012bed-214a-4603-8f3c-675ce1551167 Version: $LATEST
API server listening at: [::]:60198
2022-01-18T17:21:55Z warning layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
2022-01-18T17:21:55Z info layer=debugger launching process with args: [/var/task/hello]
could not launch process: fork/exec /var/task/hello: function not implemented
2022/01/18 17:21:55 exit status 1
18 Jan 2022 17:21:55,118 [ERROR] (rapid) Init failed error=Runtime exited with error: exit status 1 InvokeID=
API server listening at: [::]:60198
2022-01-18T17:21:55Z warning layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)
2022-01-18T17:21:55Z info layer=debugger launching process with args: [/var/task/hello]
could not launch process: fork/exec /var/task/hello: function not implemented
2022/01/18 17:21:55 exit status 1
END RequestId: 473c16f3-4562-40aa-9a9f-1528fe87aaaa
REPORT RequestId: 473c16f3-4562-40aa-9a9f-1528fe87aaaa  Init Duration: 1.18 ms  Duration: 1041.97 ms    Billed Duration: 1042 ms    Memory Size: 128 MB Max Memory Used: 128 MB 

Run Code Online (Sandbox Code Playgroud)