From 674834ccf44ceb1073689439ccb18a17a3b4d937 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Thu, 29 May 2025 17:06:57 +0200 Subject: [PATCH] build: properly propagate build tags to Debian build (#10144) Previously all were ignored except noupgrade which was hard coded... --- build.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.go b/build.go index 8b43a2b18..c7f423d0d 100644 --- a/build.go +++ b/build.go @@ -330,7 +330,7 @@ func runCommand(cmd string, target target) { writeCompatJSON() case "deb": - buildDeb(target) + buildDeb(target, tags) case "vet": metalintShort() @@ -609,7 +609,7 @@ func buildZip(target target, tags []string) { fmt.Println(filename) } -func buildDeb(target target) { +func buildDeb(target target, tags []string) { os.RemoveAll("deb") // "goarch" here is set to whatever the Debian packages expect. We correct @@ -623,7 +623,7 @@ func buildDeb(target target) { goarch = "arm" } - build(target, []string{"noupgrade"}) + build(target, append(tags, "noupgrade")) for i := range target.installationFiles { target.installationFiles[i].src = strings.Replace(target.installationFiles[i].src, "{{binary}}", target.BinaryName(), 1)