[FAB-4883] Fix vendoring with parent vendored deps
[FAB-4883] Fix vendoring with parent vendored deps

We change the way auto-vendoring works such that deps that
are already vendored are not re-vendored inappropriately.  It was
found that nested vendoring could break the previously employed
scheme.

For example, consider a package "foo/bar/baz".  It's conceivable that
a vendor folder may appear anywhere in that hierarchy, e.g.

[ "foo/vendor", "foo/bar/vendor", "foo/bar/baz/vendor"]

and golang would recognize the contents as a legitimate vendor.

This was precisely the situation when we had chaincode in the package

github.com/fabric/hyperledger/examples/chaincode where

github.com/fabric/vendor was in effect.

We now scan the entire package heirarchy to ensure we capture the
potential relationships regardless of where they sit in the tree.

Fixes FAB-4883

Change-Id: I7c6aa5ba0401cecc26bc58f5e6cda6e208109411
Signed-off-by: Greg Haskins <640d9fe47775e6723f0355b7315e38f7d98d3539@gmail.com>

thakkarparth007/fabric,hyperledger/fabric,Ryan--Yang/fabric,kchristidis/fabric,stemlending/fabric,mqshen/fabric,kchristidis/fabric,binhn/fabric,stemlending/fabric,stemlending/fabric,binhn/fabric,Ryan--Yang/fabric,blockc/fabric,manish-sethi/fabric-sidedb,cophey/fabric,binhn/fabric,thakkarparth007/fabric,xixuejia/fabric,blockc/fabric,lukehuangch/fabric,stemlending/fabric,Ryan--Yang/fabric,ckeyer/fabric,lukehuangch/fabric,mqshen/fabric,manish-sethi/fabric-sidedb,lukehuangch/fabric,mqshen/fabric,cophey/fabric,manish-sethi/fabric-sidedb,xixuejia/fabric,kchristidis/fabric,muralisrini/fabric,thakkarparth007/fabric,manish-sethi/fabric,kchristidis/fabric,manish-sethi/fabric-sidedb,manish-sethi/fabric-sidedb,kchristidis/fabric,lukehuangch/fabric,cophey/fabric,mqshen/fabric,ckeyer/fabric,blockc/fabric,jimthematrix/fabric,blockc/fabric,thakkarparth007/fabric,kchristidis/fabric,ckeyer/fabric,mqshen/fabric,lukehuangch/fabric,jimthematrix/fabric,Ryan--Yang/fabric,muralisrini/fabric,cophey/fabric,Ryan--Yang/fabric,mqshen/fabric,blockc/fabric,cophey/fabric,ckeyer/fabric,hyperledger/fabric,thakkarparth007/fabric,manish-sethi/fabric-sidedb,kchristidis/fabric,muralisrini/fabric,mqshen/fabric,Ryan--Yang/fabric,cophey/fabric,lukehuangch/fabric,manish-sethi/fabric,ckeyer/fabric,thakkarparth007/fabric,xixuejia/fabric,ckeyer/fabric,manish-sethi/fabric-sidedb,ckeyer/fabric,cophey/fabric,lukehuangch/fabric,thakkarparth007/fabric,blockc/fabric,blockc/fabric,Ryan--Yang/fabric