3-4节导入resk项目答疑问
来源:4-1 重在设计:golang中使用枚举值
慕圣5343940
2019-10-13
老师您好
我的go是1.13版本,在3-4节后半部导入resk项目并运行go mod vendor时一直报verifying github.com/tietang/props@v2.3.1+incompatible/go.mod: github.com/tietang/props@v2.3.1+incompatible/go.mod: reading https://sum.golang.org/lookup/github.com/tietang/props@v2.3.1+incompatible: 410 Gone
3回答
-
枫荇
2019-10-30
同学以此执行如下命令试一下,我今天特意下载了这个源代码,试了没有这个问题:
cd resk-4.3-5
export GOPROXY=https://mirrors.aliyun.com/goproxy/
go mod tidy
go mod vendor下面是我把系统中go_thrid中的所有文件都删除,重新执行的日志,完全没有遇到你说的问题,您也可以尝试一下:
[po@s2 s]$ ls
apis brun doc go.mod Gopkg.toml infra README.md test
app.go core example Gopkg.lock go.sum public services
[po@s2 s]$ export GOPROXY=https://mirrors.aliyun.com/goproxy/
[po@s2 s]$ go mod tidy
go: finding github.com/tietang/go-utils v0.0.0-20190308094824-9e17fa5e3788
go: finding github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24
go: finding github.com/tietang/props v2.2.0+incompatible
go: finding github.com/smartystreets/goconvey v0.0.0-20190306220146-200a235640ff
go: finding github.com/go-sql-driver/mysql v1.4.1
go: finding github.com/segmentio/ksuid v1.0.2
go: finding github.com/tietang/dbx v1.0.0
go: finding gopkg.in/ini.v1 v1.42.0
go: finding github.com/smartystreets/assertions v0.0.0-20190215210624-980c5ac6f3ac
go: finding github.com/sirupsen/logrus v1.4.0
go: finding github.com/stretchr/testify v1.3.0
go: finding github.com/gopherjs/gopherjs v0.0.0-20190328170749-bb2674552d8f
go: finding github.com/valyala/fasttemplate v1.0.1
go: finding github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: finding github.com/modern-go/reflect2 v1.0.1
go: finding github.com/go-ini/ini v1.42.0
go: finding github.com/json-iterator/go v1.1.6
go: finding github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1
go: finding github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d
go: finding github.com/jtolds/gls v4.20.0+incompatible
go: finding github.com/davecgh/go-spew v1.1.0
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding github.com/stretchr/objx v0.1.0
go: finding github.com/valyala/bytebufferpool v1.0.0
go: finding github.com/davecgh/go-spew v1.1.1
go: finding github.com/golang/sys v0.0.0-20190322080309-f49334f85ddc
go: finding github.com/konsorten/go-windows-terminal-sequences v1.0.1
go: finding github.com/golang/crypto v0.0.0-20190325154230-a5d413f7728c
go: finding github.com/stretchr/testify v1.2.2
go: finding github.com/stretchr/objx v0.1.1
go: downloading github.com/tietang/props v2.2.0+incompatible
go: downloading github.com/smartystreets/goconvey v0.0.0-20190306220146-200a235640ff
go: downloading github.com/json-iterator/go v1.1.6
go: downloading github.com/tietang/dbx v1.0.0
go: downloading github.com/segmentio/ksuid v1.0.2
go: downloading github.com/go-sql-driver/mysql v1.4.1
go: downloading github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24
go: extracting github.com/json-iterator/go v1.1.6
go: downloading github.com/modern-go/reflect2 v1.0.1
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/stretchr/testify v1.3.0
go: extracting github.com/tietang/dbx v1.0.0
go: extracting github.com/segmentio/ksuid v1.0.2
go: extracting github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24
go: extracting github.com/modern-go/reflect2 v1.0.1
go: extracting github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: extracting github.com/go-sql-driver/mysql v1.4.1
go: extracting github.com/stretchr/testify v1.3.0
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading github.com/davecgh/go-spew v1.1.1
go: extracting github.com/pmezard/go-difflib v1.0.0
go: extracting github.com/davecgh/go-spew v1.1.1
go: finding google.golang.org/appengine v1.6.5
[po@s2 s]$ go mod vendor
go: downloading github.com/smartystreets/goconvey v0.0.0-20190306220146-200a235640ff
go: finding google.golang.org/appengine v1.6.5
go: downloading google.golang.org/appengine v1.6.5
go: finding github.com/tietang/props v2.3.2+incompatible
go: downloading github.com/tietang/props v2.3.2+incompatible
go: extracting github.com/smartystreets/goconvey v0.0.0-20190306220146-200a235640ff
go: downloading github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d
go: downloading github.com/jtolds/gls v4.20.0+incompatible
go: extracting github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d
go: extracting github.com/jtolds/gls v4.20.0+incompatible
go: downloading github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1
go: extracting google.golang.org/appengine v1.6.5
go: extracting github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1
go: extracting github.com/tietang/props v2.3.2+incompatible
go: finding github.com/golang/text v0.3.0
go: finding github.com/golang/protobuf v1.3.1
go: finding github.com/golang/net v0.0.0-20190327025741-74e053c68e29
go: finding github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef
go: finding golang.org/x/time v0.0.0-20190308202827-9d24e82272b4
go: finding github.com/go-ini/ini v1.37.0
go: finding github.com/hashicorp/memberlist v0.1.3
go: finding github.com/tietang/go-utils v0.0.0-20180420232328-76758c2288ca
go: finding github.com/hashicorp/consul v1.2.0
go: finding github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b
go: finding github.com/smartystreets/gunit v0.0.0-20180314194857-6f0d6275bdcd
go: finding github.com/gorilla/websocket v1.4.0
go: finding google.golang.org/genproto v0.0.0-20190605220351-eb0b1bdb6ae6
go: finding github.com/samuel/go-zookeeper v0.0.0-20180130194729-c4fab1ac1bec
go: finding go.uber.org/multierr v1.1.0
go: finding github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f
go: finding github.com/grpc-ecosystem/grpc-gateway v1.9.0
go: finding github.com/pkg/errors v0.8.1
go: finding github.com/sirupsen/logrus v1.4.2
go: finding github.com/hashicorp/go-rootcerts v0.0.0-20160503143440-6bb64b370b90
go: finding github.com/hashicorp/golang-lru v0.5.1
go: finding github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529
go: finding github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c
go: finding github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
go: finding github.com/shima-park/agollo v0.0.0-20190529100944-a00256588ae8
go: finding github.com/coreos/go-semver v0.3.0
go: finding github.com/smartystreets/assertions v0.0.0-20180301161246-7678a5452ebe
go: finding github.com/mattn/go-isatty v0.0.3
go: finding github.com/golang/sync v0.0.0-20190227155943-e225da77a7e6
go: finding github.com/pascaldekloe/goe v0.1.0
go: finding github.com/jonboulle/clockwork v0.1.0
go: finding gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7
go: finding github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af
go: finding golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961
go: finding github.com/hashicorp/go-msgpack v0.5.3
go: finding github.com/coreos/go-semver v0.2.0
go: finding github.com/fsnotify/fsnotify v1.4.7
go: finding github.com/prometheus/procfs v0.0.2
go: finding github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: finding github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2
go: finding go.uber.org/zap v1.10.0
go: finding github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c
go: finding github.com/mitchellh/go-homedir v0.0.0-20180523094522-3864e76763d9
go: finding github.com/soheilhy/cmux v0.1.4
go: finding github.com/spf13/cast v1.3.0
go: finding golang.org/x/exp v0.0.0-20190121172915-509febef88a4
go: finding github.com/valyala/fasttemplate v0.0.0-20170224212429-dcecefd839c4
go: finding gopkg.in/resty.v1 v1.12.0
go: finding go.etcd.io/bbolt v1.3.2
go: finding github.com/pelletier/go-toml v1.2.0
go: finding github.com/hashicorp/go-uuid v1.0.1
go: finding github.com/hashicorp/serf v0.8.1
go: finding gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127
go: finding go.uber.org/atomic v1.4.0
go: finding google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8
go: finding github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e
go: finding github.com/mattn/go-colorable v0.0.9
go: finding github.com/spf13/viper v1.1.1
go: finding gopkg.in/yaml.v2 v2.2.2
go: finding github.com/gopherjs/gopherjs v0.0.0-20180628210949-0892b62f0d9f
go: finding github.com/smartystreets/goconvey v0.0.0-20170602164621-9e8dc3f972df
go: finding github.com/prometheus/client_golang v0.9.3
go: finding github.com/spf13/afero v1.2.0
go: finding github.com/golang/protobuf v1.2.0
go: finding github.com/spf13/jwalterweatherman v1.0.0
go: finding github.com/grpc-ecosystem/go-grpc-middleware v1.0.0
go: finding github.com/spf13/pflag v1.0.3
go: finding github.com/ugorji/go v1.1.1
go: finding github.com/hashicorp/go-cleanhttp v0.0.0-20171218145408-d5fe4b57a186
go: finding golang.org/x/tools v0.0.0-20190226205152-f727befe758c
go: finding google.golang.org/grpc v1.21.1
go: finding honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099
go: finding github.com/go-logfmt/logfmt v0.4.0
go: finding github.com/mitchellh/mapstructure v1.1.2
go: finding github.com/magiconair/properties v1.8.0
go: finding github.com/hashicorp/go-multierror v1.0.0
go: finding github.com/gogo/protobuf v1.2.1
go: finding github.com/google/btree v1.0.0
go: finding github.com/konsorten/go-windows-terminal-sequences v1.0.2
go: finding github.com/prometheus/common v0.4.1
go: finding golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be
go: finding google.golang.org/grpc v1.19.0
go: finding github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5
go: finding cloud.google.com/go v0.26.0
go: finding github.com/beorn7/perks v1.0.0
go: finding golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3
go: finding github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77
go: finding github.com/hashicorp/errwrap v1.0.0
go: finding github.com/client9/misspell v0.3.4
go: finding github.com/golang/mock v1.1.1
go: finding github.com/BurntSushi/toml v0.3.1
go: finding github.com/kisielk/errcheck v1.1.0
go: finding github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da
go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
go: finding github.com/mitchellh/go-testing-interface v1.0.0
go: finding github.com/hashicorp/go-sockaddr v1.0.0
go: finding github.com/ghodss/yaml v1.0.0
go: finding google.golang.org/appengine v1.1.0
go: finding github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6
go: finding gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: finding github.com/go-kit/kit v0.8.0
go: finding github.com/coreos/etcd v3.3.13+incompatible
go: finding github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
go: finding github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf
go: finding github.com/google/go-cmp v0.2.0
go: finding github.com/kr/pretty v0.1.0
go: finding github.com/kisielk/gotool v1.0.0
go: finding golang.org/x/tools v0.0.0-20190311212946-11955173bddd
go: finding github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515
go: finding github.com/prometheus/common v0.4.0
go: finding github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d
go: finding github.com/go-stack/stack v1.8.0
go: finding github.com/prometheus/client_golang v0.9.1
go: finding github.com/coreos/bbolt v1.3.2
go: finding gopkg.in/yaml.v2 v2.2.1
go: finding github.com/gogo/protobuf v1.1.1
go: finding github.com/go-logfmt/logfmt v0.3.0
go: finding google.golang.org/appengine v1.4.0
go: finding github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084
go: finding golang.org/x/tools v0.0.0-20180221164845-07fd8470d635
go: finding github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
go: finding golang.org/x/tools v0.0.0-20190114222345-bf090417da8b
go: finding github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910
go: finding github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223
go: finding github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc
go: finding github.com/julienschmidt/httprouter v1.2.0
go: finding github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973
go: finding github.com/coreos/etcd v3.3.10+incompatible
go: finding github.com/miekg/dns v1.0.14
go: finding github.com/prometheus/tsdb v0.7.1
go: finding github.com/hashicorp/go-immutable-radix v1.0.0
go: finding github.com/kr/text v0.1.0
go: finding github.com/sirupsen/logrus v1.2.0
go: finding github.com/hashicorp/hcl v1.0.0
go: finding github.com/pkg/errors v0.8.0
go: finding golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3
go: finding github.com/matttproud/golang_protobuf_extensions v1.0.1
go: finding github.com/oklog/ulid v1.3.1
go: finding github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954
go: finding github.com/cespare/xxhash v1.1.0
go: finding github.com/kr/pty v1.1.1
go: finding github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce
go: finding github.com/hashicorp/golang-lru v0.5.0
go: finding github.com/hashicorp/go-uuid v1.0.0
go: finding github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72
go: finding github.com/OneOfOne/xxhash v1.2.2
go: downloading github.com/go-ini/ini v1.37.0
go: downloading github.com/prometheus/common v0.4.1
go: downloading github.com/sirupsen/logrus v1.4.2
go: downloading github.com/valyala/fasttemplate v0.0.0-20170224212429-dcecefd839c4
go: downloading github.com/tietang/go-utils v0.0.0-20180420232328-76758c2288ca
go: extracting github.com/tietang/go-utils v0.0.0-20180420232328-76758c2288ca
go: downloading github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b
go: extracting github.com/valyala/fasttemplate v0.0.0-20170224212429-dcecefd839c4
go: downloading github.com/valyala/bytebufferpool v1.0.0
go: extracting github.com/go-ini/ini v1.37.0
go: extracting github.com/sirupsen/logrus v1.4.2
go: downloading github.com/golang/sys v0.0.0-20190322080309-f49334f85ddc
go: downloading github.com/konsorten/go-windows-terminal-sequences v1.0.2
go: extracting github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b
go: extracting github.com/konsorten/go-windows-terminal-sequences v1.0.2
go: extracting github.com/valyala/bytebufferpool v1.0.0
go: downloading github.com/mattn/go-colorable v0.0.9
go: extracting github.com/prometheus/common v0.4.1
go: downloading gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: extracting github.com/mattn/go-colorable v0.0.9
go: downloading github.com/mattn/go-isatty v0.0.3
go: extracting gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: downloading github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc
go: downloading github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf
go: extracting github.com/mattn/go-isatty v0.0.3
go: extracting github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf
go: extracting github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc
go: extracting github.com/golang/sys v0.0.0-20190322080309-f49334f85ddc
[po@s2 s]$
00 -
枫荇
2019-10-21
同学,您好,这个问题,确实因为连接国外网络慢的时候遇到过,但目前我本地仍然不能复现。从你的日志看,提示超时喔,IP地址是台湾的,超时就意味着连接172.217.27.145这个台湾IP太慢的原因,本质上还是网络原因造成的。
同学可以试一下:
http://mirrors.aliyun.com/goproxy/
任意一个go代理。
或者:
参考这个帖子来改善访问github的速度来解决:
https://www.jianshu.com/p/0493dcc15d6f00 -
枫荇
2019-10-17
您好!可以重试一下,可能是网络原因。
042019-10-30
相似问题
回答 4
回答 2