Skip to content

Commit 933b0bd

Browse files
fix: Add shopt -s nullglob to dependencies script (#1412)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/5578fa0d-17b2-4f89-98ac-63f3516a90a9/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: googleapis/synthtool@87254ac Source-Link: googleapis/synthtool@1c0c698 Source-Link: googleapis/synthtool@8f76a88 fix: Update dependencies.sh to not break on mac
1 parent 33acb86 commit 933b0bd

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.kokoro/coerce_logs.sh

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ job=$(basename ${KOKORO_JOB_NAME})
2828
echo "coercing sponge logs..."
2929
for xml in `find . -name *-sponge_log.xml`
3030
do
31-
echo "processing ${xml}"
3231
class=$(basename ${xml} | cut -d- -f2)
3332
dir=$(dirname ${xml})/${job}/${class}
3433
text=$(dirname ${xml})/${class}-sponge_log.txt

.kokoro/dependencies.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# limitations under the License.
1515

1616
set -eo pipefail
17+
shopt -s nullglob
1718

1819
## Get the directory of the build script
1920
scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}"))
@@ -46,7 +47,7 @@ function completenessCheck() {
4647
# This is stripped from the output as it is not present in the flattened pom.
4748
# Only dependencies with 'compile' or 'runtime' scope are included from original dependency list.
4849
msg "Generating dependency list using original pom..."
49-
mvn dependency:list -f pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e s/\\s--\\smodule.*// >.org-list.txt
50+
mvn dependency:list -f pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e 's/ --.*//' >.org-list.txt
5051

5152
# Output dep list generated using the flattened pom (only 'compile' and 'runtime' scopes)
5253
msg "Generating dependency list using flattened pom..."
@@ -70,7 +71,7 @@ function completenessCheck() {
7071
set +e
7172

7273
error_count=0
73-
for path in $(find -name ".flattened-pom.xml")
74+
for path in **/.flattened-pom.xml
7475
do
7576
# Check flattened pom in each dir that contains it for completeness
7677
dir=$(dirname "$path")

synth.metadata

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/google-http-java-client.git",
7-
"sha": "e69275ecaa4d85372ebc253dd415a02ba63075be"
7+
"sha": "33acb8621d6e8dc088cf3bd3324a3db25dafb185"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "synthtool",
1313
"remote": "https://github.com/googleapis/synthtool.git",
14-
"sha": "8eae0234a16b26c2ff616d305dbd9786c8b10a47"
14+
"sha": "87254ac89a9559864c0a245d6b150406439ce3d8"
1515
}
1616
}
1717
],
@@ -81,6 +81,7 @@
8181
"CODE_OF_CONDUCT.md",
8282
"CONTRIBUTING.md",
8383
"LICENSE",
84+
"SECURITY.md",
8485
"codecov.yaml",
8586
"renovate.json",
8687
"samples/install-without-bom/pom.xml",

0 commit comments

Comments
 (0)