From 3591a82b6b8fe858f068d8e5604cd91c11104b0e Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Fri, 16 Feb 2024 04:47:39 +0300 Subject: [PATCH] core: always inject the `nobadger` build tag --- environment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment.go b/environment.go index bb5a841..e088367 100644 --- a/environment.go +++ b/environment.go @@ -127,7 +127,7 @@ func (b Builder) newEnvironment(ctx context.Context) (*environment, error) { tempFolder: tempFolder, timeoutGoGet: b.TimeoutGet, skipCleanup: b.SkipCleanup, - buildFlags: b.BuildFlags, + buildFlags: strings.TrimSpace("-tags nobadger " + b.BuildFlags), modFlags: b.ModFlags, }