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

"dep init" fails to overwrite random .gitignore #813

Closed
rfay opened this issue Jul 15, 2017 · 2 comments
Closed

"dep init" fails to overwrite random .gitignore #813

rfay opened this issue Jul 15, 2017 · 2 comments

Comments

@rfay
Copy link

rfay commented Jul 15, 2017

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

go 1.8.3 (Macos)
dep v0.1.0-215-g911cd22

What dep command did you run?

dep init (in github.com/drud/ddev HEAD, after rm -r vendor/*)

$ dep init
  Locking in master (3573b8b) for transitive dep github.com/hashicorp/go-cleanhttp
  Locking in v1.0.0 (792786c) for transitive dep github.com/pmezard/go-difflib
  Using ^1.5.0 as constraint for direct dep github.com/fatih/color
  Locking in v1.5.0 (570b54c) for direct dep github.com/fatih/color
  Locking in v1.1.0 (acbeb36) for transitive dep github.com/spf13/cast
  Locking in master (0a4f71a) for transitive dep github.com/golang/protobuf
  Using ^2.12.0 as constraint for direct dep github.com/Masterminds/sprig
  Locking in 2.12.0 (9526be0) for direct dep github.com/Masterminds/sprig
  Locking in master (dd85ac7) for transitive dep golang.org/x/crypto
  Locking in v0.2.0 (c37440a) for transitive dep github.com/pelletier/go-buffruneio
  Using master as constraint for direct dep github.com/fsouza/go-dockerclient
  Locking in master (4df4873) for direct dep github.com/fsouza/go-dockerclient
  Using ^1.0.2 as constraint for direct dep github.com/Sirupsen/logrus
  Locking in 1.0.2 (a3f95b5) for direct dep github.com/Sirupsen/logrus
  Locking in v1.13.1 (092cba3) for transitive dep github.com/docker/docker
  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
  Locking in v1.0.0 (5ccdfb1) for transitive dep github.com/pelletier/go-toml
  Locking in master (f01ecb6) for transitive dep golang.org/x/net
  Locking in master (53e6ce1) for transitive dep github.com/google/go-querystring
  Using master as constraint for direct dep github.com/spf13/viper
  Locking in master (c1de958) for direct dep github.com/spf13/viper
  Using ^1.0.3 as constraint for direct dep github.com/mattn/go-shellwords
  Locking in v1.0.3 (02e3cf0) for direct dep github.com/mattn/go-shellwords
  Locking in master (3959339) for transitive dep github.com/huandu/xstrings
  Locking in v1.4.2 (629574c) for transitive dep github.com/fsnotify/fsnotify
  Using ^2.1.0 as constraint for direct dep github.com/lextoumbourou/goodhosts
  Locking in v2.1.0 (f9508a5) for direct dep github.com/lextoumbourou/goodhosts
  Locking in v1.1.4 (69483b4) for transitive dep github.com/stretchr/testify
  Locking in v0.1.1 (baf6536) for transitive dep github.com/opencontainers/runc
  Locking in v1.7.3 (be5ece7) for transitive dep github.com/magiconair/properties
  Locking in v0.0.2 (fc9e8d8) for transitive dep github.com/mattn/go-isatty
  Locking in v0.0.8 (941b50e) for transitive dep github.com/mattn/go-colorable
  Using master as constraint for direct dep github.com/gosuri/uitable
  Locking in master (36ee7e9) for direct dep github.com/gosuri/uitable
  Locking in v0.0.2 (9e777a8) for transitive dep github.com/mattn/go-runewidth
  Locking in v0.2.1 (990a1a1) for transitive dep github.com/docker/go-connections
  Using ^1.3.1 as constraint for direct dep github.com/Masterminds/semver
  Locking in v1.3.1 (517734c) for direct dep github.com/Masterminds/semver
  Locking in v1.1.0 (346938d) for transitive dep github.com/davecgh/go-spew
  Locking in 1.0.2 (a3f95b5) for transitive dep github.com/sirupsen/logrus
  Locking in 0.2.2 (3e95a51) for transitive dep github.com/imdario/mergo
  Locking in v1.0.1 (3391d37) for transitive dep github.com/aokoli/goutils
  Using master as constraint for direct dep github.com/spf13/cobra
  Locking in master (c46add8) for direct dep github.com/spf13/cobra
  Locking in master (d0303fe) for transitive dep github.com/mitchellh/mapstructure
  Using master as constraint for direct dep github.com/mitchellh/go-homedir
  Locking in master (b8bc1bf) for direct dep github.com/mitchellh/go-homedir
  Locking in master (392dba7) for transitive dep github.com/hashicorp/hcl
  Locking in master (19f72df) for transitive dep github.com/Azure/go-ansiterm
  Locking in v1.10.11 (b73b028) for transitive dep github.com/aws/aws-sdk-go
  Locking in master (e57e3ee) for transitive dep github.com/spf13/pflag
  Locking in v1.1.0 (879c588) for transitive dep github.com/satori/go.uuid
  Locking in 0.2.2 (3433f3e) for transitive dep github.com/jmespath/go-jmespath
  Locking in v0.4.3 (c4dc130) for transitive dep github.com/Microsoft/go-winio
  Locking in master (00874ea) for transitive dep github.com/google/go-github
  Locking in v1.0.0 (150dc57) for transitive dep google.golang.org/appengine
  Locking in master (0efa520) for transitive dep github.com/spf13/jwalterweatherman
  Locking in master (4cd6d1a) for transitive dep golang.org/x/sys
  Locking in master (836efe4) for transitive dep golang.org/x/text
  Using v2 as constraint for direct dep gopkg.in/yaml.v2
  Locking in v2 (3b4ad1d) for direct dep gopkg.in/yaml.v2
  Locking in v0.3.1 (f2d77a6) for transitive dep github.com/docker/go-units
  Locking in master (76626ae) for transitive dep github.com/inconshreveable/mousetrap
  Locking in master (9be6508) for transitive dep github.com/spf13/afero
safe write of manifest and lock: error while writing out vendor tree: error while exporting github.com/sirupsen/logrus: /var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/.gitignore already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/.travis.yml already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/CHANGELOG.md already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/LICENSE already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/README.md already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/alt_exit.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/alt_exit_test.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/doc.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/entry.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/entry_test.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/examples/basic/basic.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/examples/hook/hook.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/exported.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/formatter.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/formatter_bench_test.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/hook_test.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/hooks.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/hooks/syslog/README.md already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/hooks/syslog/syslog.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/hooks/syslog/syslog_test.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/hooks/test/test.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/hooks/test/test_test.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/json_formatter.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/json_formatter_test.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/logger.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/logger_bench_test.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/logrus.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/logrus_test.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/terminal_appengine.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/terminal_bsd.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/terminal_linux.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/terminal_notwindows.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/terminal_solaris.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/terminal_windows.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/text_formatter.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/text_formatter_test.go already exists, no checkout
/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/writer.go already exists, no checkout
: exit status 128

What did you expect to see?

I hoped it would do up the vendor tree for me in proper dep style.

What did you see instead?

Output pasted above - basically it fails with a series of errors like:

safe write of manifest and lock: error while writing out vendor tree: error while exporting github.com/sirupsen/logrus: /var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/dep518666992/vendor/github.com/sirupsen/logrus/.gitignore already exists, no checkout

This is easy to demonstrate.

  1. Check out https://github.com/drud/ddev
  2. rm -rf vendor/*
  3. dep init

It doesn't matter whether you check in the removed vendor stuff or not, the error is the same.

Happy to look at this at community day today.

@darkowlzz
Copy link
Collaborator

Looks like a duplicate of #797

@darkowlzz darkowlzz marked this as a duplicate of #797 Jul 15, 2017
@rfay
Copy link
Author

rfay commented Jul 15, 2017

Yup, dup of #797, closing. Will chase that.

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