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

"safe write of manifest and lock: error while writing out vendor tree: error while exporting"... #365

Closed
tomwilkie opened this issue Apr 6, 2017 · 6 comments

Comments

@tomwilkie
Copy link
Contributor

Starting a fresh project that imports github.com/weaveworks/common/server, I get the following error:

$ dep init
Cached golang.org/x/net
Cached github.com/weaveworks/common
Cached github.com/mgutz/ansi
Cached github.com/armon/go-socks5
Cached golang.org/x/tools
Cached github.com/Sirupsen/logrus
Cached github.com/grpc-ecosystem/grpc-opentracing
Cached github.com/golang/protobuf
Cached github.com/opentracing-contrib/go-stdlib
Cached github.com/beorn7/perks
Cached github.com/prometheus/client_model
Cached github.com/prometheus/common
Cached github.com/prometheus/client_golang
Cached github.com/matttproud/golang_protobuf_extensions
Cached github.com/prometheus/procfs
Cached github.com/weaveworks-experiments/loki
safe write of manifest and lock: error while writing out vendor tree: error while exporting github.com/mwitkow/go-grpc-middleware: /var/folders/_b/ktq_dxhx0nbbw7gjtdzb3tn40000gn/T/dep051154450/vendor/github.com/mwitkow/go-grpc-middleware/README.md already exists, no checkout
@tomwilkie
Copy link
Contributor Author

Error persists if I blow away by $GOPATH/pkg/dep cache.

@jstemmer
Copy link
Contributor

jstemmer commented Apr 6, 2017

Are you using a case-insensitive filesystem by any chance? The repo at https://github.com/mwitkow/go-grpc-middleware has both a README.MD and README.md file.

@tomwilkie
Copy link
Contributor Author

Yeah, I'm on a Mac.

$ cd $GOPATH/pkg/dep/sources/https---github.com-mwitkow-go-grpc-middleware/
$ git status
HEAD detached at dbe298b
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	typechange: README.MD

no changes added to commit (use "git add" and/or "git commit -a")

@tomwilkie
Copy link
Contributor Author

tomwilkie commented Apr 6, 2017

@mwitkow, did you mean to checkin two files that differ only by case?

@tomwilkie
Copy link
Contributor Author

I guess this isn't really a bug in dep. An error along the lines of "Error running git foo in dir bar: ..." would have been nice. But not a big deal, I'll close.

@sdboyer
Copy link
Member

sdboyer commented Apr 6, 2017

Unfortunately, the error we have there is the one that's passed all the way back up from git itself. While we could probably do better with classifying the general type of error (e.g., "this came from git!"), and I hope we can tackle such things with #288, it's probably impractical to improve the content of the error message itself.

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

3 participants