golang通过build-fc-zip.exe打包的zip,函数计算测试调用,提示错误:{ “ErrorCode”: “InvalidArgument”, “ErrorMessage”: “Failed to start function, Code: 1, msg: read from init chan timeout:init timed out after 30 second.:/code/main: 1: /code/main: MZ @ : not found
/code/main: 1: /code/main: Syntax error: Unterminated quoted string
” }
这是什么原因呢?
函数配置如图
打包命令: make package_name=data-screen package-win
package-win: set CGO_ENABLED=0 set GOOS=linux set GOARCH=amd64 go build -o dist/main cmd/$(package_name)/main.go D:\workspace\homeking\go\bin\build-fc-zip.exe -output dist/$(package_name).zip dist/main