bazel: support module (#49372)
This commit is contained in:
2
.github/licenserc.yml
vendored
2
.github/licenserc.yml
vendored
@ -16,6 +16,8 @@ header:
|
||||
- "**/BUILD.bazel"
|
||||
- "WORKSPACE"
|
||||
- "WORKSPACE.patchgo"
|
||||
- "MODULE.bazel"
|
||||
- "MODULE.bazel.lock"
|
||||
- ".bazelrc"
|
||||
- "**/*.key"
|
||||
- "**/*.md"
|
||||
|
||||
6
MODULE.bazel
Normal file
6
MODULE.bazel
Normal file
@ -0,0 +1,6 @@
|
||||
###############################################################################
|
||||
# Bazel now uses Bzlmod by default to manage external dependencies.
|
||||
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
|
||||
#
|
||||
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
|
||||
###############################################################################
|
||||
1245
MODULE.bazel.lock
generated
Normal file
1245
MODULE.bazel.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -20,9 +20,9 @@
|
||||
# or to zero if all commands of the pipeline exit successfully.
|
||||
set -euo pipefail
|
||||
|
||||
before_checksum=`find . -type f \( -name *.bazel -o -name *.bzl \) -exec md5sum {} \;| sort -k 2`
|
||||
before_checksum=`find . -type f \( -name '*.bazel' -o -name '*.bzl' \) -exec md5sum {} \;| sort -k 2`
|
||||
make bazel_ci_prepare_rbe
|
||||
after_checksum=`find . -type f \( -name *.bazel -o -name *.bzl \) -exec md5sum {} \;| sort -k 2`
|
||||
after_checksum=`find . -type f \( -name '*.bazel' -o -name '*.bzl' \) -exec md5sum {} \;| sort -k 2`
|
||||
if [ "$before_checksum" != "$after_checksum" ]
|
||||
then
|
||||
echo "Please run \`make bazel_prepare\` to update \`.bazel\` files, or just apply the following git diff (run \`git apply -\` and paste following contents):"
|
||||
|
||||
@ -20,9 +20,9 @@
|
||||
# or to zero if all commands of the pipeline exit successfully.
|
||||
set -euo pipefail
|
||||
|
||||
before_checksum=`find . -type f \( -name *.bazel -o -name *.bzl \) -exec md5sum {} \;| sort -k 2`
|
||||
before_checksum=`find . -type f \( -name '*.bazel' -o -name '*.bzl' \) -exec md5sum {} \;| sort -k 2`
|
||||
make bazel_ci_prepare
|
||||
after_checksum=`find . -type f \( -name *.bazel -o -name *.bzl \) -exec md5sum {} \;| sort -k 2`
|
||||
after_checksum=`find . -type f \( -name '*.bazel' -o -name '*.bzl' \) -exec md5sum {} \;| sort -k 2`
|
||||
if [ "$before_checksum" != "$after_checksum" ]
|
||||
then
|
||||
echo "Please run \`make bazel_prepare\` to update \`.bazel\` files, or just apply the following git diff (run \`git apply -\` and paste following contents):"
|
||||
|
||||
Reference in New Issue
Block a user