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

dep init fails with "safe write of manifest and lock: error while writing out vendor tree: failed to write dep tree" #1072

Closed
fsouza opened this issue Aug 28, 2017 · 3 comments

Comments

@fsouza
Copy link

fsouza commented Aug 28, 2017

Unfortunately, the repository is not open source, so I can't share the source with you, but I'm posting the output of dep init -v.

The issue seems to be related to the Sirupsen -> sirupsen rename, but it looks like it's an issue with a dependency of a dependency, I was able to get my dependencies vendored with the following commands:

% go get -u -d -t ./...
% dep init -gopath
% dep ensure
% dep prune

Below you can find what happened when I tried dep init without -gopath:

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

% go version
go version devel +1fe1512f50 Mon Aug 28 15:34:19 2017 +0000 darwin/amd64
% git describe --tags
v0.3.0-162-gf134697

What dep command did you run?

% dep init -v
Getting direct dependencies...
Checked 14 directories for packages.
Found 16 direct dependencies.
Root project is "github.com/nytm/video-pipeline"
 11 transitively valid internal packages
 29 external packages imported from 16 projects
(0)   ✓ select (root)
(1)	? attempt github.com/Gurpartap/logrus-stack with 1 pkgs; 1 versions to try
(1)	    try github.com/Gurpartap/logrus-stack@master
(1)	✓ select github.com/Gurpartap/logrus-stack@master w/1 pkgs
(2)	? attempt github.com/fsouza/ctxlogger with 1 pkgs; 1 versions to try
(2)	    try github.com/fsouza/ctxlogger@master
(2)	✓ select github.com/fsouza/ctxlogger@master w/1 pkgs
(3)	? attempt github.com/NYTimes/gziphandler with 1 pkgs; 1 versions to try
(3)	    try github.com/NYTimes/gziphandler@master
(3)	✓ select github.com/NYTimes/gziphandler@master w/1 pkgs
(4)	? attempt github.com/knq/sdhook with 1 pkgs; 1 versions to try
(4)	    try github.com/knq/sdhook@master
(4)	✓ select github.com/knq/sdhook@master w/1 pkgs
(5)	? attempt github.com/facebookgo/stack with 1 pkgs; 1 versions to try
(5)	    try github.com/facebookgo/stack@master
(5)	✓ select github.com/facebookgo/stack@master w/1 pkgs
(6)	? attempt github.com/knq/jwt with 1 pkgs; 1 versions to try
(6)	    try github.com/knq/jwt@master
(6)	✓ select github.com/knq/jwt@master w/3 pkgs
(7)	? attempt github.com/golang/protobuf with 1 pkgs; 1 versions to try
(7)	    try github.com/golang/protobuf@master
(7)	✓ select github.com/golang/protobuf@master w/1 pkgs
(8)	? attempt github.com/knq/pemutil with 1 pkgs; 1 versions to try
(8)	    try github.com/knq/pemutil@master
(8)	✓ select github.com/knq/pemutil@master w/1 pkgs
(9)	? attempt github.com/google/gops with 1 pkgs; 6 versions to try
(9)	    try github.com/google/[email protected]
(9)	✓ select github.com/google/[email protected] w/3 pkgs
(10)  ? attempt github.com/marzagao/logrus-env with 1 pkgs; 1 versions to try
(10)      try github.com/marzagao/logrus-env@master
(10)  ✓ select github.com/marzagao/logrus-env@master w/1 pkgs
(11)  ? attempt github.com/twinj/uuid with 1 pkgs; 6 versions to try
(11)      try github.com/twinj/[email protected]
(11)  ✓ select github.com/twinj/[email protected] w/1 pkgs
(12)  ? attempt golang.org/x/oauth2 with 2 pkgs; 1 versions to try
(12)      try golang.org/x/oauth2@master
(12)  ✓ select golang.org/x/oauth2@master w/5 pkgs
(13)  ? attempt google.golang.org/api with 2 pkgs; 2 versions to try
(13)      try google.golang.org/api@master
(13)  ✓ select google.golang.org/api@master w/5 pkgs
(14)  ? attempt github.com/nytm/video-distribution-api with 1 pkgs; 28 versions to try
(14)      try github.com/nytm/[email protected]
(14)  ✓ select github.com/nytm/[email protected] w/1 pkgs
(15)  ? attempt google.golang.org/appengine with 2 pkgs; 2 versions to try
(15)      try google.golang.org/[email protected]
(15)  ✓ select google.golang.org/[email protected] w/10 pkgs
(16)  ? attempt github.com/mattes/migrate with 3 pkgs; 16 versions to try
(16)      try github.com/mattes/[email protected]
(16)  ✓ select github.com/mattes/[email protected] w/5 pkgs
(17)  ? attempt github.com/go-sql-driver/mysql with 1 pkgs; 18 versions to try
(17)      try github.com/go-sql-driver/[email protected]
(17)  ✓ select github.com/go-sql-driver/[email protected] w/1 pkgs
(18)  ? attempt golang.org/x/net with 1 pkgs; 5 versions to try
(18)      try golang.org/x/net@master
(18)  ✓ select golang.org/x/net@master w/2 pkgs
(19)  ? revisit golang.org/x/net to add 1 pkgs
(19)    ✓ include 1 more pkgs from golang.org/x/net@master
(19)  ? attempt github.com/NYTimes/gizmo with 7 pkgs; 9 versions to try
(20)      try github.com/NYTimes/gizmo@master
(20)  ✓ select github.com/NYTimes/gizmo@master w/9 pkgs
(20)  ? attempt github.com/NYTimes/logrotate with 1 pkgs; 1 versions to try
(21)      try github.com/NYTimes/logrotate@master
(21)  ✓ select github.com/NYTimes/logrotate@master w/1 pkgs
(21)  ? attempt github.com/nu7hatch/gouuid with 1 pkgs; 1 versions to try
(22)      try github.com/nu7hatch/gouuid@master
(22)  ✓ select github.com/nu7hatch/gouuid@master w/1 pkgs
(22)  ? attempt github.com/gorilla/handlers with 1 pkgs; 6 versions to try
(23)      try github.com/gorilla/[email protected]
(23)  ✓ select github.com/gorilla/[email protected] w/1 pkgs
(23)  ? attempt github.com/bradfitz/gomemcache with 1 pkgs; 2 versions to try
(24)      try github.com/bradfitz/gomemcache@master
(24)  ✓ select github.com/bradfitz/gomemcache@master w/1 pkgs
(24)  ? attempt github.com/gorilla/context with 1 pkgs; 2 versions to try
(25)      try github.com/gorilla/[email protected]
(25)  ✓ select github.com/gorilla/[email protected] w/1 pkgs
(25)  ? attempt github.com/gorilla/mux with 1 pkgs; 8 versions to try
(26)      try github.com/gorilla/[email protected]
(26)  ✓ select github.com/gorilla/[email protected] w/1 pkgs
(26)  ? attempt github.com/julienschmidt/httprouter with 1 pkgs; 6 versions to try
(27)      try github.com/julienschmidt/[email protected]
(27)  ✓ select github.com/julienschmidt/[email protected] w/1 pkgs
(27)  ? attempt github.com/go-kit/kit with 6 pkgs; 12 versions to try
(28)      try github.com/go-kit/[email protected]
(28)  ✓ select github.com/go-kit/[email protected] w/14 pkgs
(28)  ? attempt github.com/VividCortex/gohistogram with 1 pkgs; 2 versions to try
(29)      try github.com/VividCortex/[email protected]
(29)  ✓ select github.com/VividCortex/[email protected] w/1 pkgs
(29)  ? attempt cloud.google.com/go with 1 pkgs; 16 versions to try
(30)      try cloud.google.com/[email protected]
(30)  ✓ select cloud.google.com/[email protected] w/1 pkgs
(30)  ? attempt github.com/go-logfmt/logfmt with 1 pkgs; 5 versions to try
(31)      try github.com/go-logfmt/[email protected]
(31)  ✓ select github.com/go-logfmt/[email protected] w/1 pkgs
(31)  ? attempt github.com/kr/logfmt with 1 pkgs; 2 versions to try
(32)      try github.com/kr/logfmt@master
(32)  ✓ select github.com/kr/logfmt@master w/1 pkgs
(32)  ? attempt github.com/jmoiron/sqlx with 1 pkgs; 9 versions to try
(33)      try github.com/jmoiron/sqlx@master
(33)  ✓ select github.com/jmoiron/sqlx@master w/2 pkgs
(33)  ? attempt github.com/fluent/fluent-logger-golang with 1 pkgs; 26 versions to try
(34)      try github.com/fluent/[email protected]
(34)  ✓ select github.com/fluent/[email protected] w/1 pkgs
(34)  ? attempt github.com/kelseyhightower/envconfig with 1 pkgs; 6 versions to try
(35)      try github.com/kelseyhightower/[email protected]
(35)  ✓ select github.com/kelseyhightower/[email protected] w/1 pkgs
(35)  ? attempt github.com/tinylib/msgp with 1 pkgs; 39 versions to try
(36)      try github.com/tinylib/[email protected]
(36)  ✓ select github.com/tinylib/[email protected] w/1 pkgs
(36)  ? attempt github.com/philhofer/fwd with 1 pkgs; 4 versions to try
(37)      try github.com/philhofer/fwd@master
(37)  ✓ select github.com/philhofer/fwd@master w/1 pkgs
(37)  ? attempt github.com/go-stack/stack with 1 pkgs; 14 versions to try
(38)      try github.com/go-stack/[email protected]
(38)  ✓ select github.com/go-stack/[email protected] w/1 pkgs
(38)  ? attempt github.com/sirupsen/logrus with 1 pkgs; 46 versions to try
(39)      try github.com/sirupsen/[email protected]
(39)  ✓ select github.com/sirupsen/[email protected] w/1 pkgs
(39)  ? attempt golang.org/x/crypto with 1 pkgs; 1 versions to try
(40)      try golang.org/x/crypto@master
(40)  ✓ select golang.org/x/crypto@master w/1 pkgs
(40)  ? attempt golang.org/x/sys with 1 pkgs; 1 versions to try
(41)      try golang.org/x/sys@master
(41)  ✓ select golang.org/x/sys@master w/1 pkgs
(41)  ? revisit golang.org/x/sys to add 1 pkgs
(42)    ✓ include 1 more pkgs from golang.org/x/sys@master
(41)  ? attempt github.com/aws/aws-sdk-go with 5 pkgs; 258 versions to try
(43)      try github.com/aws/[email protected]
(43)  ✓ select github.com/aws/[email protected] w/25 pkgs
(42)  ? attempt github.com/influxdata/influxdb with 1 pkgs; 352 versions to try
(44)      try github.com/influxdata/[email protected]
(44)  ✓ select github.com/influxdata/[email protected] w/3 pkgs
(43)  ? revisit github.com/aws/aws-sdk-go to add 3 pkgs
(45)    ✓ include 18 more pkgs from github.com/aws/[email protected]
(43)  ? attempt github.com/prometheus/client_golang with 1 pkgs; 15 versions to try
(46)      try github.com/prometheus/[email protected]
(46)  ✓ select github.com/prometheus/[email protected] w/1 pkgs
(44)  ? attempt github.com/prometheus/common with 2 pkgs; 2 versions to try
(47)      try github.com/prometheus/common@master
(47)  ✓ select github.com/prometheus/common@master w/3 pkgs
(45)  ? attempt github.com/prometheus/procfs with 1 pkgs; 2 versions to try
(48)      try github.com/prometheus/procfs@master
(48)  ✓ select github.com/prometheus/procfs@master w/2 pkgs
(46)  ? attempt github.com/beorn7/perks with 1 pkgs; 5 versions to try
(49)      try github.com/beorn7/perks@master
(49)  ✓ select github.com/beorn7/perks@master w/1 pkgs
(47)  ? attempt github.com/prometheus/client_model with 1 pkgs; 3 versions to try
(50)      try github.com/prometheus/client_model@master
(50)  ✓ select github.com/prometheus/client_model@master w/1 pkgs
(48)  ? attempt github.com/matttproud/golang_protobuf_extensions with 1 pkgs; 6 versions to try
(51)      try github.com/matttproud/[email protected]
(51)  ✓ select github.com/matttproud/[email protected] w/1 pkgs
(49)  ? attempt google.golang.org/grpc with 2 pkgs; 20 versions to try
(52)      try google.golang.org/[email protected]
(52)  ✓ select google.golang.org/[email protected] w/15 pkgs
(50)  ? revisit golang.org/x/net to add 3 pkgs
(53)    ✓ include 7 more pkgs from golang.org/x/net@master
(50)  ? attempt golang.org/x/text with 2 pkgs; 1 versions to try
(54)      try golang.org/x/text@master
(54)  ✓ select golang.org/x/text@master w/9 pkgs
(51)  ? attempt google.golang.org/genproto with 1 pkgs; 3 versions to try
(55)      try google.golang.org/genproto@master
(55)  ✓ select google.golang.org/genproto@master w/1 pkgs
(52)  ? revisit github.com/golang/protobuf to add 1 pkgs
(56)    ✓ include 2 more pkgs from github.com/golang/protobuf@master
(52)  ? attempt github.com/jmespath/go-jmespath with 1 pkgs; 15 versions to try
(57)      try github.com/jmespath/[email protected]
(57)  ✓ select github.com/jmespath/[email protected] w/1 pkgs
(53)  ? attempt github.com/NYTimes/video-transcoding-api with 2 pkgs; 35 versions to try
(58)      try github.com/NYTimes/[email protected]
(58)  ✓ select github.com/NYTimes/[email protected] w/7 pkgs
(54)  ? attempt gopkg.in/redis.v5 with 1 pkgs; 22 versions to try
(59)      try gopkg.in/[email protected]
(59)  ✓ select gopkg.in/[email protected] w/6 pkgs
(55)  ? attempt github.com/Sirupsen/logrus with 1 pkgs; 46 versions to try
(60)      try github.com/Sirupsen/[email protected]
(60)  ✓ select github.com/Sirupsen/[email protected] w/1 pkgs
(56)  ? attempt github.com/hashicorp/consul with 1 pkgs; 59 versions to try
(61)      try github.com/hashicorp/[email protected]
(61)  ✓ select github.com/hashicorp/[email protected] w/1 pkgs
(57)  ? attempt github.com/hashicorp/go-cleanhttp with 1 pkgs; 1 versions to try
(62)      try github.com/hashicorp/go-cleanhttp@master
(62)  ✓ select github.com/hashicorp/go-cleanhttp@master w/1 pkgs
(58)  ? attempt github.com/hashicorp/serf with 1 pkgs; 22 versions to try
(63)      try github.com/hashicorp/[email protected]
(63)  ✓ select github.com/hashicorp/[email protected] w/1 pkgs
(59)  ? attempt github.com/hashicorp/go-rootcerts with 1 pkgs; 1 versions to try
(64)      try github.com/hashicorp/go-rootcerts@master
(64)  ✓ select github.com/hashicorp/go-rootcerts@master w/1 pkgs
(60)  ? attempt github.com/mitchellh/go-homedir with 1 pkgs; 1 versions to try
(65)      try github.com/mitchellh/go-homedir@master
(65)  ✓ select github.com/mitchellh/go-homedir@master w/1 pkgs
(61)  ? attempt github.com/go-ini/ini with 1 pkgs; 41 versions to try
(66)      try github.com/go-ini/[email protected]
(66)  ✓ select github.com/go-ini/[email protected] w/1 pkgs
  ✓ found solution with 182 packages from 61 projects

Solver wall times by segment:
     b-list-versions: 15.862543221s
         b-list-pkgs: 15.436965891s
              b-gmal: 13.963609068s
     b-source-exists:  1.351136917s
  b-deduce-proj-root:  1.179074285s
             satisfy:   58.831049ms
         select-atom:   54.970035ms
         select-root:    6.516249ms
            new-atom:    2.386638ms
               other:     305.531µs
            add-atom:      35.805µs

  TOTAL: 47.916374689s

  Using master as constraint for direct dep github.com/marzagao/logrus-env
  Locking in master (367f558) for direct dep github.com/marzagao/logrus-env
  Using master as constraint for direct dep github.com/NYTimes/gizmo
  Locking in master (8a49dc4) for direct dep github.com/NYTimes/gizmo
  Locking in master (1612a29) for transitive dep github.com/philhofer/fwd
  Locking in master (2d6f6f8) for transitive dep golang.org/x/sys
  Locking in master (6bb64b3) for transitive dep github.com/hashicorp/go-rootcerts
  Locking in master (081cdad) for transitive dep github.com/knq/pemutil
  Locking in master (1952afa) for transitive dep github.com/bradfitz/gomemcache
  Locking in master (b84e30a) for transitive dep github.com/kr/logfmt
  Locking in v1.3.4 (0c54d8f) for transitive dep github.com/influxdata/influxdb
  Locking in master (3573b8b) for transitive dep github.com/hashicorp/go-cleanhttp
  Locking in master (6f38060) for transitive dep github.com/prometheus/client_model
  Locking in master (7517733) for transitive dep github.com/facebookgo/stack
  Using ^1.5.6 as constraint for direct dep github.com/nytm/video-distribution-api
  Locking in 1.5.6 (aa62916) for direct dep github.com/nytm/video-distribution-api
  Locking in v1.0.0 (150dc57) for transitive dep google.golang.org/appengine
  Using ^1.3.0 as constraint for direct dep github.com/go-sql-driver/mysql
  Locking in v1.3 (a0583e0) for direct dep github.com/go-sql-driver/mysql
  Locking in v0.12.0 (0f0b842) for transitive dep cloud.google.com/go
  Using ^1.0.3 as constraint for direct dep github.com/sirupsen/logrus
  Locking in v1.0.3 (f006c2a) for direct dep github.com/sirupsen/logrus
  Using ^0.3.1 as constraint for direct dep github.com/google/gops
  Locking in v0.3.1 (fa69688) for direct dep github.com/google/gops
  Locking in master (9a379c6) for transitive dep golang.org/x/oauth2
  Locking in v1.2.1 (a4043c6) for transitive dep github.com/gorilla/handlers
  Locking in v1.0.0 (3247c84) for transitive dep github.com/matttproud/golang_protobuf_extensions
  Locking in v5.2.9 (a16aeec) for transitive dep gopkg.in/redis.v5
  Locking in master (ac87088) for transitive dep golang.org/x/text
  Using master as constraint for direct dep github.com/knq/sdhook
  Locking in master (a1cc319) for direct dep github.com/knq/sdhook
  Locking in v1.0.2 (b2b6a67) for transitive dep github.com/tinylib/msgp
  Locking in v0.8.0 (c5b7fcc) for transitive dep github.com/prometheus/client_golang
  Locking in v1.5.2 (b3ddf78) for transitive dep google.golang.org/grpc
  Locking in master (ee236bd) for transitive dep google.golang.org/genproto
  Locking in master (b8bc1bf) for transitive dep github.com/mitchellh/go-homedir
  Using master as constraint for direct dep github.com/Gurpartap/logrus-stack
  Locking in master (89c00d8) for direct dep github.com/Gurpartap/logrus-stack
  Using master as constraint for direct dep github.com/NYTimes/gziphandler
  Locking in master (d8cb261) for direct dep github.com/NYTimes/gziphandler
  Locking in v1.1 (8c199fb) for transitive dep github.com/julienschmidt/httprouter
  Locking in v1.0.0 (51564d9) for transitive dep github.com/VividCortex/gohistogram
  Locking in v1.3.0 (f611eb3) for transitive dep github.com/kelseyhightower/envconfig
  Using ^1.10.33 as constraint for direct dep github.com/aws/aws-sdk-go
  Locking in v1.10.33 (e63027a) for direct dep github.com/aws/aws-sdk-go
  Locking in master (0d31af8) for transitive dep github.com/knq/jwt
  Locking in v0.3.0 (390ab79) for transitive dep github.com/go-logfmt/logfmt
  Locking in master (81e9090) for transitive dep golang.org/x/crypto
  Locking in 0.2.2 (3433f3e) for transitive dep github.com/jmespath/go-jmespath
  Using master as constraint for direct dep github.com/golang/protobuf
  Locking in master (ab9f9a6) for direct dep github.com/golang/protobuf
  Locking in master (7940d22) for transitive dep google.golang.org/api
  Locking in master (179d4d0) for transitive dep github.com/nu7hatch/gouuid
  Using master as constraint for direct dep github.com/jmoiron/sqlx
  Locking in master (d9bd385) for direct dep github.com/jmoiron/sqlx
  Locking in v1.6.0 (817915b) for transitive dep github.com/go-stack/stack
  Locking in v0.9.2 (75ca2ca) for transitive dep github.com/hashicorp/consul
  Using master as constraint for direct dep github.com/fsouza/ctxlogger
  Locking in master (25507c5) for direct dep github.com/fsouza/ctxlogger
  Locking in master (2b6e866) for transitive dep github.com/NYTimes/logrotate
  Using ^1.3.0 as constraint for direct dep github.com/NYTimes/video-transcoding-api
  Locking in 1.3.0 (efbd75f) for direct dep github.com/NYTimes/video-transcoding-api
  Locking in v1.0.3 (f006c2a) for transitive dep github.com/Sirupsen/logrus
  Locking in v1.2.1 (28bdb66) for transitive dep github.com/fluent/fluent-logger-golang
  Locking in master (e645f4e) for transitive dep github.com/prometheus/procfs
  Locking in master (4c0e845) for transitive dep github.com/beorn7/perks
  Locking in v0.8.1 (d6574a5) for transitive dep github.com/hashicorp/serf
  Locking in master (57efc9c) for transitive dep golang.org/x/net
  Locking in v1.1 (1ea2538) for transitive dep github.com/gorilla/context
  Using ^1.0.0 as constraint for direct dep github.com/twinj/uuid
  Locking in v1.0.0 (835a10b) for direct dep github.com/twinj/uuid
  Using ^3.0.1 as constraint for direct dep github.com/mattes/migrate
  Locking in v3.0.1 (035c077) for direct dep github.com/mattes/migrate
  Locking in v1.4.0 (bcd8bc7) for transitive dep github.com/gorilla/mux
  Locking in v0.5.0 (a9ca672) for transitive dep github.com/go-kit/kit
  Locking in master (61f87aa) for transitive dep github.com/prometheus/common
  Locking in v1.28.2 (20b96f6) for transitive dep github.com/go-ini/ini
Writing out github.com/Gurpartap/logrus-stack@master
Writing out github.com/NYTimes/[email protected]
Writing out github.com/NYTimes/gizmo@master
Writing out gopkg.in/[email protected]
Writing out github.com/beorn7/perks@master
Writing out cloud.google.com/[email protected]
Writing out github.com/bradfitz/gomemcache@master
Writing out github.com/facebookgo/stack@master
Writing out github.com/NYTimes/gziphandler@master
Writing out github.com/Sirupsen/[email protected]
Writing out github.com/VividCortex/[email protected]
Writing out github.com/aws/[email protected]
Writing out github.com/fluent/[email protected]
Writing out github.com/NYTimes/logrotate@master
Writing out github.com/fsouza/ctxlogger@master
Writing out github.com/matttproud/[email protected]
Writing out github.com/mitchellh/go-homedir@master
Writing out github.com/nu7hatch/gouuid@master
Writing out github.com/go-ini/[email protected]
Writing out github.com/nytm/[email protected]
Writing out github.com/philhofer/fwd@master
Writing out github.com/go-kit/[email protected]
Writing out github.com/go-logfmt/[email protected]
Writing out github.com/prometheus/[email protected]
Writing out github.com/prometheus/client_model@master
Writing out github.com/prometheus/common@master
Writing out github.com/hashicorp/[email protected]
Writing out github.com/influxdata/[email protected]
Writing out github.com/go-sql-driver/[email protected]
Writing out github.com/jmespath/[email protected]
Writing out github.com/go-stack/[email protected]
Writing out github.com/jmoiron/sqlx@master
Writing out github.com/prometheus/procfs@master
Writing out github.com/golang/protobuf@master
Writing out github.com/google/[email protected]
Writing out github.com/julienschmidt/[email protected]
Writing out github.com/gorilla/[email protected]
Writing out github.com/sirupsen/[email protected]
Writing out github.com/tinylib/[email protected]
Writing out github.com/twinj/[email protected]
Writing out golang.org/x/crypto@master
Writing out golang.org/x/net@master
Writing out golang.org/x/oauth2@master
Writing out golang.org/x/sys@master
Writing out golang.org/x/text@master
Writing out github.com/hashicorp/go-cleanhttp@master
Writing out google.golang.org/api@master
Writing out github.com/knq/jwt@master
Writing out github.com/knq/pemutil@master
Writing out github.com/knq/sdhook@master
Writing out github.com/kr/logfmt@master
Writing out github.com/marzagao/logrus-env@master
Writing out github.com/mattes/[email protected]
Writing out github.com/hashicorp/[email protected]
Writing out github.com/gorilla/[email protected]
Writing out github.com/gorilla/[email protected]
Writing out google.golang.org/[email protected]
Writing out google.golang.org/genproto@master
Writing out google.golang.org/[email protected]
Writing out github.com/hashicorp/go-rootcerts@master
Writing out github.com/kelseyhightower/[email protected]
Failed to write dep tree. The following errors occurred:
 *  failed to export github.com/sirupsen/logrus: cannot stat /Users/fsouza/pkg/dep/sources/https---github.lhy31512.workers.dev-sirupsen-logrus/.git/index: stat /Users/fsouza/pkg/dep/sources/https---github.lhy31512.workers.dev-sirupsen-logrus/.git/index: no such file or directory
safe write of manifest and lock: error while writing out vendor tree: failed to write dep tree

What did you expect to see?

I expected dep init to succeed and to get the Gopkg.toml file.

What did you see instead?

Failed to write dep tree. The following errors occurred:
 *  failed to export github.com/sirupsen/logrus: cannot stat /Users/fsouza/pkg/dep/sources/https---github.lhy31512.workers.dev-sirupsen-logrus/.git/index: stat /Users/fsouza/pkg/dep/sources/https---github.lhy31512.workers.dev-sirupsen-logrus/.git/index: no such file or directory
safe write of manifest and lock: error while writing out vendor tree: failed to write dep tree
@sdboyer
Copy link
Member

sdboyer commented Aug 28, 2017

ugh, yeah, sorry - you're having the increasingly-not-uncommon problem of case-variant import clashes - note the github.com/Sirupsen/logrus and github.com/sirupsen/logrus. there's a number of issues where this is the problem now, but #1010 comes up quickly.

there's nothing dep can itself really do to fix this - basically, we all need to agree that github.com/sirupsen/logrus is better, and use that. and you'll need to either ask your dependers to update their code accordingly, or fork them and do it yourself, then rely on the fork.

i am, however, working on a fix that makes it much clearer that that's the actual problem, when that situation is encountered.

(closing as dup)

@sdboyer sdboyer closed this as completed Aug 28, 2017
@fsouza
Copy link
Author

fsouza commented Aug 28, 2017

@sdboyer hey, thanks for the quick reply. I've seen the other issues before and decided to open this one regardless because it seems that dep and go get disagree on my dependency graph (as I can safely run go get -u on my repo when there's no vendor folder, whereas dep init fails), but the "issue" is that dep uses tags while go get uses the master branch, so some dependency has fixed the master without tagging a new version.

Thank you very much and sorry for the dup.

@sdboyer
Copy link
Member

sdboyer commented Aug 29, 2017

no worries about the dup! yeah, that is gonna be a cost of dep vs. go get, unfortunately.

if it's indeed the case that, as you describe, the master branch is fixed but the released tags are not, then the cool thing is that, after i make this modification, dep will figure that out and forego the tags in favor of master 😄

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

2 participants