- With issues:
- Before this issue,I was using Google and stackoverflow to search this question however failed.
- The information of fail is :
No versions of github.com/mattn/go-isatty met constraints
Description
- I have tried under macOS and Centos 7.5 but all failed
- dep version:v0.5.4
- go version:1.13.1
- gin version (or commit ref):1.4.0
- operating system:Centos 7.5
- I am in China and I used VPN to over the wall.But still failed and the error information did't changed.
- The detailed error information is:
[root@iZ2zedtt8r7h3t86u0o36sZ main]# dep ensure -v
# Gopkg.lock is out of sync with Gopkg.toml and project imports:
github.com/gin-gonic/gin: imported or required, but missing from Gopkg.lock's input-imports
Root project is "main"
1 transitively valid internal packages
1 external packages imported from 1 projects
(0) ✓ select (root)
(1) ? attempt github.com/gin-gonic/gin with 1 pkgs; 22 versions to try
(1) try github.com/gin-gonic/gin@v1.4.0
(1) ✓ select github.com/gin-gonic/gin@v1.4.0 w/4 pkgs
(2) ? attempt github.com/gin-contrib/sse with 1 pkgs; 2 versions to try
(2) try github.com/gin-contrib/sse@v0.1.0
(2) ✓ select github.com/gin-contrib/sse@v0.1.0 w/1 pkgs
(3) ? attempt gopkg.in/yaml.v2 with 1 pkgs; 9 versions to try
(3) try gopkg.in/yaml.v2@v2.2.4
(3) ✓ select gopkg.in/yaml.v2@v2.2.4 w/1 pkgs
(4) ? attempt github.com/golang/protobuf with 1 pkgs; 9 versions to try
(4) try github.com/golang/protobuf@v1.3.2
(4) ✓ select github.com/golang/protobuf@v1.3.2 w/1 pkgs
(5) ? attempt github.com/ugorji/go with 1 pkgs; 16 versions to try
(5) try github.com/ugorji/go@v1.1.7
(5) ✓ select github.com/ugorji/go@v1.1.7 w/1 pkgs
(6) ? attempt github.com/mattn/go-isatty with 1 pkgs; 12 versions to try
(6) try github.com/mattn/go-isatty@v0.0.10
(6) ✗ unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
(6) try github.com/mattn/go-isatty@v0.0.9
(6) ✗ unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
(6) try github.com/mattn/go-isatty@v0.0.8
(6) ✗ unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
(6) try github.com/mattn/go-isatty@v0.0.7
(6) ✗ unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
(6) try github.com/mattn/go-isatty@v0.0.6
(6) ✗ unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
(6) try github.com/mattn/go-isatty@v0.0.5
(6) ✗ unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
(6) try github.com/mattn/go-isatty@v0.0.4
(6) ✗ unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
(6) try github.com/mattn/go-isatty@v0.0.3
(6) ✗ unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
(6) try github.com/mattn/go-isatty@v0.0.2
(6) ✗ unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
(6) try github.com/mattn/go-isatty@v0.0.1
(6) ✗ unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
(6) try github.com/mattn/go-isatty@master
(6) ✗ unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
(6) try github.com/mattn/go-isatty@cygwin-msys2
(6) ✗ unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
(6) ← no more versions of github.com/mattn/go-isatty to try; begin backtrack
(5) ← backtrack: no more versions of github.com/ugorji/go to try
(4) ← backtrack: no more versions of github.com/golang/protobuf to try
(3) ← backtrack: no more versions of gopkg.in/yaml.v2 to try
(2) ← backtrack: no more versions of github.com/gin-contrib/sse to try
(1) ← backtrack: no more versions of github.com/gin-gonic/gin to try
(1) ? continue github.com/gin-gonic/gin with 4 pkgs; 21 more versions to try
(1) try github.com/gin-gonic/gin@v1.3.0
(2) ✗ github.com/gin-gonic/gin@v1.3.0 not allowed by constraint 1.4.0:
(2) 1.4.0 from (root)
(1) try github.com/gin-gonic/gin@v1.2
(2) ✗ github.com/gin-gonic/gin@v1.2 not allowed by constraint 1.4.0:
(2) 1.4.0 from (root)
(1) try github.com/gin-gonic/gin@v1.1.4
(2) ✗ github.com/gin-gonic/gin@v1.1.4 not allowed by constraint 1.4.0:
(2) 1.4.0 from (root)
(1) try github.com/gin-gonic/gin@v1.1.3
(2) ✗ github.com/gin-gonic/gin@v1.1.3 not allowed by constraint 1.4.0:
(2) 1.4.0 from (root)
(1) try github.com/gin-gonic/gin@v1.1.2
(2) ✗ github.com/gin-gonic/gin@v1.1.2 not allowed by constraint 1.4.0:
(2) 1.4.0 from (root)
(1) try github.com/gin-gonic/gin@v1.1.1
(2) ✗ github.com/gin-gonic/gin@v1.1.1 not allowed by constraint 1.4.0:
(2) 1.4.0 from (root)
(1) try github.com/gin-gonic/gin@v1.1
(2) ✗ github.com/gin-gonic/gin@v1.1 not allowed by constraint 1.4.0:
(2) 1.4.0 from (root)
(1) try github.com/gin-gonic/gin@v1.0
(2) ✗ github.com/gin-gonic/gin@v1.0 not allowed by constraint 1.4.0:
(2) 1.4.0 from (root)
(1) try github.com/gin-gonic/gin@v0.6
(2) ✗ github.com/gin-gonic/gin@v0.6 not allowed by constraint 1.4.0:
(2) 1.4.0 from (root)
(1) try github.com/gin-gonic/gin@v0.5
(2) ✗ github.com/gin-gonic/gin@v0.5 not allowed by constraint 1.4.0:
(2) 1.4.0 from (root)
(1) try github.com/gin-gonic/gin@v0.4
(2) ✗ github.com/gin-gonic/gin@v0.4 not allowed by constraint 1.4.0:
(2) 1.4.0 from (root)
(1) try github.com/gin-gonic/gin@v0.3
(2) ✗ github.com/gin-gonic/gin@v0.3 not allowed by constraint 1.4.0:
(2) 1.4.0 from (root)
(1) try github.com/gin-gonic/gin@v0.1
(2) ✗ github.com/gin-gonic/gin@v0.1 not allowed by constraint 1.4.0:
(2) 1.4.0 from (root)
(1) try github.com/gin-gonic/gin@v1.0-rc.2
(2) ✗ github.com/gin-gonic/gin@v1.0-rc.2 not allowed by constraint 1.4.0:
(2) 1.4.0 from (root)
(1) try github.com/gin-gonic/gin@master
(2) ✗ github.com/gin-gonic/gin@master not allowed by constraint 1.4.0:
(2) 1.4.0 from (root)
(1) try github.com/gin-gonic/gin@benchmarks
(2) ✗ github.com/gin-gonic/gin@benchmarks not allowed by constraint 1.4.0:
(2) 1.4.0 from (root)
(1) try github.com/gin-gonic/gin@better-bind-errors
(2) ✗ github.com/gin-gonic/gin@better-bind-errors not allowed by constraint 1.4.0:
(2) 1.4.0 from (root)
(1) try github.com/gin-gonic/gin@new-catch-all
(2) ✗ github.com/gin-gonic/gin@new-catch-all not allowed by constraint 1.4.0:
(2) 1.4.0 from (root)
(1) try github.com/gin-gonic/gin@thinkerou-patch-1
(2) ✗ github.com/gin-gonic/gin@thinkerou-patch-1 not allowed by constraint 1.4.0:
(2) 1.4.0 from (root)
(1) try github.com/gin-gonic/gin@v0.2b
(2) ✗ github.com/gin-gonic/gin@v0.2b not allowed by constraint 1.4.0:
(2) 1.4.0 from (root)
(1) try github.com/gin-gonic/gin@v1.0rc1
(2) ✗ github.com/gin-gonic/gin@v1.0rc1 not allowed by constraint 1.4.0:
(2) 1.4.0 from (root)
(1) ← backtrack: no more versions of github.com/gin-gonic/gin to try
✗ solving failed
Solver wall times by segment:
b-deduce-proj-root: 1m0.001119643s
b-list-versions: 13.371261867s
b-list-pkgs: 3.085453845s
b-gmal: 1.211076456s
b-source-exists: 47.896423ms
satisfy: 2.05326ms
select-atom: 909.666µs
unselect: 676.923µs
new-atom: 313.452µs
backtrack: 144.925µs
select-root: 74.906µs
other: 29.529µs
TOTAL: 1m17.721010895s
Solving failure: No versions of github.com/mattn/go-isatty met constraints:
v0.0.10: unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
v0.0.9: unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
v0.0.8: unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
v0.0.7: unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
v0.0.6: unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
v0.0.5: unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
v0.0.4: unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
v0.0.3: unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
v0.0.2: unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
v0.0.1: unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
master: unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
cygwin-msys2: unable to deduce repository and source type for "golang.org/x/sys/unix": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys/unix?go-get=1": Get http://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
Can you help me? Thank you very much
Comment From: ShiinaOrez
请参考这个issue, 它和你的问题是一样的. 真的好好利用你的搜索引擎了吗?
Please reference this issue. And make sure you USE search engine like google or bing-cn.