DescriptionFix an issue that tools/license.py fails when BUILD.gn is not directly
under third_party/* directory.
e.g., FindThirdPartyDeps() currently returns
".../third_party/cld_3/src/src" where it should be
".../third_party/cld_3".
I can reproduce the issue by:
$ git cl patch 2797403002
$ tools/licenses.py --gn-target=//ios/web_view \
--gn-out-dir=out/Debug-iphonesimulator license_file
I'm planning to reuse this script to generate LICENSE file for
//ios/web_view, and encountered this issue.
Review-Url: https://codereview.chromium.org/2802723004
Cr-Commit-Position: refs/heads/master@{#465497}
Committed: https://chromium.googlesource.com/chromium/src/+/baea08206b03227c71eeafa328185c5741f4f2e5
Patch Set 1 #Patch Set 2 : Remove a file included by mistake. #
Total comments: 2
Patch Set 3 : Extract a method and add test. #Patch Set 4 : Apply review comments. #Patch Set 5 : Add file description. #Patch Set 6 : Rebase. #Patch Set 7 : Add //tools/tests/OWNERS. #
Total comments: 2
Patch Set 8 : Apply review comments. #
Messages
Total messages: 27 (12 generated)
|