-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure the update-dependencies script runs cleanly
- Loading branch information
Showing
3 changed files
with
7 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,13 @@ | ||
#!/usr/bin/env bash | ||
set -eufo pipefail | ||
|
||
go mod tidy | ||
# Update the Java bits | ||
REPIN=1 bazel run @contrib_rules_jvm_deps//:pin | ||
REPIN=1 bazel run @contrib_rules_jvm_tests//:pin | ||
bazel run //tools:freeze-deps | ||
|
||
# Work around https://github.com/bazelbuild/bazel-gazelle/issues/999 | ||
# Ideally we would delete the below block and replace it with this commented command: | ||
#bazel run //:gazelle_go -- update-repos \ | ||
# -from_file=go.mod \ | ||
# -prune \ | ||
# -to_macro "third_party/go/repositories.bzl%go_deps" | ||
GO_DEPS_FILE="third_party/go/repositories.bzl" | ||
bazel run //:gazelle -- update-repos -from_file=go.mod -prune -to_macro "${GO_DEPS_FILE}%go_deps" | ||
sed '/^$/d' "$GO_DEPS_FILE" >"${GO_DEPS_FILE}.new" | ||
mv "${GO_DEPS_FILE}.new" "$GO_DEPS_FILE" | ||
# And now the Go bits | ||
bazel run @io_bazel_rules_go//go -- mod tidy | ||
bazel run //:buildifier | ||
|
||
|
||
REPIN=1 bazel run @contrib_rules_jvm_tests//:pin | ||
./tools/freeze-deps.py | ||
|
||
./tools/format.sh |