× Unhandled exception in handler 'package-validation'.
× { Error: Command failed with exit code 1: ./tmp
'tmp' is not recognized as an internal or external command
Aside from this, I can't pass an executable to the 'handler' part of the serverless.ym.
If I do : handler: bin/main.exe, I have this error:
× Unhandled exception in handler 'package-validation'.
× { [Error: ENOENT: no such file or directory, open 'C:\{path_to_project}\lambda\bin\main.go']
If I do: handler: bin/main, I have this error:
× Unhandled exception in handler 'package-validation'.
× { [Error: ENOENT: no such file or directory, open 'C:\{path_to_project}\lambda\.go']
optional, if you are using any of the following frameworks to invoke handlers
go version: 1.19.3
Possible Solution
I ran into GoRunner.js, adding some console.log, what I see is : most of the time , main.go file is deleted from tmp directory during the go build command.
Bug Report
Current Behavior
I can't manage to make serverless-offline work with golang environment.
When I do the http call: GET http://localhost:3000/ping, I have the error
Aside from this, I can't pass an executable to the 'handler' part of the serverless.ym. If I do :
handler: bin/main.exe
, I have this error:If I do:
handler: bin/main
, I have this error:Sample Code
Expected behavior/code
Go file should be executed correctly on http call
Environment
serverless
version: 3.26.0serverless-offline
version: 12.0.4node.js
version: v16.17.1OS
: Windows 10optional, if you are using any of the following frameworks to invoke handlers
go
version: 1.19.3Possible Solution
I ran into GoRunner.js, adding some console.log, what I see is : most of the time , main.go file is deleted from tmp directory during the
go build
command.Additional context/Screenshots