This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
dep init fails if any dependency has an invalid symlink named 'vendor' #1197
Closed
Description
What version of dep
are you using (dep version
)?
v0.3.1-16-g5e004f4
What dep
command did you run?
go get github.com/spenczar/demo_dep_issue_1197
cd $GOPATH/src/github.com/spenczar/demo_dep_issue_1197
dep init
See https://github.com/spenczar/demo_dep_issue_1197 for the stdout and stderr text, but the important bit is this:
(1/2) Wrote github.com/Masterminds/[email protected]
(2/2) Failed to write github.com/Masterminds/[email protected]
safe write of manifest and lock: error while writing out vendor tree: failed to write dep tree: failed to strip vendor from github.com/Masterminds/glide: stat /var/folders/07/3tqty4fn0pqdmk8kyscf2g2m0wg_zb/T/dep643738718/vendor/github.com/Masterminds/glide/testdata/path/x/vendor: no such file or directory
What did you expect to see?
Successful vendoring, with all symlinks named vendor
that point to real directories removed. Ones that are invalid can be ignored.
What did you see instead?
Dep gives up if it runs into any symlinks named vendor
that point to a bogus location - even in a testdata folder.
Metadata
Assignees
Labels
No labels
Activity