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

dep ensure: ensure Solve(): No versions of github.com/kjk/siser met constraints #699

Closed
@kjk

Description

@kjk

A repro (on mac, go 1.8.3) using latest (1c168c0) version of dep:

git checkout https://github.com/kjk/web-blog.git
dep ensure

I get an error:

ensure Solve(): No versions of github.com/kjk/siser met constraints:
	master: Unable to update checked out version: fatal: reference is not a tree: 593a1a6c12ef4c7c33581fbde55a0ce6b85e124d

Notice that this revision exists: kjk/siser@593a1a6

It fails on other packages as well:

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

but most frequently github.com/kjk/siser

Dependency file was created with dep ensure -u on a different machine (but also mac).

From a bit of googling it seems this is what git returns, but I don't know what command exactly.

Running verbose:

$ dep ensure -v
Root project is "github.com/kjk/blog"
 1 transitively valid internal packages
 13 external packages imported from 13 projects
(0)   ✓ select (root)
(1)	? attempt github.com/SparkPost/gosparkpost with 1 pkgs; at least 1 versions to try
(1)	    try github.com/SparkPost/gosparkpost@master
(1)	✓ select github.com/SparkPost/gosparkpost@master w/2 pkgs
(2)	? attempt github.com/dustin/go-humanize with 1 pkgs; at least 1 versions to try
(2)	    try github.com/dustin/go-humanize@master
(2)	✓ select github.com/dustin/go-humanize@master w/1 pkgs
(3)	? attempt github.com/kjk/dailyrotate with 1 pkgs; at least 1 versions to try
(3)	    try github.com/kjk/dailyrotate@master
(3)	✓ select github.com/kjk/dailyrotate@master w/1 pkgs
(4)	? attempt github.com/go-fsnotify/fsnotify with 1 pkgs; at least 1 versions to try
(4)	    try github.com/go-fsnotify/fsnotify@master
(4)	✓ select github.com/go-fsnotify/fsnotify@master w/1 pkgs
(5)	? attempt github.com/kr/fs with 1 pkgs; at least 1 versions to try
(5)	    try github.com/kr/fs@master
(5)	✓ select github.com/kr/fs@master w/1 pkgs
(6)	? attempt github.com/microcosm-cc/bluemonday with 1 pkgs; at least 1 versions to try
(6)	    try github.com/microcosm-cc/bluemonday@master
(6)	✓ select github.com/microcosm-cc/bluemonday@master w/1 pkgs
(7)	? attempt github.com/pkg/errors with 1 pkgs; at least 1 versions to try
(7)	    try github.com/pkg/errors@v0.8.0
(7)	✓ select github.com/pkg/errors@v0.8.0 w/1 pkgs
(8)	? attempt github.com/kjk/siser with 1 pkgs; at least 1 versions to try
(8)	    try github.com/kjk/siser@master
(8)	✗   Unable to update checked out version: fatal: reference is not a tree: 593a1a6c12ef4c7c33581fbde55a0ce6b85e124d
(8)	    try github.com/kjk/siser@master
(8)	✗   Unable to update checked out version: fatal: reference is not a tree: 593a1a6c12ef4c7c33581fbde55a0ce6b85e124d
(8)	  ← no more versions of github.com/kjk/siser to try; begin backtrack
(7)	← backtrack: no more versions of github.com/pkg/errors to try
(6)	← backtrack: no more versions of github.com/microcosm-cc/bluemonday to try
(5)	← backtrack: no more versions of github.com/kr/fs to try
(4)	← backtrack: no more versions of github.com/go-fsnotify/fsnotify to try
(3)	← backtrack: no more versions of github.com/kjk/dailyrotate to try
(2)	← backtrack: no more versions of github.com/dustin/go-humanize to try
(1)	← backtrack: no more versions of github.com/SparkPost/gosparkpost to try
  ✗ solving failed

Solver wall times by segment:
     b-source-exists: 1.786681846s
         b-list-pkgs: 973.319787ms
              b-gmal: 937.044693ms
  b-deduce-proj-root:  231.61719ms
         select-atom:    540.846µs
             satisfy:    531.758µs
            new-atom:    481.376µs
         select-root:    323.196µs
            unselect:    309.772µs
           backtrack:      26.02µs
     b-list-versions:     11.989µs
               other:     10.288µs

  TOTAL: 3.930898761s

ensure Solve(): No versions of github.com/kjk/siser met constraints:
	master: Unable to update checked out version: fatal: reference is not a tree: 593a1a6c12ef4c7c33581fbde55a0ce6b85e124d

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

An aside: it would be good to have "even more verbose" cmd-line arg that prints external commands that dep executes.

Also, can it be flakiness on the github side?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions