File: disable-internet-access.patch

package info (click to toggle)
golang-gopkg-src-d-go-git.v4 4.11.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,896 kB
  • sloc: sh: 61; makefile: 45
file content (173 lines) | stat: -rw-r--r-- 4,223 bytes parent folder | download | duplicates (2)
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
Description: Disable the Internet access
 Disable the Internet access during build and test. The Debian package
 should never assume that Internet access is available during building.
Author: Jongmin Kim <jmkim@pukyong.ac.kr>
---
 example_test.go    |   10 +++++++---
 remote_test.go     |    2 ++
 repository_test.go |    2 ++
 submodule_test.go  |    6 ++++++
 worktree_test.go   |    4 ++++
 5 files changed, 21 insertions(+), 3 deletions(-)
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/example_test.go
+++ b/example_test.go
@@ -2,11 +2,11 @@
 
 import (
 	"fmt"
-	"io"
+//	"io"
 	"io/ioutil"
 	"log"
 	"os"
-	"path/filepath"
+//	"path/filepath"
 
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4/config"
@@ -14,9 +14,10 @@
 	"gopkg.in/src-d/go-git.v4/plumbing/transport/http"
 	"gopkg.in/src-d/go-git.v4/storage/memory"
 
-	"gopkg.in/src-d/go-billy.v4/memfs"
+//	"gopkg.in/src-d/go-billy.v4/memfs"
 )
 
+/*
 func ExampleClone() {
 	// Filesystem abstraction based on memory
 	fs := memfs.New()
@@ -41,7 +42,9 @@
 	io.Copy(os.Stdout, changelog)
 	// Output: Initial changelog
 }
+*/
 
+/*
 func ExamplePlainClone() {
 	// Tempdir to clone the repository
 	dir, err := ioutil.TempDir("", "clone-example")
@@ -69,6 +72,7 @@
 	io.Copy(os.Stdout, changelog)
 	// Output: Initial changelog
 }
+*/
 
 func ExamplePlainClone_usernamePassword() {
 	// Tempdir to clone the repository
--- a/remote_test.go
+++ b/remote_test.go
@@ -727,6 +727,7 @@
 	c.Assert(l, HasLen, 2)
 }
 
+/*
 func (s *RemoteSuite) TestList(c *C) {
 	repo := fixtures.Basic().One()
 	remote := newRemote(memory.NewStorage(), &config.RemoteConfig{
@@ -757,6 +758,7 @@
 		c.Assert(found, Equals, true)
 	}
 }
+*/
 
 func (s *RemoteSuite) TestUpdateShallows(c *C) {
 	hashes := []plumbing.Hash{
--- a/repository_test.go
+++ b/repository_test.go
@@ -737,6 +737,7 @@
 	c.Assert(err, Equals, ErrRepositoryAlreadyExists)
 }
 
+/*
 func (s *RepositorySuite) TestPlainCloneWithRecurseSubmodules(c *C) {
 	if testing.Short() {
 		c.Skip("skipping test in short mode.")
@@ -760,6 +761,7 @@
 	c.Assert(cfg.Branches, HasLen, 1)
 	c.Assert(cfg.Submodules, HasLen, 2)
 }
+*/
 
 func (s *RepositorySuite) TestPlainCloneNoCheckout(c *C) {
 	dir, err := ioutil.TempDir("", "plain-clone-no-checkout")
--- a/submodule_test.go
+++ b/submodule_test.go
@@ -66,6 +66,7 @@
 	c.Assert(status.IsClean(), Equals, false)
 }
 
+/*
 func (s *SubmoduleSuite) TestUpdate(c *C) {
 	if testing.Short() {
 		c.Skip("skipping test in short mode.")
@@ -91,6 +92,7 @@
 	c.Assert(err, IsNil)
 	c.Assert(status.IsClean(), Equals, true)
 }
+*/
 
 func (s *SubmoduleSuite) TestRepositoryWithoutInit(c *C) {
 	sm, err := s.Worktree.Submodule("basic")
@@ -122,6 +124,7 @@
 	c.Assert(err, Equals, plumbing.ErrObjectNotFound)
 }
 
+/*
 func (s *SubmoduleSuite) TestUpdateWithRecursion(c *C) {
 	if testing.Short() {
 		c.Skip("skipping test in short mode.")
@@ -141,7 +144,9 @@
 	_, err = fs.Stat(fs.Join("itself", "basic", "LICENSE"))
 	c.Assert(err, IsNil)
 }
+*/
 
+/*
 func (s *SubmoduleSuite) TestUpdateWithInitAndUpdate(c *C) {
 	if testing.Short() {
 		c.Skip("skipping test in short mode.")
@@ -180,6 +185,7 @@
 	c.Assert(ref.Hash().String(), Equals, "b029517f6300c2da0f4b651b8642506cd6aaf45d")
 
 }
+*/
 
 func (s *SubmoduleSuite) TestSubmodulesInit(c *C) {
 	sm, err := s.Worktree.Submodules()
--- a/worktree_test.go
+++ b/worktree_test.go
@@ -199,6 +199,7 @@
 	c.Assert(buf.Len(), Not(Equals), 0)
 }
 
+/*
 func (s *WorktreeSuite) TestPullProgressWithRecursion(c *C) {
 	if testing.Short() {
 		c.Skip("skipping test in short mode.")
@@ -228,6 +229,7 @@
 	c.Assert(err, IsNil)
 	c.Assert(cfg.Submodules, HasLen, 2)
 }
+*/
 
 func (s *RepositorySuite) TestPullAdd(c *C) {
 	path := fixtures.Basic().ByTag("worktree").One().Worktree().Root()
@@ -441,6 +443,7 @@
 	c.Assert(status.IsClean(), Equals, true)
 }
 
+/*
 func (s *WorktreeSuite) TestCheckoutSubmoduleInitialized(c *C) {
 	url := "https://github.com/git-fixtures/submodule.git"
 	r := s.NewRepository(fixtures.ByURL(url).One())
@@ -458,6 +461,7 @@
 	c.Assert(err, IsNil)
 	c.Assert(status.IsClean(), Equals, true)
 }
+*/
 
 func (s *WorktreeSuite) TestCheckoutIndexMem(c *C) {
 	fs := memfs.New()