Skip to content

Commit

Permalink
When building rust with clippy fail on warn
Browse files Browse the repository at this point in the history
CMK-19040

Change-Id: I81edd3ab4a843d0e8a2204abd55b025b1e39f370
  • Loading branch information
Owen Synge committed Jan 14, 2025
1 parent 7a23c32 commit 7475281
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ build:iwyu --@bazel_iwyu//:iwyu_mappings=//bazel/tools:iwyu_mappings
build:mypy --aspects //bazel/tools:aspects.bzl%mypy_aspect
build:mypy --output_groups=mypy

################################################################################
# Example: bazel build --config=clippy //packages/host/cmk-agent-ctl:all
################################################################################
build:clippy --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
build:clippy --output_groups=+clippy_checks
build:clippy --@rules_rust//:clippy_flags=-Dwarnings

# Turn off automatic capturing of environmental stuff like PATH - those will be set explicitly
# (see https://blog.aspect.build/bazelrc-flags)
build --incompatible_strict_action_env
Expand Down

0 comments on commit 7475281

Please sign in to comment.