Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid remote cache for clang format rules #9

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions update.template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,22 @@ bazel=$(bazel_bin)
bazel_query=("$bazel" query \
"--color=yes")

bazel_update=("$bazel" build \
# https://bazel.build/reference/be/common-definitions#common.tags
bazel_format=("$bazel" build \
"--color=yes" \
"--aspects=@@WORKSPACE@//:defs.bzl%clang_format_update_aspect" \
"--@@WORKSPACE@//:binary=@BINARY@" \
"--@@WORKSPACE@//:config=@CONFIG@" \
"--@@WORKSPACE@//:ignore=@IGNORE@" \
"--output_groups=report" \
"--modify_execution_info=ClangFormat=+no-remote-cache" \
--keep_going \
--verbose_failures)

bazel_check=("$bazel" build \
"--color=yes" \
"--aspects=@@WORKSPACE@//:defs.bzl%clang_format_aspect" \
"--@@WORKSPACE@//:binary=@BINARY@" \
"--@@WORKSPACE@//:config=@CONFIG@" \
"--@@WORKSPACE@//:ignore=@IGNORE@" \
"--output_groups=report" \
--keep_going \
--verbose_failures)
bazel_check=("${bazel_format[@]}" \
"--aspects=@@WORKSPACE@//:defs.bzl%clang_format_aspect")

bazel_update=("${bazel_format[@]}" \
"--aspects=@@WORKSPACE@//:defs.bzl%clang_format_update_aspect")

function stale
{
Expand Down