File: fix-test-constraint.patch

package info (click to toggle)
golang-k8s-kube-openapi 0.0~git20241212.2c72e55-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,396 kB
  • sloc: sh: 50; makefile: 5
file content (27 lines) | stat: -rw-r--r-- 924 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Jérémy Lal <kapouer@melix.org>
Date: Sun, 16 Mar 2025 14:15:55 +0100
Subject: for some reason this is compatible with how dh-golang builds it

Forwarded: no
---
 test/integration/import.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/test/integration/import.go b/test/integration/import.go
index f1366a4..ad5428f 100644
--- a/test/integration/import.go
+++ b/test/integration/import.go
@@ -12,7 +12,6 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-//go:build tools
 
 package integration
 
@@ -20,4 +19,4 @@ package integration
 // there to import "k8s.io/kube-openapi/cmd/openapi-gen", so that
 // "go mod tidy" will not remove the openapi-gen's dependencies.
 // openapi-gen is indeed built as part of the integration tests.
-import _ "k8s.io/kube-openapi/cmd/openapi-gen"
+//import _ "k8s.io/kube-openapi/cmd/openapi-gen"