-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 <[email protected]>
- Loading branch information
Showing
1 changed file
with
77 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters