Skip to content

Add missing manual tag to exclude from default build

Mikhail Mazurskiy requested to merge ash2k/add-missing-tag into master

make test runs bazel test -- //... where //... is target pattern to select targets to build and run tests. It matches all targets under the root of the project except for the targets tagged with the manual tag. See https://bazel.build/reference/test-encyclopedia#tag-conventions. We don't want to build targets that have linux+CGO (i.e. with race detector enabled) because that does not work on non-linux:

bazel test -- //...
INFO: Build option --test_env has changed, discarding analysis cache.
ERROR: /Volumes/ramdisk/ee85e5f34b46f84c839cbc56b75dd5db/external/io_bazel_rules_go/BUILD.bazel:86:17: While resolving toolchains for target @io_bazel_rules_go//:cgo_context_data: No matching toolchains found for types @bazel_tools//tools/cpp:toolchain_type.
To debug, rerun with --toolchain_resolution_debug='@bazel_tools//tools/cpp:toolchain_type'
If platforms or toolchains are a new concept for you, we'd encourage reading https://bazel.build/concepts/platforms-intro.
ERROR: Analysis of target '//cmd/kas:kas_index_debug' failed; build aborted: 

Merge request reports