From b15601876e59fbdc56b361044fffa9a455c2e195 Mon Sep 17 00:00:00 2001 From: Stephan Renatus Date: Wed, 11 Feb 2026 11:13:08 +0100 Subject: [PATCH] go: cleanup old build flags Signed-off-by: Stephan Renatus --- bundle/filefs.go | 3 --- capabilities/capabilities.go | 3 --- v1/bundle/filefs.go | 3 --- v1/bundle/filefs_test.go | 3 --- v1/capabilities/capabilities.go | 3 --- v1/capabilities/capabilities_test.go | 3 --- v1/topdown/http_fixup.go | 3 +-- v1/topdown/http_fixup_darwin.go | 3 --- 8 files changed, 1 insertion(+), 23 deletions(-) diff --git a/bundle/filefs.go b/bundle/filefs.go index 16e00928da..f6d559e8c2 100644 --- a/bundle/filefs.go +++ b/bundle/filefs.go @@ -1,6 +1,3 @@ -//go:build go1.16 -// +build go1.16 - package bundle import ( diff --git a/capabilities/capabilities.go b/capabilities/capabilities.go index ba32cf977e..5482720f7c 100644 --- a/capabilities/capabilities.go +++ b/capabilities/capabilities.go @@ -2,9 +2,6 @@ // Use of this source code is governed by an Apache2 // license that can be found in the LICENSE file. -//go:build go1.16 -// +build go1.16 - package capabilities import ( diff --git a/v1/bundle/filefs.go b/v1/bundle/filefs.go index 7ab3de989c..fc6fc1896f 100644 --- a/v1/bundle/filefs.go +++ b/v1/bundle/filefs.go @@ -1,6 +1,3 @@ -//go:build go1.16 -// +build go1.16 - package bundle import ( diff --git a/v1/bundle/filefs_test.go b/v1/bundle/filefs_test.go index 1530b5e476..03daa95b80 100644 --- a/v1/bundle/filefs_test.go +++ b/v1/bundle/filefs_test.go @@ -1,6 +1,3 @@ -//go:build go1.16 -// +build go1.16 - package bundle import ( diff --git a/v1/capabilities/capabilities.go b/v1/capabilities/capabilities.go index 5b0bb1ea52..ff2c9aa2c7 100644 --- a/v1/capabilities/capabilities.go +++ b/v1/capabilities/capabilities.go @@ -2,9 +2,6 @@ // Use of this source code is governed by an Apache2 // license that can be found in the LICENSE file. -//go:build go1.16 -// +build go1.16 - package capabilities import ( diff --git a/v1/capabilities/capabilities_test.go b/v1/capabilities/capabilities_test.go index 789a4be961..e1d87e67be 100644 --- a/v1/capabilities/capabilities_test.go +++ b/v1/capabilities/capabilities_test.go @@ -2,9 +2,6 @@ // Use of this source code is governed by an Apache2 // license that can be found in the LICENSE file. -//go:build go1.16 -// +build go1.16 - package capabilities_test import ( diff --git a/v1/topdown/http_fixup.go b/v1/topdown/http_fixup.go index 1b9ffc2350..5ad2abd8a8 100644 --- a/v1/topdown/http_fixup.go +++ b/v1/topdown/http_fixup.go @@ -1,5 +1,4 @@ -//go:build !go1.18 || !darwin -// +build !go1.18 !darwin +//go:build !darwin package topdown diff --git a/v1/topdown/http_fixup_darwin.go b/v1/topdown/http_fixup_darwin.go index ff3058ef40..e2941cbfa1 100644 --- a/v1/topdown/http_fixup_darwin.go +++ b/v1/topdown/http_fixup_darwin.go @@ -1,6 +1,3 @@ -//go:build go1.18 -// +build go1.18 - package topdown func fixupDarwinGo118(x, y string) string {