File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1818# `--deleted_packages` flag.
1919
2020set -euo pipefail
21- set -x
2221
2322DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null 2>&1 && pwd) "
2423ROOT_DIR=" $DIR /.."
@@ -40,7 +39,9 @@ found_packages() {
4039# Update .bazelrc
4140update_bazelrc () {
4241 local packages
43- packages=$( found_packages | sort -u)
42+ # Set LC_COLLATE so that "/" sorts before "_", which makes
43+ # for slightly nicer ordering with file paths
44+ packages=$( found_packages | LC_COLLATE=C sort | uniq)
4445
4546 local start_marker=" # GENERATED_DELETED_PACKAGES_START"
4647 local end_marker=" # GENERATED_DELETED_PACKAGES_END"
@@ -53,7 +54,6 @@ update_bazelrc() {
5354 sed " /$start_marker /q" " $BAZELRC " > " $tmpfile "
5455
5556 # Write the generated packages
56- echo " $start_marker " >> " $tmpfile "
5757 for pkg in $packages ; do
5858 echo " common --deleted_packages=$pkg " >> " $tmpfile "
5959 done
You can’t perform that action at this time.
0 commit comments