Skip to content

Instantly share code, notes, and snippets.

@mweagle
Created April 25, 2016 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mweagle/3d0a8c55366c91ae9fc582e7c299376e to your computer and use it in GitHub Desktop.
Save mweagle/3d0a8c55366c91ae9fc582e7c299376e to your computer and use it in GitHub Desktop.
cmd = exec.Command("go", "build", "-o", executableOutput, "-tags", "lambdabinary", ".")
cmd.Env = os.Environ()
cmd.Env = append(cmd.Env, "GOOS=linux", "GOARCH=amd64")
ctx.logger.WithFields(logrus.Fields{
"Name": executableOutput,
}).Info("Compiling binary")
err = runOSCommand(cmd, ctx.logger)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment