Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

get golang.org/x/??? : remote repository does not exist or is inaccessible #784

Closed
meilihao opened this issue Jun 22, 2017 · 4 comments
Closed

Comments

@meilihao
Copy link

What version of Go (go version) and dep (git describe --tags) are you using?

go version go1.9beta1 linux/amd64
dep v0.1.0-175-gc79b048

What dep command did you run?

dep init

What did you expect to see?

everything is ok.

What did you see instead?

$ dep init                                                           
Importing configuration from glide. These are only initial constraints, and are further refined during the solve process.
Detected glide configuration files...
Converting from glide.yaml and glide.lock...
  Using master as initial constraint for imported dep github.com/naoina/toml
  Using master as initial constraint for imported dep github.com/satori/go.uuid
  Using master as initial constraint for imported dep go.uber.org/zap
list versions for golang.org/x/crypto/bcrypt(): remote repository at https://go.googlesource.com/crypto does not exist, or is inaccessible

we need mirror, or other solution?

@ibrasho
Copy link
Collaborator

ibrasho commented Jun 22, 2017

Can you access https://go.googlesource.com/crypto?

Refer to #292 for more info on what might cause this.

@meilihao
Copy link
Author

@ibrasho Thanks. It is GFW blocking.

@uthark
Copy link

uthark commented Oct 3, 2017

recently I and other people on my team started to have exact same problem.
We're located in US, I can access https://go.googlesource.com/crypto without any troubles.

 dep ensure -v -v
Root project is "COMPANY.COM/PROJECT"
 26 transitively valid internal packages
 35 external packages imported from 19 projects
(0)   ✓ select (root)
(1)	? attempt github.com/aws/aws-sdk-go with 11 pkgs; at least 1 versions to try
(1)	    try github.com/aws/[email protected]
(1)	✓ select github.com/aws/[email protected] w/32 pkgs
(2)	? attempt github.com/dgrijalva/jwt-go with 1 pkgs; at least 1 versions to try
(2)	    try github.com/dgrijalva/[email protected]
(2)	✓ select github.com/dgrijalva/[email protected] w/1 pkgs
(3)	? attempt github.com/davecgh/go-spew with 1 pkgs; at least 1 versions to try
(3)	    try github.com/davecgh/[email protected]
(3)	✓ select github.com/davecgh/[email protected] w/1 pkgs
(4)	? attempt github.com/emicklei/go-restful-swagger12 with 1 pkgs; at least 1 versions to try
(4)	    try github.com/emicklei/[email protected]
(4)	✓ select github.com/emicklei/[email protected] w/1 pkgs
(5)	? attempt github.com/go-ini/ini with 1 pkgs; at least 1 versions to try
(5)	    try github.com/go-ini/[email protected]
(5)	✓ select github.com/go-ini/[email protected] w/1 pkgs
(6)	? attempt github.com/emicklei/go-restful with 1 pkgs; at least 1 versions to try
(6)	    try github.com/emicklei/[email protected]
(6)	✓ select github.com/emicklei/[email protected] w/2 pkgs
(7)	? attempt github.com/google/uuid with 1 pkgs; at least 1 versions to try
(7)	    try github.com/google/[email protected]
(7)	✓ select github.com/google/[email protected] w/1 pkgs
(8)	? revisit github.com/emicklei/go-restful to add 1 pkgs
(8)	  ✓ include 1 more pkgs from github.com/emicklei/[email protected]
(8)	? attempt github.com/imdario/mergo with 1 pkgs; at least 1 versions to try
(9)	    try github.com/imdario/[email protected]
(9)	✓ select github.com/imdario/[email protected] w/1 pkgs
(9)	? attempt github.com/magiconair/properties with 1 pkgs; at least 1 versions to try
(10)      try github.com/magiconair/[email protected]
(10)  ✓ select github.com/magiconair/[email protected] w/1 pkgs
(10)  ? attempt github.com/jmespath/go-jmespath with 1 pkgs; at least 1 versions to try
(11)      try github.com/jmespath/[email protected]
(11)  ✓ select github.com/jmespath/[email protected] w/1 pkgs
(11)  ? attempt gopkg.in/mgo.v2 with 2 pkgs; at least 1 versions to try
(12)      try gopkg.in/mgo.v2@v2
(12)  ✓ select gopkg.in/mgo.v2@v2 w/5 pkgs
(12)  ? attempt github.com/prometheus/client_golang with 2 pkgs; at least 1 versions to try
(13)      try github.com/prometheus/[email protected]
(13)  ✓ select github.com/prometheus/[email protected] w/2 pkgs
(13)  ? attempt github.com/beorn7/perks with 1 pkgs; at least 1 versions to try
(14)      try github.com/beorn7/perks@master
(14)  ✓ select github.com/beorn7/perks@master w/1 pkgs
(14)  ? attempt github.com/golang/protobuf with 1 pkgs; at least 1 versions to try
(15)      try github.com/golang/protobuf@master
(15)  ✓ select github.com/golang/protobuf@master w/1 pkgs
(15)  ? attempt github.com/prometheus/client_model with 1 pkgs; at least 1 versions to try
(16)      try github.com/prometheus/client_model@master
(16)  ✓ select github.com/prometheus/client_model@master w/1 pkgs
(16)  ? attempt github.com/spf13/viper with 1 pkgs; at least 1 versions to try
(17)      try github.com/spf13/viper@master
(17)  ✓ select github.com/spf13/viper@master w/1 pkgs
(17)  ? revisit github.com/magiconair/properties to add 1 pkgs
(18)    ✓ include 1 more pkgs from github.com/magiconair/[email protected]
(17)  ? attempt github.com/hashicorp/hcl with 1 pkgs; at least 1 versions to try
(19)      try github.com/hashicorp/hcl@master
(19)  ✓ select github.com/hashicorp/hcl@master w/9 pkgs
(18)  ? attempt github.com/fsnotify/fsnotify with 1 pkgs; at least 1 versions to try
(20)      try github.com/fsnotify/[email protected]
(20)  ✓ select github.com/fsnotify/[email protected] w/1 pkgs
(19)  ? attempt github.com/spf13/cast with 1 pkgs; at least 1 versions to try
(21)      try github.com/spf13/[email protected]
(21)  ✓ select github.com/spf13/[email protected] w/1 pkgs
(20)  ? attempt github.com/prometheus/common with 2 pkgs; at least 1 versions to try
(22)      try github.com/prometheus/common@master
(22)  ✓ select github.com/prometheus/common@master w/3 pkgs
(21)  ? attempt github.com/matttproud/golang_protobuf_extensions with 1 pkgs; at least 1 versions to try
(23)      try github.com/matttproud/[email protected]
(23)  ✓ select github.com/matttproud/[email protected] w/1 pkgs
(22)  ? attempt github.com/pelletier/go-toml with 1 pkgs; at least 1 versions to try
(24)      try github.com/pelletier/[email protected]
(24)  ✓ select github.com/pelletier/[email protected] w/1 pkgs
(23)  ? attempt github.com/pelletier/go-buffruneio with 1 pkgs; at least 1 versions to try
(25)      try github.com/pelletier/[email protected]
(25)  ✓ select github.com/pelletier/[email protected] w/1 pkgs
(24)  ? attempt github.com/mitchellh/mapstructure with 1 pkgs; at least 1 versions to try
(26)      try github.com/mitchellh/mapstructure@master
(26)  ✓ select github.com/mitchellh/mapstructure@master w/1 pkgs
(25)  ? attempt github.com/spf13/cobra with 1 pkgs; at least 1 versions to try
(27)      try github.com/spf13/cobra@master
(27)  ✓ select github.com/spf13/cobra@master w/1 pkgs
(26)  ? attempt github.com/inconshreveable/mousetrap with 1 pkgs; at least 1 versions to try
(28)      try github.com/inconshreveable/[email protected]
(28)  ✓ select github.com/inconshreveable/[email protected] w/1 pkgs
(29)    ← no more versions of golang.org/x/net to try; begin backtrack
(28)  ← backtrack: no more versions of github.com/inconshreveable/mousetrap to try
(27)  ← backtrack: no more versions of github.com/spf13/cobra to try
(26)  ← backtrack: no more versions of github.com/mitchellh/mapstructure to try
(25)  ← backtrack: no more versions of github.com/pelletier/go-buffruneio to try
(24)  ← backtrack: no more versions of github.com/pelletier/go-toml to try
(23)  ← backtrack: no more versions of github.com/matttproud/golang_protobuf_extensions to try
(22)  ← backtrack: no more versions of github.com/prometheus/common to try
(21)  ← backtrack: no more versions of github.com/spf13/cast to try
(20)  ← backtrack: no more versions of github.com/fsnotify/fsnotify to try
(19)  ← backtrack: no more versions of github.com/hashicorp/hcl to try
(18)  ← backtrack: popped 1 pkgs from github.com/magiconair/properties
(17)  ← backtrack: no more versions of github.com/spf13/viper to try
(16)  ← backtrack: no more versions of github.com/prometheus/client_model to try
(15)  ← backtrack: no more versions of github.com/golang/protobuf to try
(14)  ← backtrack: no more versions of github.com/beorn7/perks to try
(13)  ← backtrack: no more versions of github.com/prometheus/client_golang to try
(12)  ← backtrack: no more versions of gopkg.in/mgo.v2 to try
(11)  ← backtrack: no more versions of github.com/jmespath/go-jmespath to try
(10)  ← backtrack: no more versions of github.com/magiconair/properties to try
(9)	← backtrack: no more versions of github.com/imdario/mergo to try
(8)	← backtrack: popped 1 pkgs from github.com/emicklei/go-restful
(7)	← backtrack: no more versions of github.com/google/uuid to try
(6)	← backtrack: no more versions of github.com/emicklei/go-restful to try
(5)	← backtrack: no more versions of github.com/go-ini/ini to try
(4)	← backtrack: no more versions of github.com/emicklei/go-restful-swagger12 to try
(3)	← backtrack: no more versions of github.com/davecgh/go-spew to try
(2)	← backtrack: no more versions of github.com/dgrijalva/jwt-go to try
(1)	← backtrack: no more versions of github.com/aws/aws-sdk-go to try
  ✗ solving failed

Solver wall times by segment:
     b-source-exists: 13.067621967s
         b-list-pkgs:  5.137553945s
              b-gmal:  4.332058258s
  b-deduce-proj-root:   57.299318ms
             satisfy:   13.551805ms
            unselect:   12.989033ms
         select-atom:    11.79955ms
         select-root:    1.478381ms
            new-atom:    1.442674ms
           backtrack:     186.918µs
               other:      31.848µs
            add-atom:       8.273µs

  TOTAL: 22.63602197s

ensure Solve(): remote repository at https://go.googlesource.com/net does not exist, or is inaccessible: exit status 128

I have dep built from sources, updated today.

dep version
dep:
 version     : devel
 build date  :
 git hash    :
 go version  : go1.9
 go compiler : gc
 platform    : darwin/amd64

Not sure if a separate ticket should be created.

@sdboyer
Copy link
Member

sdboyer commented Oct 6, 2017

updating to note that @uthark's problem problem was addressed by dealing with a stale ~/.gitcookies file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants