kataras / iris-cli

[WIP] Iris Command Line Interface
https://iris-go.com
MIT License
124 stars 11 forks source link

Address not found #4

Open chenbingao opened 4 years ago

chenbingao commented 4 years ago

~ go get github.com/kataras/iris-cli unrecognized import path "golang.org/x/sys/unix": https fetch: Get "https://golang.org/x/sys/unix?go-get=1": dial tcp 216.239.37.1:443: i/o timeout unrecognized import path "golang.org/x/sync/errgroup": https fetch: Get "https://golang.org/x/sync/errgroup?go-get=1": dial tcp 216.239.37.1:443: i/o timeout unrecognized import path "golang.org/x/crypto/openpgp": https fetch: Get "https://golang.org/x/crypto/openpgp?go-get=1": dial tcp 216.239.37.1:443: i/o timeout unrecognized import path "golang.org/x/net/context": https fetch: Get "https://golang.org/x/net/context?go-get=1": dial tcp 216.239.37.1:443: i/o timeout unrecognized import path "golang.org/x/crypto/ssh/agent": https fetch: Get "https://golang.org/x/crypto/ssh/agent?go-get=1": dial tcp 216.239.37.1:443: i/o timeout unrecognized import path "golang.org/x/crypto/ssh": https fetch: Get "https://golang.org/x/crypto/ssh?go-get=1": dial tcp 216.239.37.1:443: i/o timeout unrecognized import path "golang.org/x/crypto/ssh/knownhosts": https fetch: Get "https://golang.org/x/crypto/ssh/knownhosts?go-get=1": dial tcp 216.239.37.1:443: i/o timeout unrecognized import path "golang.org/x/net/proxy": https fetch: Get "https://golang.org/x/net/proxy?go-get=1": dial tcp 216.239.37.1:443: i/o timeout

kataras commented 4 years ago

@chenbingao you probably have issues downloading from golang.org, are you behind a proxy? If so, you should change the GOPROXY environment. Open your command line interface and execute the following:

go env -w GOPROXY=https://goproxy.cn,https://gocenter.io,https://goproxy.io,direct
go get -u github.com/kataras/iris-cli

When the installation completed, try run an example on an empty directory: iris-cli new --proxy=env --module=iristest basic or iris-cli new --proxy=119.28.233.135:8080 --module=iristest basic.

Please don't foreget to follow & star the project to stay up-to-date.