core: always inject the nobadger build tag (#173)

This commit is contained in:
Mohammed Al Sahaf 2024-02-19 15:16:51 +03:00 committed by GitHub
parent 51aadd62b7
commit d6f5a3e6c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
}