Skip to content

Commit cbc1a4a

Browse files
gkdncopybara-github
authored andcommitted
Add helpful error messages/instructions for updating THIRD_PARTY_NOTICES.
PiperOrigin-RevId: 704353891
1 parent dfd893e commit cbc1a4a

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

license_check/third_party_license_test.sh

+11-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
set -e
44

5-
python3 -m pip install requests
5+
if ! python3 -c "import requests"; then
6+
if python3 -m pip --version; then
7+
echo Installing \"requests\" package.
8+
python3 -m pip install requests
9+
else
10+
echo Error: \"requests\" package is not available. \
11+
Cannot install automatically since \"pip\" is also not available.
12+
echo Please manually install \"requests\" or \"pip\" package.
13+
exit 1
14+
fi
15+
fi
616

717
python3 license_check/third_party_license_test.py ${@}

maven_artifacts.bzl

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ MAVEN_ARTIFACTS = [
1717
"org.jspecify:jspecify:0.3.0",
1818
]
1919

20+
# After updating dependencies, please run the license check script from this directory:
21+
# ./license_check/third_party_license_test.sh --update
22+
#
2023
# Note the added "@" after version tag to make easier to extract the root url
2124
ORDERED_POM_OR_GRADLE_FILE_LIST = [
2225
"https://github.com/kohsuke/args4j/blob/args4j-site-2.33@/args4j/pom.xml",

0 commit comments

Comments
 (0)