Преглед изворни кода

Merge pull request #780 from slingamn/issue699

fix #699
tags/v2.0.0-rc1
Shivaram Lingamneni пре 4 година
родитељ
комит
634470ba30
No account linked to committer's email address
8 измењених фајлова са 35 додато и 352 уклоњено
  1. 1
    1
      .travis.yml
  2. 0
    233
      Gopkg.lock
  3. 0
    74
      Gopkg.toml
  4. 5
    2
      Makefile
  5. 1
    13
      README.md
  6. 27
    0
      go.mod
  7. 0
    28
      install.sh
  8. 1
    1
      vendor

+ 1
- 1
.travis.yml Прегледај датотеку

@@ -1,7 +1,7 @@
1 1
 language: go
2 2
 
3 3
 go:
4
-    - "1.13.x"
4
+    - "1.14rc1"
5 5
 
6 6
 script:
7 7
 - make

+ 0
- 233
Gopkg.lock Прегледај датотеку

@@ -1,233 +0,0 @@
1
-# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
2
-
3
-
4
-[[projects]]
5
-  branch = "master"
6
-  digest = "1:805d31e8de22d8be01b05e29eb3d1a02e512c9d437724372afe3e9cd45a1cf87"
7
-  name = "code.cloudfoundry.org/bytefmt"
8
-  packages = ["."]
9
-  pruneopts = "UT"
10
-  revision = "854d396b647c90b5a45646f9dcc2c9cd08ea8d51"
11
-
12
-[[projects]]
13
-  branch = "master"
14
-  digest = "1:289fa52f4d9e9c817a003324bc14e9339b996dbe02b9f6cfc57a9383e5365287"
15
-  name = "github.com/docopt/docopt-go"
16
-  packages = ["."]
17
-  pruneopts = "UT"
18
-  revision = "ee0de3bc6815ee19d4a46c7eb90f829db0e014b1"
19
-
20
-[[projects]]
21
-  branch = "master"
22
-  digest = "1:148948635cfd8724af31d43ed024dac11c2b87c27a2a3eeb6c04e7360ab56366"
23
-  name = "github.com/goshuirc/e-nfa"
24
-  packages = ["."]
25
-  pruneopts = "UT"
26
-  revision = "7071788e394065e6456458a5e9cb503cad545154"
27
-
28
-[[projects]]
29
-  branch = "master"
30
-  digest = "1:97259f42662dc7333186fea039a1dde8d88695f487a937cc3ebd134c6adaacaf"
31
-  name = "github.com/goshuirc/irc-go"
32
-  packages = [
33
-    "ircfmt",
34
-    "ircmatch",
35
-    "ircmsg",
36
-  ]
37
-  pruneopts = "UT"
38
-  revision = "05ecc95249a0431980388ab092eaebca4c62fab9"
39
-
40
-[[projects]]
41
-  digest = "1:4a29eeb25603debe8f2098a9902c4d3851034cf70d33be428826e86e8c30a1b0"
42
-  name = "github.com/mattn/go-colorable"
43
-  packages = ["."]
44
-  pruneopts = "UT"
45
-  revision = "98ec13f34aabf44cc914c65a1cfb7b9bc815aef1"
46
-  version = "v0.1.4"
47
-
48
-[[projects]]
49
-  digest = "1:d62282425ffb75047679d7e2c3b980eea7f82c05ef5fb9142ee617ebac6e7432"
50
-  name = "github.com/mattn/go-isatty"
51
-  packages = ["."]
52
-  pruneopts = "UT"
53
-  revision = "88ba11cfdc67c7588b30042edf244b2875f892b6"
54
-  version = "v0.0.10"
55
-
56
-[[projects]]
57
-  branch = "master"
58
-  digest = "1:2b32af4d2a529083275afc192d1067d8126b578c7a9613b26600e4df9c735155"
59
-  name = "github.com/mgutz/ansi"
60
-  packages = ["."]
61
-  pruneopts = "UT"
62
-  revision = "9520e82c474b0a04dd04f8a40959027271bab992"
63
-
64
-[[projects]]
65
-  digest = "1:e7de6e4830c9d4fe1463c09a2ee15ec3eb9455c2ea916044675c413e8a9c6608"
66
-  name = "github.com/oragono/confusables"
67
-  packages = ["."]
68
-  pruneopts = "UT"
69
-  revision = "fe1cf31a24b01cac37194669863df51713e08e54"
70
-
71
-[[projects]]
72
-  branch = "master"
73
-  digest = "1:2251e6a17ea4a6eaa708882a1cda837aae3e425edbb190ef39b761ecf15a5c3d"
74
-  name = "github.com/oragono/go-ident"
75
-  packages = ["."]
76
-  pruneopts = "UT"
77
-  revision = "337fed0fd21ad538725cfcb55053ea4cf8056abc"
78
-
79
-[[projects]]
80
-  branch = "master"
81
-  digest = "1:75b14229739123696e5b75bdba078011229baf8f606362f3771cc6a861cefe67"
82
-  name = "github.com/tidwall/btree"
83
-  packages = ["."]
84
-  pruneopts = "UT"
85
-  revision = "400434d76274d2bd5d2d8297d7d67f35a54fd5a0"
86
-
87
-[[projects]]
88
-  digest = "1:f578aad894f832b60b752800c9c43a7c8e56229d4470d2a292871792ba7fb02b"
89
-  name = "github.com/tidwall/buntdb"
90
-  packages = ["."]
91
-  pruneopts = "UT"
92
-  revision = "eeb4b0a11d5828f744ffa39c652a5a24864be4b0"
93
-  version = "v1.1.2"
94
-
95
-[[projects]]
96
-  digest = "1:5a68167017eaa32aa408397806b9d69815244238ed774439a8863ef4bc329eeb"
97
-  name = "github.com/tidwall/gjson"
98
-  packages = ["."]
99
-  pruneopts = "UT"
100
-  revision = "c34bf81952c067718854115564f8e55978be5e1d"
101
-  version = "v1.3.4"
102
-
103
-[[projects]]
104
-  branch = "master"
105
-  digest = "1:403222dac436240f4a747c4ced09c1d5884082d920f151ea6c19abf7a75d4e7c"
106
-  name = "github.com/tidwall/grect"
107
-  packages = ["."]
108
-  pruneopts = "UT"
109
-  revision = "ba9a043346eba55344e40d66a5e74cfda3a9d293"
110
-
111
-[[projects]]
112
-  digest = "1:8453ddbed197809ee8ca28b06bd04e127bec9912deb4ba451fea7a1eca578328"
113
-  name = "github.com/tidwall/match"
114
-  packages = ["."]
115
-  pruneopts = "UT"
116
-  revision = "33827db735fff6510490d69a8622612558a557ed"
117
-  version = "v1.0.1"
118
-
119
-[[projects]]
120
-  digest = "1:ddfe0a54e5f9b29536a6d7b2defa376f2cb2b6e4234d676d7ff214d5b097cb50"
121
-  name = "github.com/tidwall/pretty"
122
-  packages = ["."]
123
-  pruneopts = "UT"
124
-  revision = "1166b9ac2b65e46a43d8618d30d1554f4652d49b"
125
-  version = "v1.0.0"
126
-
127
-[[projects]]
128
-  branch = "master"
129
-  digest = "1:54fec16397c72e6ecb5e61309e369517d4ea7aaee4d97454c36075539039ad85"
130
-  name = "github.com/tidwall/rtree"
131
-  packages = [
132
-    ".",
133
-    "base",
134
-  ]
135
-  pruneopts = "UT"
136
-  revision = "6cd427091e0e662cb4f8e2c9eb1a41e1c46ff0d3"
137
-
138
-[[projects]]
139
-  branch = "master"
140
-  digest = "1:1b885e925ee7c05565b3178a4fa818bf33885878344d8629ac433a5db99d58e4"
141
-  name = "github.com/tidwall/tinyqueue"
142
-  packages = ["."]
143
-  pruneopts = "UT"
144
-  revision = "1e39f55115634cad2c504631c8bfcc292f2c9c55"
145
-
146
-[[projects]]
147
-  branch = "master"
148
-  digest = "1:ee7263bc4399e2ed4f28e3c9c2e661218d427e4e4e4501748080aae41e6942ba"
149
-  name = "golang.org/x/crypto"
150
-  packages = [
151
-    "bcrypt",
152
-    "blowfish",
153
-    "sha3",
154
-    "ssh/terminal",
155
-  ]
156
-  pruneopts = "UT"
157
-  revision = "e1110fd1c708ef015366ea01799a23c459593c47"
158
-
159
-[[projects]]
160
-  branch = "master"
161
-  digest = "1:5d507fb4c4f49b851691887afc8a5a547634186965f85209cc1f25a3ab6a6c57"
162
-  name = "golang.org/x/sys"
163
-  packages = [
164
-    "cpu",
165
-    "unix",
166
-    "windows",
167
-  ]
168
-  pruneopts = "UT"
169
-  revision = "52ab431487773bc9dd1b0766228b1cf3944126bf"
170
-
171
-[[projects]]
172
-  digest = "1:5f1559c4cee44069f81517430ebba19589869f3d4d4648213a4d5ddd199b11d8"
173
-  name = "golang.org/x/text"
174
-  packages = [
175
-    "cases",
176
-    "collate",
177
-    "collate/build",
178
-    "internal",
179
-    "internal/colltab",
180
-    "internal/gen",
181
-    "internal/language",
182
-    "internal/language/compact",
183
-    "internal/tag",
184
-    "internal/triegen",
185
-    "internal/ucd",
186
-    "language",
187
-    "runes",
188
-    "secure/bidirule",
189
-    "secure/precis",
190
-    "transform",
191
-    "unicode/bidi",
192
-    "unicode/cldr",
193
-    "unicode/norm",
194
-    "unicode/rangetable",
195
-    "width",
196
-  ]
197
-  pruneopts = "UT"
198
-  revision = "342b2e1fbaa52c93f31447ad2c6abc048c63e475"
199
-  version = "v0.3.2"
200
-
201
-[[projects]]
202
-  digest = "1:f26a5d382387e03a40d1471dddfba85dfff9bf05352d7e42d37612677c4d3c5c"
203
-  name = "gopkg.in/yaml.v2"
204
-  packages = ["."]
205
-  pruneopts = "UT"
206
-  revision = "f90ceb4f409096b60e2e9076b38b304b8246e5fa"
207
-  version = "v2.2.5"
208
-
209
-[solve-meta]
210
-  analyzer-name = "dep"
211
-  analyzer-version = 1
212
-  input-imports = [
213
-    "code.cloudfoundry.org/bytefmt",
214
-    "github.com/docopt/docopt-go",
215
-    "github.com/goshuirc/irc-go/ircfmt",
216
-    "github.com/goshuirc/irc-go/ircmatch",
217
-    "github.com/goshuirc/irc-go/ircmsg",
218
-    "github.com/mattn/go-colorable",
219
-    "github.com/mgutz/ansi",
220
-    "github.com/oragono/confusables",
221
-    "github.com/oragono/go-ident",
222
-    "github.com/tidwall/buntdb",
223
-    "golang.org/x/crypto/bcrypt",
224
-    "golang.org/x/crypto/sha3",
225
-    "golang.org/x/crypto/ssh/terminal",
226
-    "golang.org/x/text/cases",
227
-    "golang.org/x/text/language",
228
-    "golang.org/x/text/secure/precis",
229
-    "golang.org/x/text/width",
230
-    "gopkg.in/yaml.v2",
231
-  ]
232
-  solver-name = "gps-cdcl"
233
-  solver-version = 1

+ 0
- 74
Gopkg.toml Прегледај датотеку

@@ -1,74 +0,0 @@
1
-# Gopkg.toml example
2
-#
3
-# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
4
-# for detailed Gopkg.toml documentation.
5
-#
6
-# required = ["github.com/user/thing/cmd/thing"]
7
-# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
8
-#
9
-# [[constraint]]
10
-#   name = "github.com/user/project"
11
-#   version = "1.0.0"
12
-#
13
-# [[constraint]]
14
-#   name = "github.com/user/project2"
15
-#   branch = "dev"
16
-#   source = "github.com/myfork/project2"
17
-#
18
-# [[override]]
19
-#   name = "github.com/x/y"
20
-#   version = "2.4.0"
21
-#
22
-# [prune]
23
-#   non-go = false
24
-#   go-tests = true
25
-#   unused-packages = true
26
-
27
-
28
-[[constraint]]
29
-  branch = "master"
30
-  name = "code.cloudfoundry.org/bytefmt"
31
-
32
-[[constraint]]
33
-  name = "github.com/docopt/docopt-go"
34
-  branch = "master"
35
-
36
-[[constraint]]
37
-  branch = "master"
38
-  name = "github.com/goshuirc/irc-go"
39
-
40
-[[constraint]]
41
-  name = "github.com/mattn/go-colorable"
42
-  version = "0.1.2"
43
-
44
-[[constraint]]
45
-  branch = "master"
46
-  name = "github.com/mgutz/ansi"
47
-
48
-[[constraint]]
49
-  branch = "master"
50
-  name = "github.com/oragono/go-ident"
51
-
52
-[[constraint]]
53
-  revision = "fe1cf31a24b01cac37194669863df51713e08e54"
54
-  name = "github.com/oragono/confusables"
55
-
56
-[[constraint]]
57
-  name = "github.com/tidwall/buntdb"
58
-  version = "1.0.0"
59
-
60
-[[constraint]]
61
-  branch = "master"
62
-  name = "golang.org/x/crypto"
63
-
64
-[[constraint]]
65
-  name = "golang.org/x/text"
66
-  version = "0.3.0"
67
-
68
-[[constraint]]
69
-  name = "gopkg.in/yaml.v2"
70
-  version = "2.2.1"
71
-
72
-[prune]
73
-  go-tests = true
74
-  unused-packages = true

+ 5
- 2
Makefile Прегледај датотеку

@@ -1,11 +1,14 @@
1
-.PHONY: all install release capdefs deps test
1
+.PHONY: all install build release capdefs deps test
2 2
 
3 3
 capdef_file = ./irc/caps/defs.go
4 4
 
5 5
 all: install
6 6
 
7 7
 install: deps
8
-	./install.sh
8
+	go install -v
9
+
10
+build: deps
11
+	go build -v
9 12
 
10 13
 release: deps
11 14
 	goreleaser --skip-publish --rm-dist

+ 1
- 13
README.md Прегледај датотеку

@@ -74,19 +74,7 @@ The `stable` branch contains the latest release. You can run this for a producti
74 74
 
75 75
 #### Building
76 76
 
77
-You'll need an [up-to-date distribution of the Go language for your OS and architecture](https://golang.org/dl/). You'll also need to set up a [Go workspace](https://golang.org/doc/code.html). Typically, this is just a directory `~/go`, with the `GOPATH` environment variable exported to its path with `export GOPATH=~/go`.
78
-
79
-Clone the repository where `go` expects it to be and then run `make`, i.e.,
80
-
81
-```bash
82
-mkdir -p ${GOPATH}/src/github.com/oragono
83
-cd ${GOPATH}/src/github.com/oragono
84
-git clone https://github.com/oragono/oragono
85
-cd oragono
86
-# check out the appropriate branch if necessary
87
-# now, this will install a development copy of oragono at ${GOPATH}/bin/oragono:
88
-make
89
-````
77
+You'll need an [up-to-date distribution of the Go language for your OS and architecture](https://golang.org/dl/). Once you have that, just clone the repository and run `make build`. If everything goes well, you should now have an executable named `oragono` in the base directory of the project.
90 78
 
91 79
 ## Configuration
92 80
 

+ 27
- 0
go.mod Прегледај датотеку

@@ -0,0 +1,27 @@
1
+module github.com/oragono/oragono
2
+
3
+go 1.14
4
+
5
+require (
6
+	code.cloudfoundry.org/bytefmt v0.0.0-20190819182555-854d396b647c
7
+	github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815
8
+	github.com/goshuirc/e-nfa v0.0.0-20160917075329-7071788e3940 // indirect
9
+	github.com/goshuirc/irc-go v0.0.0-20190713001546-05ecc95249a0
10
+	github.com/mattn/go-colorable v0.1.4
11
+	github.com/mattn/go-isatty v0.0.10 // indirect
12
+	github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b
13
+	github.com/oragono/confusables v0.0.0-20190624102032-fe1cf31a24b0
14
+	github.com/oragono/go-ident v0.0.0-20170110123031-337fed0fd21a
15
+	github.com/tidwall/btree v0.0.0-20191029221954-400434d76274 // indirect
16
+	github.com/tidwall/buntdb v1.1.2
17
+	github.com/tidwall/gjson v1.3.4 // indirect
18
+	github.com/tidwall/grect v0.0.0-20161006141115-ba9a043346eb // indirect
19
+	github.com/tidwall/match v1.0.1 // indirect
20
+	github.com/tidwall/pretty v1.0.0 // indirect
21
+	github.com/tidwall/rtree v0.0.0-20180113144539-6cd427091e0e // indirect
22
+	github.com/tidwall/tinyqueue v0.0.0-20180302190814-1e39f5511563 // indirect
23
+	golang.org/x/crypto v0.0.0-20191112222119-e1110fd1c708
24
+	golang.org/x/sys v0.0.0-20191115151921-52ab43148777 // indirect
25
+	golang.org/x/text v0.3.2
26
+	gopkg.in/yaml.v2 v2.2.5
27
+)

+ 0
- 28
install.sh Прегледај датотеку

@@ -1,28 +0,0 @@
1
-#!/bin/sh
2
-
3
-set -e
4
-
5
-if [ -z "$GOPATH" ]; then
6
-	echo Error: \$GOPATH is unset
7
-	echo See https://golang.org/doc/code.html for details, or try these steps:
8
-	printf "\tmkdir -p ~/go\n"
9
-	printf "\texport GOPATH=~/go\n"
10
-	exit 1
11
-fi
12
-
13
-EXPECTED_DIR=${GOPATH}/src/github.com/oragono/oragono
14
-
15
-if [ "$PWD" != "$EXPECTED_DIR" ] ; then
16
-	echo Error: working directory is not where \$GOPATH expects it to be
17
-	echo "Expected: $EXPECTED_DIR"
18
-	echo "Actual:   $PWD"
19
-	echo See https://golang.org/doc/code.html for details, or try these steps:
20
-	printf "\tmkdir -p %s/src/github.com/oragono\n" "$GOPATH"
21
-	printf "\tcd %s/src/github.com/oragono\n" "$GOPATH"
22
-	printf "\tmv %s oragono\n" "$PWD"
23
-	printf "\tcd oragono\n"
24
-	exit 1
25
-fi
26
-
27
-go install -v
28
-echo successfully installed as "${GOPATH}/bin/oragono"

+ 1
- 1
vendor

@@ -1 +1 @@
1
-Subproject commit 153e95cc6a79ba6bcf179676214b11e74b883e16
1
+Subproject commit 269a9c041579d103a1cab3ca989174e63040a7c9

Loading…
Откажи
Сачувај