Skip to content

Commit 73df950

Browse files
authored
Try use go proxy to build (#162)
1 parent d3e1b9f commit 73df950

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ services:
99
- docker
1010

1111
before_install:
12-
- sudo apt-get update
1312
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install docker-ce
1413
- sudo apt-get install golang -y
1514
- docker version
@@ -28,7 +27,9 @@ install:
2827

2928
script:
3029
- make integrate
30+
- export GOPROXY=https://goproxy.cn
3131
- export GO111MODULE=on
32+
- go mod tidy
3233
# golang 1.12 will change the permission of go.mod and go.sum
3334
# use chmod to reset the permission of go.mod and go.sum to make go test happy
3435
- sudo chmod 644 go.mod go.sum

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ require (
4646
github.com/ugorji/go v1.1.4
4747
github.com/xxtea/xxtea-go v0.0.0-20170828040851-35c4b17eecf6
4848
golang.org/x/crypto v0.0.0-20190325154230-a5d413f7728c // indirect
49-
golang.org/x/tools v0.0.0-20190624222133-a101b041ded4 // indirect
49+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
5050
)

go.sum

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af h1:pmfjZENx5i
122122
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
123123
github.com/journeymidnight/aws-sdk-go v1.17.5 h1:fXF7G+rEq+I1cbtIhRgCVjqC5Zj46usmF8+7Waat8Zc=
124124
github.com/journeymidnight/aws-sdk-go v1.17.5/go.mod h1:bPAdbt/vJ+eG/DJ2q1rFWIAEF+VWvld83i27b/SFRJg=
125-
github.com/journeymidnight/radoshttpd v0.0.0-20180423094851-048fda5702ec h1:LmYJ1HYxz3pJDE6orUGJifbhcyfvYvfDFGahs508V68=
126-
github.com/journeymidnight/radoshttpd v0.0.0-20180423094851-048fda5702ec/go.mod h1:crzxK1DDd3sNyFWzwbx/84lTNk4TO4wsvjl186nH+R4=
127125
github.com/journeymidnight/radoshttpd v0.0.0-20190617133011-609666b51136 h1:ioRwpqJIOz8DOhriRNkd2/DYXYLi44N61N9MnjozzuM=
128126
github.com/journeymidnight/radoshttpd v0.0.0-20190617133011-609666b51136/go.mod h1:crzxK1DDd3sNyFWzwbx/84lTNk4TO4wsvjl186nH+R4=
129127
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
@@ -197,6 +195,7 @@ github.com/xxtea/xxtea-go v0.0.0-20170828040851-35c4b17eecf6/go.mod h1:2uvuCBt0V
197195
go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk=
198196
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
199197
gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw=
198+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
200199
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
201200
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
202201
gopkg.in/square/go-jose.v2 v2.3.1 h1:SK5KegNXmKmqE342YYN2qPHEnUYeoMiXXl1poUlI+o4=

integrate/buildyig.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
BASEDIR=$(dirname $(pwd))
2-
sudo docker run --rm -v ${BASEDIR}:/work -w /work journeymidnight/yig bash -c 'make build_internal'
2+
sudo docker run --rm -v ${BASEDIR}:/work -w /work journeymidnight/yig bash -c 'export GOPROXY=https://goproxy.cn;make build_internal'

package/yig.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Requires: librdkafka1
2828
#The go build still use source code in GOPATH/src/legitlab/yig/
2929
#keep git source tree clean, better ways to build?
3030
#I do not know
31+
export GOPROXY=https://goproxy.cn
3132
make build_internal
3233

3334
%install

0 commit comments

Comments
 (0)