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

dep init failed with "backtrack: no more versions of github.com/sirupsen/logrus to try" #639

Closed
GlebYaltchik opened this issue May 24, 2017 · 13 comments · Fixed by #696

Comments

@GlebYaltchik
Copy link

Go version
go version go1.8.2 windows/amd64

go dep version:

commit e93d78b
Merge: fe4b78c 07f165c
Author: Carolyn Van Slyck [email protected]
Date: Wed May 24 09:27:28 2017 -0500

Merge pull request #637 from gregory-m/remove-dead-code

Removed dead code
Searching GOPATH for projects...
  Using master as constraint for direct dep github.com/sirupsen/logrus
  Locking in master (5e5dc89) for direct dep github.com/sirupsen/logrus
  Using master as constraint for direct dep github.com/spf13/pflag
  Locking in master (c990990) for direct dep github.com/spf13/pflag
  Using master as constraint for direct dep github.com/spf13/viper
  Locking in master (0967fc9) for direct dep github.com/spf13/viper
  Locking in master (4da3e2c) for transitive dep github.com/fsnotify/fsnotify
  Locking in master (7fa7fff) for transitive dep github.com/hashicorp/hcl
  Locking in master (51463bf) for transitive dep github.com/magiconair/properties
  Locking in master (cc8532a) for transitive dep github.com/mitchellh/mapstructure
  Locking in master (fe206ef) for transitive dep github.com/pelletier/go-toml
  Locking in master (c37440a) for transitive dep github.com/pelletier/go-buffruneio
  Locking in master (9be6508) for transitive dep github.com/spf13/afero
  Locking in master (470f45b) for transitive dep golang.org/x/text
  Locking in master (acbeb36) for transitive dep github.com/spf13/cast
  Locking in master (fa7ca7e) for transitive dep github.com/spf13/jwalterweatherman
  Locking in master (cd8b52f) for transitive dep gopkg.in/yaml.v2
Following dependencies were not found in GOPATH. Dep will use the most recent versions of these projects.
  golang.org/x/sys
  github.com/PuerkitoBio/purell
  gopkg.in/jose.v1
Root project is "gaijin"
 7 transitively valid internal packages
 5 external packages imported from 5 projects
(0)   ✓ select (root)
(1)	? attempt github.com/sirupsen/logrus with 1 pkgs; at least 1 versions to try
(1)	    try github.com/sirupsen/logrus@master
(1)	✓ select github.com/sirupsen/logrus@master w/1 pkgs
(2)	? attempt github.com/spf13/viper with 1 pkgs; at least 1 versions to try
(2)	    try github.com/spf13/viper@master
(2)	✓ select github.com/spf13/viper@master w/1 pkgs
(3)	? attempt github.com/fsnotify/fsnotify with 1 pkgs; at least 1 versions to try
(3)	    try github.com/fsnotify/fsnotify@master
(3)	✓ select github.com/fsnotify/fsnotify@master w/1 pkgs
(4)	? attempt github.com/hashicorp/hcl with 1 pkgs; at least 1 versions to try
(4)	    try github.com/hashicorp/hcl@master
(4)	✓ select github.com/hashicorp/hcl@master w/9 pkgs
(5)	? attempt github.com/mitchellh/mapstructure with 1 pkgs; at least 1 versions to try
(5)	    try github.com/mitchellh/mapstructure@master
(5)	✓ select github.com/mitchellh/mapstructure@master w/1 pkgs
(6)	? attempt github.com/spf13/pflag with 1 pkgs; at least 1 versions to try
(6)	    try github.com/spf13/pflag@master
(6)	✓ select github.com/spf13/pflag@master w/1 pkgs
(7)	? attempt github.com/magiconair/properties with 1 pkgs; at least 1 versions to try
(7)	    try github.com/magiconair/properties@master
(7)	✓ select github.com/magiconair/properties@master w/1 pkgs
(8)	? attempt github.com/pelletier/go-toml with 1 pkgs; at least 1 versions to try
(8)	    try github.com/pelletier/go-toml@master
(8)	✓ select github.com/pelletier/go-toml@master w/1 pkgs
(9)	? attempt github.com/pelletier/go-buffruneio with 1 pkgs; at least 1 versions to try
(9)	    try github.com/pelletier/go-buffruneio@master
(9)	✓ select github.com/pelletier/go-buffruneio@master w/1 pkgs
(10)  ? attempt github.com/spf13/cast with 1 pkgs; at least 1 versions to try
(10)      try github.com/spf13/cast@master
(10)  ✓ select github.com/spf13/cast@master w/1 pkgs
(11)  ? attempt gopkg.in/yaml.v2 with 1 pkgs; at least 1 versions to try
(11)      try gopkg.in/yaml.v2@master
(11)  ✓ select gopkg.in/yaml.v2@master w/1 pkgs
(12)  ? attempt golang.org/x/sys with 1 pkgs; 1 versions to try
(12)      try golang.org/x/sys@master
(12)  ✗   Unable to update checked out version: fatal: reference is not a tree: dbc2be9168a660ef302e04b6ff6406de6f967473
(12)    ← no more versions of golang.org/x/sys to try; begin backtrack
(11)  ← backtrack: no more versions of gopkg.in/yaml.v2 to try
(10)  ← backtrack: no more versions of github.com/spf13/cast to try
(9)	← backtrack: no more versions of github.com/pelletier/go-buffruneio to try
(8)	← backtrack: no more versions of github.com/pelletier/go-toml to try
(7)	← backtrack: no more versions of github.com/magiconair/properties to try
(6)	← backtrack: no more versions of github.com/spf13/pflag to try
(5)	← backtrack: no more versions of github.com/mitchellh/mapstructure to try
(4)	← backtrack: no more versions of github.com/hashicorp/hcl to try
(3)	← backtrack: no more versions of github.com/fsnotify/fsnotify to try
(2)	← backtrack: no more versions of github.com/spf13/viper to try
(1)	← backtrack: no more versions of github.com/sirupsen/logrus to try
(1)	  ? continue github.com/sirupsen/logrus with 1 pkgs; 41 more versions to try
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/[email protected]
(2)	✗   github.com/sirupsen/[email protected] not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/logrus@master
(1)	✓ select github.com/sirupsen/logrus@master w/1 pkgs
(2)	? attempt github.com/hashicorp/hcl with 9 pkgs; at least 1 versions to try
(2)	    try github.com/hashicorp/hcl@master
(2)	✓ select github.com/hashicorp/hcl@master w/9 pkgs
(3)	? attempt github.com/PuerkitoBio/purell with 1 pkgs; 8 versions to try
(3)	    try github.com/PuerkitoBio/[email protected]
(3)	✓ select github.com/PuerkitoBio/[email protected] w/1 pkgs
(4)	? attempt github.com/spf13/pflag with 1 pkgs; at least 1 versions to try
(4)	    try github.com/spf13/pflag@master
(4)	✓ select github.com/spf13/pflag@master w/1 pkgs
(5)	? attempt github.com/spf13/viper with 1 pkgs; at least 1 versions to try
(5)	    try github.com/spf13/viper@master
(5)	✓ select github.com/spf13/viper@master w/1 pkgs
(6)	? revisit github.com/hashicorp/hcl to add 1 pkgs
(6)	  ✓ include 9 more pkgs from github.com/hashicorp/hcl@master
(6)	? attempt github.com/fsnotify/fsnotify with 1 pkgs; at least 1 versions to try
(7)	    try github.com/fsnotify/fsnotify@master
(7)	✓ select github.com/fsnotify/fsnotify@master w/1 pkgs
(7)	? attempt github.com/pelletier/go-toml with 1 pkgs; at least 1 versions to try
(8)	    try github.com/pelletier/go-toml@master
(8)	✓ select github.com/pelletier/go-toml@master w/1 pkgs
(8)	? attempt github.com/pelletier/go-buffruneio with 1 pkgs; at least 1 versions to try
(9)	    try github.com/pelletier/go-buffruneio@master
(9)	✓ select github.com/pelletier/go-buffruneio@master w/1 pkgs
(9)	? attempt github.com/magiconair/properties with 1 pkgs; at least 1 versions to try
(10)      try github.com/magiconair/properties@master
(10)  ✓ select github.com/magiconair/properties@master w/1 pkgs
(10)  ? attempt gopkg.in/yaml.v2 with 1 pkgs; at least 1 versions to try
(11)      try gopkg.in/yaml.v2@master
(11)  ✓ select gopkg.in/yaml.v2@master w/1 pkgs
(11)  ? attempt github.com/spf13/jwalterweatherman with 1 pkgs; at least 1 versions to try
(12)      try github.com/spf13/jwalterweatherman@master
(12)  ✓ select github.com/spf13/jwalterweatherman@master w/1 pkgs
(12)  ? attempt golang.org/x/net with 1 pkgs; 4 versions to try
(13)      try golang.org/x/net@master
(13)  ✗   Unable to update checked out version: fatal: reference is not a tree: 5b58a9c3e1690d33a592e5b791638e25eb9b3f70
(13)      try golang.org/x/[email protected]
(13)  ✓ select golang.org/x/[email protected] w/1 pkgs
(13)  ? attempt github.com/spf13/afero with 1 pkgs; at least 1 versions to try
(14)      try github.com/spf13/afero@master
(14)  ✓ select github.com/spf13/afero@master w/2 pkgs
(14)  ? attempt golang.org/x/text with 1 pkgs; at least 1 versions to try
(15)      try golang.org/x/text@master
(15)  ✓ select golang.org/x/text@master w/1 pkgs
(15)  ? attempt github.com/mitchellh/mapstructure with 1 pkgs; at least 1 versions to try
(16)      try github.com/mitchellh/mapstructure@master
(16)  ✓ select github.com/mitchellh/mapstructure@master w/1 pkgs
(16)  ? attempt gopkg.in/jose.v1 with 1 pkgs; 1 versions to try
(17)      try gopkg.in/[email protected]
(17)  ✓ select gopkg.in/[email protected] w/4 pkgs
(17)  ? attempt github.com/spf13/cast with 1 pkgs; at least 1 versions to try
(18)      try github.com/spf13/cast@master
(18)  ✓ select github.com/spf13/cast@master w/1 pkgs
(18)  ? revisit golang.org/x/text to add 2 pkgs
(19)    ✓ include 7 more pkgs from golang.org/x/text@master
(18)  ? attempt golang.org/x/sys with 1 pkgs; 1 versions to try
(20)      try golang.org/x/sys@master
(20)  ✗   Unable to update checked out version: fatal: reference is not a tree: dbc2be9168a660ef302e04b6ff6406de6f967473
(20)    ← no more versions of golang.org/x/sys to try; begin backtrack
(19)  ← backtrack: popped 7 pkgs from golang.org/x/text
(18)  ← backtrack: no more versions of github.com/spf13/cast to try
(17)  ← backtrack: no more versions of gopkg.in/jose.v1 to try
(16)  ← backtrack: no more versions of github.com/mitchellh/mapstructure to try
(15)  ← backtrack: no more versions of golang.org/x/text to try
(14)  ← backtrack: no more versions of github.com/spf13/afero to try
(13)  ← backtrack: no more versions of golang.org/x/net to try
(12)  ← backtrack: no more versions of github.com/spf13/jwalterweatherman to try
(11)  ← backtrack: no more versions of gopkg.in/yaml.v2 to try
(10)  ← backtrack: no more versions of github.com/magiconair/properties to try
(9)	← backtrack: no more versions of github.com/pelletier/go-buffruneio to try
(8)	← backtrack: no more versions of github.com/pelletier/go-toml to try
(7)	← backtrack: no more versions of github.com/fsnotify/fsnotify to try
(6)	← backtrack: popped 9 pkgs from github.com/hashicorp/hcl
(5)	← backtrack: no more versions of github.com/spf13/viper to try
(4)	← backtrack: no more versions of github.com/spf13/pflag to try
(3)	← backtrack: no more versions of github.com/PuerkitoBio/purell to try
(2)	← backtrack: no more versions of github.com/hashicorp/hcl to try
(1)	← backtrack: no more versions of github.com/sirupsen/logrus to try
(1)	  ? continue github.com/sirupsen/logrus with 1 pkgs; 5 more versions to try
(1)	    try github.com/sirupsen/logrus@break-out-specials
(2)	✗   github.com/sirupsen/logrus@break-out-specials not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/logrus@caller-hook
(2)	✗   github.com/sirupsen/logrus@caller-hook not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/logrus@hook-fire-fail
(2)	✗   github.com/sirupsen/logrus@hook-fire-fail not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/logrus@log-to-stderr
(2)	✗   github.com/sirupsen/logrus@log-to-stderr not allowed by constraint master:
(2)	    master from (root)
(1)	    try github.com/sirupsen/logrus@logstash
(2)	✗   github.com/sirupsen/logrus@logstash not allowed by constraint master:
(2)	    master from (root)
(1)	← backtrack: no more versions of github.com/sirupsen/logrus to try
  ✗ solving failed

Solver wall times by segment:
         b-list-pkgs: 22.0580515s
              b-gmal: 20.6319726s
     b-list-versions:  3.2991059s
     b-source-exists:  776.2742ms
  b-deduce-proj-root:  185.8773ms
         select-atom:    5.5045ms
            unselect:    5.0043ms
             satisfy:    4.0049ms
           backtrack:    1.0011ms
          b-pair-rev:    1.0008ms
         select-root:     501.8µs
            add-atom:          0s
            new-atom:          0s
      b-pair-version:          0s
               other:          0s
           b-matches:          0s

  TOTAL: 46.9682989s

No versions of golang.org/x/sys met constraints:
	master: Unable to update checked out version: fatal: reference is not a tree: dbc2be9168a660ef302e04b6ff6406de6f967473
@sdboyer
Copy link
Member

sdboyer commented May 24, 2017

Thanks for the issue report! It's sad, we weren't seeing these for a while, I wonder if we had a regression recently...

Without running dep again, could you cd $GOPATH/pkg/dep/sources/https---go.googlesource.com-sys, and report the output of git show-ref and cat .git/HEAD?

@GlebYaltchik
Copy link
Author

git show-ref:
98b5b1e7e80eb60271c8dc4eba6521ec2c3e811e refs/heads/master
98b5b1e7e80eb60271c8dc4eba6521ec2c3e811e refs/remotes/origin/HEAD
98b5b1e7e80eb60271c8dc4eba6521ec2c3e811e refs/remotes/origin/master

cat .git/HEAD
98b5b1e7e80eb60271c8dc4eba6521ec2c3e811e

@sdboyer sdboyer added the bug label May 25, 2017
@sdboyer
Copy link
Member

sdboyer commented May 25, 2017

yeah ok, that definitely suggests that we've got an issue with cache repos not being updated properly.

If you re-attempt dep init -v, do you get the same error, or does it go away? Afterwards, please report the output of git show-ref and cat .git/HEAD.

@GlebYaltchik
Copy link
Author

Repository state before dep init -v

git show-ref
98b5b1e7e80eb60271c8dc4eba6521ec2c3e811e refs/heads/master
98b5b1e7e80eb60271c8dc4eba6521ec2c3e811e refs/remotes/origin/HEAD
98b5b1e7e80eb60271c8dc4eba6521ec2c3e811e refs/remotes/origin/master

cat .git/HEAD
98b5b1e7e80eb60271c8dc4eba6521ec2c3e811e

After dep init -v I have got the same error and the same repository state:

git show-ref
98b5b1e7e80eb60271c8dc4eba6521ec2c3e811e refs/heads/master
98b5b1e7e80eb60271c8dc4eba6521ec2c3e811e refs/remotes/origin/HEAD
98b5b1e7e80eb60271c8dc4eba6521ec2c3e811e refs/remotes/origin/master

cat .git/HEAD
98b5b1e7e80eb60271c8dc4eba6521ec2c3e811e

@sgoodliff
Copy link

Hi,

I also have a very similar error message

No versions of golang.org/x/sys met constraints:
master: Unable to update checked out version: fatal: reference is not a tree: b90f89a1e7a9c1f6b918820b3daa7f08488c8594

@sdboyer
Copy link
Member

sdboyer commented May 30, 2017

@GlebYaltchik thanks for extra info - that pretty clearly confirms that we have a stale cache issue.

@sgoodliff yep, you're likely running into the same thing.

we should be able to get this fixed this week.

@sevennt
Copy link

sevennt commented May 31, 2017

Hi, @sdboyer, I also got same error message.

ensure Solve(): No versions of golang.org/x/sys met constraints:
        master: Unable to update checked out version: fatal: reference is not a tree: b90f89a1e7a9c1f6b918820b3daa7f08488c8594

        master: Unable to update checked out version: fatal: reference is not a tree: b90f89a1e7a9c1f6b918820b3daa7f08488c8594

git show-ref

a55a76086885b80f79961eacb876ebd8caf3868d refs/heads/master
a55a76086885b80f79961eacb876ebd8caf3868d refs/remotes/origin/HEAD
a55a76086885b80f79961eacb876ebd8caf3868d refs/remotes/origin/master

cat .git/HEAD

478fcf54317e52ab69f40bb4c7a1520288d7f7ea

@sevennt
Copy link

sevennt commented May 31, 2017

Issue was solved after I delete $GOPATH/pkg/dep/sources/https---go.googlesource.com-sys and run dep ensure -v.

@sdboyer
Copy link
Member

sdboyer commented May 31, 2017

@sevennt yep, that removes the stale cached repository; it's then automatically re-downloaded. It confirms what we know, though I'm glad you found a temporary solution 😄

@greenpau
Copy link

Experienced the same issue recently. As it was suggested, resolved by running:

rm -rf $GOPATH/pkg/dep/sources/https---go.googlesource.com-sys

@eddycjy
Copy link

eddycjy commented Mar 5, 2018

I recently encountered the same problem and took the same approach to solve it

@withlin
Copy link

withlin commented Jun 11, 2018

emmmm, As it was suggested, resolved by running!!

@aceyin
Copy link

aceyin commented Sep 7, 2018

i ran into the same issue many times. when this issue happened the dep progress stoped and itself cannot automatic recovered. so everytime this issue happened, i have to delete the cached dependencies from my laptop.

hope this issue can be fixed quickly, since this is really a very bad experience.

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

Successfully merging a pull request may close this issue.

9 participants