
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
serverless-go-plugin
Advanced tools
serverless-go-plugin is a Serverless Framework plugin that compiles Go functions on the fly. You don't need to do it manually before serverless deploy. Once the plugin is installed it will happen automatically. The plugin works with Serverless Framework version 1.52 and above.
Features:
serverless deploy and serverless deploy function commands.serverless invoke local command.Install the plugin
npm i --save-dev serverless-go-plugin
Add it to your serverless.yaml
plugins:
- serverless-go-plugin
Replace every Go function's handler with *.go file path or a package path. E.g.
functions:
example:
runtime: go1.x
handler: functions/example/main.go # or just functions/example
Default values:
custom:
go:
baseDir: . # folder where go.mod file lives, if set `handler` property should be set relatively to that folder
binDir: .bin # target folder for binary files
cmd: GOOS=linux go build -ldflags="-s -w"' # compile command
The plugin compiles every Go function defined in serverless.yaml into .bin directory. After that it internally changes handler so that the Serverless Framework will deploy the compiled file not the source file. The plugin compiles a function only if runtime (either on function or provider level) is set to Go (go1.x).
For every matched function it also sets package parameter to
individually: true
exclude:
- `./**`
include:
- `<path to the compiled file>`
It will happen only if package is not defined for a function.
FAQs
Serverless Framework plugin that compiles Go functions on the fly
The npm package serverless-go-plugin receives a total of 3,691 weekly downloads. As such, serverless-go-plugin popularity was classified as popular.
We found that serverless-go-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.