Skip to content

Commit 8bf5bec

Browse files
committed
fix presubmit and echo
1 parent 7001c1c commit 8bf5bec

4 files changed

Lines changed: 4 additions & 7 deletions

File tree

.bcr/gazelle/presubmit.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,14 @@ bcr_test_module:
2727
platform: ${{ platform }}
2828
bazel: ${{ bazel }}
2929
shell_commands:
30+
# Add an empty line in case the bazelrc is missing a trailing newline
31+
- "echo '' >> .bazelrc"
3032
- "echo 'common --override_module=rules_python=' >> .bazelrc"
3133
- "bazel run //:gazelle_python_manifest.update"
3234
- "bazel run //:gazelle -- update"
3335
batch_commands:
36+
# Add an empty line in case the bazelrc is missing a trailing newline
37+
- "echo '' >> .bazelrc"
3438
- "echo common --override_module=rules_python= >> .bazelrc"
3539
- "bazel run //:gazelle_python_manifest.update"
3640
- "bazel run //:gazelle -- update"

examples/bzlmod/.bazelrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,3 @@ common:bazel7.x --incompatible_python_disallow_native_rules
2828
# See issue 3567. Disable implicit python zip creation.
2929
common --build_python_zip=false
3030
common --@rules_python//python/config_settings:build_python_zip=false
31-

gazelle/.bazelrc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,3 @@ common:bazel7.x --incompatible_python_disallow_native_rules
2020
# See issue 3567. Disable implicit python zip creation.
2121
common --build_python_zip=false
2222
common --@rules_python//python/config_settings:build_python_zip=false
23-
24-
# Empty newline
25-

gazelle/examples/bzlmod_build_file_generation/.bazelrc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,3 @@ common --override_module=rules_python=../../../
1818
# See issue 3567. Disable implicit python zip creation.
1919
common --build_python_zip=false
2020
common --@rules_python//python/config_settings:build_python_zip=false
21-
22-
# Empty newline
23-

0 commit comments

Comments
 (0)