Skip to content

Commit ce07474

Browse files
authored
Merge pull request #18603 from lekaf974/feat/rename-module-exp
Rename modules_exp to modules_for_bom to improve code and clarity
2 parents 2ed418c + 5b2faec commit ce07474

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

scripts/test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ function bom_pass {
509509
log_callout "Checking bill of materials..."
510510
# https://github.com/golang/go/commit/7c388cc89c76bc7167287fb488afcaf5a4aa12bf
511511
# shellcheck disable=SC2207
512-
modules=($(modules_exp))
512+
modules=($(modules_for_bom))
513513

514514
# Internally license-bill-of-materials tends to modify go.sum
515515
run cp go.sum go.sum.tmp || return 2

scripts/test_lib.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function modules() {
196196
echo "${modules[@]}"
197197
}
198198

199-
function modules_exp() {
199+
function modules_for_bom() {
200200
for m in $(modules); do
201201
echo -n "${m}/... "
202202
done

scripts/updatebom.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function bom_fixlet {
1212

1313
local modules
1414
# shellcheck disable=SC2207
15-
modules=($(modules_exp))
15+
modules=($(modules_for_bom))
1616

1717
if GOFLAGS=-mod=mod run_go_tool "github.com/appscodelabs/license-bill-of-materials" \
1818
--override-file ./bill-of-materials.override.json \

0 commit comments

Comments
 (0)