Closed dlsniper closed 7 years ago
ach, with our recent refactor of the vendor writer, we lose crucial context when running without -v
. is it possible for you to rerun with dep init -v
, and share the error outputs? without it, we don't actually know what the writer is failing on ๐ข
/cc @ibrasho
Ran into this myself on Windows 10 64-bit.
Log:
$ dep init -v
Getting direct dependencies...
Checked 5 directories for packages.
Found 7 direct dependencies.
Root project is "github.com/F21/someproject"
1 transitively valid internal packages
7 external packages imported from 7 projects
(0) โ select (root)
(1) ? attempt github.com/hashicorp/go-cleanhttp with 1 pkgs; 1 versions to try
(1) try github.com/hashicorp/go-cleanhttp@master
(1) โ select github.com/hashicorp/go-cleanhttp@master w/1 pkgs
(2) ? attempt github.com/cenkalti/backoff with 1 pkgs; 3 versions to try
(2) try github.com/cenkalti/backoff@v1.1.0
(2) โ select github.com/cenkalti/backoff@v1.1.0 w/1 pkgs
(3) ? attempt golang.org/x/net with 1 pkgs; 5 versions to try
(3) try golang.org/x/net@master
(3) โ select golang.org/x/net@master w/1 pkgs
(4) ? attempt github.com/Sirupsen/logrus with 1 pkgs; 46 versions to try
(4) try github.com/Sirupsen/logrus@v1.0.3
(4) โ select github.com/Sirupsen/logrus@v1.0.3 w/1 pkgs
(5) ? attempt golang.org/x/crypto with 1 pkgs; 1 versions to try
(5) try golang.org/x/crypto@master
(5) โ select golang.org/x/crypto@master w/1 pkgs
(6) ? attempt golang.org/x/sys with 1 pkgs; 1 versions to try
(6) try golang.org/x/sys@master
(6) โ select golang.org/x/sys@master w/1 pkgs
(7) ? revisit golang.org/x/sys to add 1 pkgs
(7) โ include 1 more pkgs from golang.org/x/sys@master
(7) ? attempt github.com/pkg/errors with 1 pkgs; 11 versions to try
(8) try github.com/pkg/errors@v0.8.0
(8) โ select github.com/pkg/errors@v0.8.0 w/1 pkgs
(8) ? attempt github.com/go-sql-driver/mysql with 1 pkgs; 18 versions to try
(9) try github.com/go-sql-driver/mysql@v1.3
(9) โ select github.com/go-sql-driver/mysql@v1.3 w/1 pkgs
(9) ? attempt github.com/prometheus/client_golang with 1 pkgs; 15 versions to try
(10) try github.com/prometheus/client_golang@v0.8.0
(10) โ select github.com/prometheus/client_golang@v0.8.0 w/1 pkgs
(10) ? attempt github.com/golang/protobuf with 1 pkgs; 1 versions to try
(11) try github.com/golang/protobuf@master
(11) โ select github.com/golang/protobuf@master w/1 pkgs
(11) ? attempt github.com/prometheus/common with 2 pkgs; 2 versions to try
(12) try github.com/prometheus/common@master
(12) โ select github.com/prometheus/common@master w/3 pkgs
(12) ? attempt github.com/prometheus/procfs with 1 pkgs; 2 versions to try
(13) try github.com/prometheus/procfs@master
(13) โ select github.com/prometheus/procfs@master w/2 pkgs
(13) ? attempt github.com/matttproud/golang_protobuf_extensions with 1 pkgs; 6 versions to try
(14) try github.com/matttproud/golang_protobuf_extensions@v1.0.0
(14) โ select github.com/matttproud/golang_protobuf_extensions@v1.0.0 w/1 pkgs
(14) ? attempt github.com/prometheus/client_model with 1 pkgs; 3 versions to try
(15) try github.com/prometheus/client_model@master
(15) โ select github.com/prometheus/client_model@master w/1 pkgs
(15) ? attempt github.com/beorn7/perks with 1 pkgs; 5 versions to try
(16) try github.com/beorn7/perks@master
(16) โ select github.com/beorn7/perks@master w/1 pkgs
(16) ? attempt github.com/hashicorp/vault with 1 pkgs; 72 versions to try
(17) try github.com/hashicorp/vault@v0.8.1
(17) โ select github.com/hashicorp/vault@v0.8.1 w/4 pkgs
(17) ? revisit golang.org/x/net to add 1 pkgs
(18) โ include 4 more pkgs from golang.org/x/net@master
(17) ? attempt github.com/hashicorp/go-multierror with 1 pkgs; 1 versions to try
(19) try github.com/hashicorp/go-multierror@master
(19) โ select github.com/hashicorp/go-multierror@master w/1 pkgs
(18) ? attempt github.com/hashicorp/errwrap with 1 pkgs; 1 versions to try
(20) try github.com/hashicorp/errwrap@master
(20) โ select github.com/hashicorp/errwrap@master w/1 pkgs
(19) ? attempt github.com/hashicorp/go-rootcerts with 1 pkgs; 1 versions to try
(21) try github.com/hashicorp/go-rootcerts@master
(21) โ select github.com/hashicorp/go-rootcerts@master w/1 pkgs
(20) ? attempt github.com/mitchellh/go-homedir with 1 pkgs; 1 versions to try
(22) try github.com/mitchellh/go-homedir@master
(22) โ select github.com/mitchellh/go-homedir@master w/1 pkgs
(21) ? attempt github.com/mitchellh/mapstructure with 1 pkgs; 1 versions to try
(23) try github.com/mitchellh/mapstructure@master
(23) โ select github.com/mitchellh/mapstructure@master w/1 pkgs
(22) ? attempt golang.org/x/text with 2 pkgs; 1 versions to try
(24) try golang.org/x/text@master
(24) โ select golang.org/x/text@master w/9 pkgs
(23) ? attempt github.com/fatih/structs with 1 pkgs; 3 versions to try
(25) try github.com/fatih/structs@v1.0
(25) โ select github.com/fatih/structs@v1.0 w/1 pkgs
(24) ? attempt github.com/hashicorp/hcl with 2 pkgs; 5 versions to try
(26) try github.com/hashicorp/hcl@master
(26) โ select github.com/hashicorp/hcl@master w/9 pkgs
(25) ? attempt github.com/sethgrid/pester with 1 pkgs; 2 versions to try
(27) try github.com/sethgrid/pester@master
(27) โ select github.com/sethgrid/pester@master w/1 pkgs
(26) ? attempt github.com/golang/snappy with 1 pkgs; 2 versions to try
(28) try github.com/golang/snappy@master
(28) โ select github.com/golang/snappy@master w/1 pkgs
โ found solution with 53 packages from 26 projects
Solver wall times by segment:
b-list-pkgs: 1m23.2663966s
b-gmal: 1m21.5306715s
b-list-versions: 1m4.0274955s
b-source-exists: 7.6149477s
b-deduce-proj-root: 1.4501824s
select-atom: 25.0007ms
new-atom: 12.4992ms
satisfy: 9.5041ms
select-root: 2ms
add-atom: 500.1ยตs
other: 0s
TOTAL: 3m57.9391978s
Locking in master (6bb64b3) for transitive dep github.com/hashicorp/go-rootcerts
Locking in master (ac87088) for transitive dep golang.org/x/text
Locking in master (553a641) for transitive dep github.com/golang/snappy
Locking in master (57efc9c) for transitive dep golang.org/x/net
Locking in master (2d6f6f8) for transitive dep golang.org/x/sys
Using ^0.8.0 as constraint for direct dep github.com/pkg/errors
Locking in v0.8.0 (645ef00) for direct dep github.com/pkg/errors
Using ^0.8.1 as constraint for direct dep github.com/hashicorp/vault
Locking in v0.8.1 (8d76a41) for direct dep github.com/hashicorp/vault
Locking in master (e645f4e) for transitive dep github.com/prometheus/procfs
Locking in master (4c0e845) for transitive dep github.com/beorn7/perks
Locking in master (83588e7) for transitive dep github.com/hashicorp/go-multierror
Locking in master (b8bc1bf) for transitive dep github.com/mitchellh/go-homedir
Using master as constraint for direct dep github.com/hashicorp/go-cleanhttp
Locking in master (3573b8b) for direct dep github.com/hashicorp/go-cleanhttp
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.8.0 as constraint for direct dep github.com/prometheus/client_golang
Locking in v0.8.0 (c5b7fcc) for direct dep github.com/prometheus/client_golang
Locking in master (ab9f9a6) for transitive dep github.com/golang/protobuf
Locking in v1.0 (a720dfa) for transitive dep github.com/fatih/structs
Locking in v1.0.0 (3247c84) for transitive dep github.com/matttproud/golang_protobuf_extensions
Locking in master (6f38060) for transitive dep github.com/prometheus/client_model
Locking in master (7554cd9) for transitive dep github.com/hashicorp/errwrap
Locking in master (d0303fe) for transitive dep github.com/mitchellh/mapstructure
Locking in master (8f6b134) for transitive dep github.com/hashicorp/hcl
Locking in master (a86a2d8) for transitive dep github.com/sethgrid/pester
Using ^1.1.0 as constraint for direct dep github.com/cenkalti/backoff
Locking in v1.1.0 (61153c7) for direct dep github.com/cenkalti/backoff
Locking in master (81e9090) for transitive dep golang.org/x/crypto
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 master (61f87aa) for transitive dep github.com/prometheus/common
Writing out golang.org/x/text@master
Writing out github.com/hashicorp/hcl@master
Writing out github.com/Sirupsen/logrus@v1.0.3
Writing out github.com/beorn7/perks@master
Writing out github.com/prometheus/client_model@master
Writing out github.com/cenkalti/backoff@v1.1.0
Writing out github.com/hashicorp/vault@v0.8.1
Writing out github.com/fatih/structs@v1.0
Writing out github.com/pkg/errors@v0.8.0
Writing out github.com/go-sql-driver/mysql@v1.3
Writing out github.com/golang/protobuf@master
Writing out github.com/prometheus/client_golang@v0.8.0
Writing out github.com/golang/snappy@master
Writing out github.com/sethgrid/pester@master
Writing out github.com/hashicorp/errwrap@master
Writing out github.com/prometheus/common@master
Writing out github.com/hashicorp/go-cleanhttp@master
Writing out github.com/mitchellh/mapstructure@master
Writing out github.com/prometheus/procfs@master
Writing out github.com/hashicorp/go-rootcerts@master
Writing out github.com/matttproud/golang_protobuf_extensions@v1.0.0
Writing out golang.org/x/net@master
Writing out golang.org/x/sys@master
Writing out golang.org/x/crypto@master
Writing out github.com/mitchellh/go-homedir@master
Writing out github.com/hashicorp/go-multierror@master
Failed to write dep tree. The following errors occurred:
* failed to export github.com/hashicorp/vault: : command killed after 10s of no activity
safe write of manifest and lock: error while writing out vendor tree: failed to write dep tree
As a temporary fix, I changed defaultCmdTimeout
to something larger (200 * time.Second
).
@F21 yeah, that's gonna be a different issue - this one was an actual error while writing (of some kind, we don't know what), whereas yours was a timeout.
Dep version: f1346974068313371d889e120ec9e01f5ba43642
How to reproduce this:
Output: