Closed ahanoff closed 3 years ago
ah that's because it's building the go binary for Linux (Lambda's containers). Maybe setting env vars via foo=bar
on Windows doesn't work?
Getting the same error
Error: function simpleGo: build hook: 'GOOS' is not recognized as an internal or external command, operable program or batch file.
The code is the same hello world from https://www.compose.com/articles/go-serverless-with-apex-and-composes-mongodb/
In windows you can just run "go build" for help just use - go env
I build go function as described here http://www.starkandwayne.com/blog/quick-guide-to-deploying-golang-to-aws-lambda-using-apex/
But when I try to build function, I am getting the following error output:
Dev environment: OS: win10 Go: go1.9 windows/amd64 Apex: version 0.16.0
I'm wondering why GOOS is equal to linux