File: 0005-Do_not_depend_on_golang-doc.patch

package info (click to toggle)
golang-golang-x-tools 1%3A0.1.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • 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-- 807 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: =?utf-8?q?Mart=C3=ADn_Ferrari?= <tincho@debian.org>
Date: Tue, 17 Nov 2020 02:14:58 +0800
Subject: Do not depend on golang-doc

Origin: vendor
Forwarded: not-needed
Last-Update: 2019-07-29

If golang-doc is not present, the start page for godoc does not contain the
text expected in tests.
Last-Update: 2019-07-29
---
 cmd/godoc/godoc_test.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cmd/godoc/godoc_test.go b/cmd/godoc/godoc_test.go
index caaf96a..e8dc86a 100644
--- a/cmd/godoc/godoc_test.go
+++ b/cmd/godoc/godoc_test.go
@@ -166,6 +166,7 @@ func killAndWait(cmd *exec.Cmd) {
 }
 
 func TestURL(t *testing.T) {
+	t.Skip("skipping test to avoid dependency on golang-doc for Debian build")
 	if runtime.GOOS == "plan9" {
 		t.Skip("skipping on plan9; fails to start up quickly enough")
 	}