Skip to content

Commit 11ae6c8

Browse files
committed
Use _bazel_fix_current_pkg.sh for every repo.fix button
1 parent ffd65b1 commit 11ae6c8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

_bazel_fix_current_pkg.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@ else
1111
echo "Error: The script shall be called with '\$FilePathRelativeToProjectRoot\$' as parameter."
1212
exit 1
1313
fi
14+
if [[ -n "$1" ]]; then
15+
CHECKER="$1"
16+
shift
17+
fi
1418

1519
if [ -n "$PACKAGE" ]; then
1620
PACKAGE_NAME=${PACKAGE##*/}
1721
set -ex
1822
bazel run --ui_event_filters=-info --run_under="cd $(pwd) &&" @apex//tools/repo:repo.fix -- \
23+
$CHECKER \
1924
//$PACKAGE:all
2025
else
2126
echo "Error: can't find package for $FILE_PATH file."

0 commit comments

Comments
 (0)