File: 0008-skip-tests-that-run-go-build.patch

package info (click to toggle)
golang-golang-x-tools 1%3A0.1.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 12,588 kB
  • sloc: javascript: 2,011; asm: 1,458; sh: 174; yacc: 155; makefile: 21; ansic: 17
file content (27 lines) | stat: -rw-r--r-- 948 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: Arnaud Rebillout <arnaud.rebillout@collabora.com>
Date: Tue, 17 Nov 2020 02:14:58 +0800
Subject: Skip tests that run 'go build', hence need to be online

Origin: vendor
Forwarded: no
Last-Update: 2019-11-05

Seems like 'go build' can't work offline:
go: golang.org/x/net@<<...>>: module lookup disabled by GOPROXY=off
Last-Update: 2019-11-05
---
 cmd/stringer/endtoend_test.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cmd/stringer/endtoend_test.go b/cmd/stringer/endtoend_test.go
index af106b5..469b859 100644
--- a/cmd/stringer/endtoend_test.go
+++ b/cmd/stringer/endtoend_test.go
@@ -153,6 +153,7 @@ func TestConstValueChange(t *testing.T) {
 // buildStringer creates a temporary directory and installs stringer there.
 func buildStringer(t *testing.T) (dir string, stringer string) {
 	t.Helper()
+	t.Skip("Skipping test in offline build environment")
 	testenv.NeedsTool(t, "go")
 
 	dir, err := ioutil.TempDir("", "stringer")