File: 0001-Disable-generated_fakes_test.go.patch

package info (click to toggle)
golang-github-maxbrunsfeld-counterfeiter 6.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 924 kB
  • sloc: sh: 71; makefile: 5
file content (89 lines) | stat: -rw-r--r-- 2,639 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
From: Reinhard Tartler <siretart@tauware.de>
Date: Thu, 30 Oct 2025 18:10:35 -0400
Subject: Disable generated_fakes_test.go

re-enable when we have missing dependency in Debian:

# github.com/maxbrunsfeld/counterfeiter/v6/integration
src/github.com/maxbrunsfeld/counterfeiter/v6/generated_fakes_test.go:12:2: cannot find package "github.com/sclevine/spec" in any of:
	/usr/lib/go-1.24/src/github.com/sclevine/spec (from $GOROOT)
---
 arguments/parser_test.go              | 2 +-
 command/runner_internals_test.go      | 2 ++
 command/runner_test.go                | 2 ++
 generated_fakes_test.go               | 2 ++
 generator/generator_internals_test.go | 2 ++
 integration/roundtrip_module_test.go  | 2 +-
 integration/roundtrip_test.go         | 2 ++
 7 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/arguments/parser_test.go b/arguments/parser_test.go
index dbf2d86..fb9a82b 100644
--- a/arguments/parser_test.go
+++ b/arguments/parser_test.go
@@ -1,4 +1,4 @@
-//go:build !windows
+//go:build !windows && debian_disabled
 
 package arguments_test
 
diff --git a/command/runner_internals_test.go b/command/runner_internals_test.go
index 676d5bd..719db9f 100644
--- a/command/runner_internals_test.go
+++ b/command/runner_internals_test.go
@@ -1,3 +1,5 @@
+//go:build debian_disabled
+
 package command
 
 import (
diff --git a/command/runner_test.go b/command/runner_test.go
index 2de613b..8cf65d0 100644
--- a/command/runner_test.go
+++ b/command/runner_test.go
@@ -1,3 +1,5 @@
+//go:build debian_ignore
+
 package command_test
 
 import (
diff --git a/generated_fakes_test.go b/generated_fakes_test.go
index e1e3d6a..52119f6 100644
--- a/generated_fakes_test.go
+++ b/generated_fakes_test.go
@@ -1,3 +1,5 @@
+//go:build debian_disabled
+
 package main_test
 
 import (
diff --git a/generator/generator_internals_test.go b/generator/generator_internals_test.go
index 0fb1959..16d2dd1 100644
--- a/generator/generator_internals_test.go
+++ b/generator/generator_internals_test.go
@@ -1,3 +1,5 @@
+//go:build debian_ignore
+
 package generator
 
 import (
diff --git a/integration/roundtrip_module_test.go b/integration/roundtrip_module_test.go
index a229434..9d8c69e 100644
--- a/integration/roundtrip_module_test.go
+++ b/integration/roundtrip_module_test.go
@@ -1,4 +1,4 @@
-//go:build go1.11
+//go:build go1.11 && debian_ignore
 
 package integration_test
 
diff --git a/integration/roundtrip_test.go b/integration/roundtrip_test.go
index 5dafaa0..431df65 100644
--- a/integration/roundtrip_test.go
+++ b/integration/roundtrip_test.go
@@ -1,3 +1,5 @@
+//go:build debian_ignore
+
 package integration_test
 
 import (