From 3269f20688162aad4c35c1f5b1ccdb52f9839d03 Mon Sep 17 00:00:00 2001 From: jano3 <jano@bob.co.za> Date: Thu, 14 Dec 2023 11:57:20 +0200 Subject: [PATCH] Add lambda.norpc to build arguments --- mage_helpers/build.go | 1 + 1 file changed, 1 insertion(+) diff --git a/mage_helpers/build.go b/mage_helpers/build.go index 7dc9396..b275887 100644 --- a/mage_helpers/build.go +++ b/mage_helpers/build.go @@ -84,6 +84,7 @@ func Build(dir string, module string, isDebug bool) error { func BuildGolangApp(outputDir string, appPath string, module string, isDebug bool) error { commandArgs := []string{ `build`, + `-tags=lambda.norpc`, fmt.Sprintf(`-ldflags=-X %v/globals.BuildVersion=%v -X %v/globals.OSType=%v -X %v/globals.IsDebugBuild=%v`, module, CurrentCommit(), module, runtime.GOOS, module, isDebug), } -- GitLab