Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to compile binaries from command line. #4

Merged
merged 1 commit into from
Nov 25, 2019

Conversation

prozz
Copy link
Contributor

@prozz prozz commented Nov 14, 2019

Add sls go-compile for compiling Go binaries.

@@ -26,7 +26,17 @@ module.exports = class Plugin {
'before:package:createDeploymentArtifacts': this.compileFunctions.bind(this),
// Because of https://github.com/serverless/serverless/blob/master/lib/plugins/aws/invokeLocal/index.js#L361
// plugin needs to compile a function and then ignore packaging.
'before:invoke:local:invoke': this.compileFunctionAndIgnorePackage.bind(this)
'before:invoke:local:invoke': this.compileFunctionAndIgnorePackage.bind(this),
'go-compile:compile': this.compileFunctions.bind(this)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, can you include that command in the README.md?

@mthenw mthenw merged commit 81616a0 into mthenw:master Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants