Provide an ergonomic way to check code with all features #1337
Labels
domain: ci
Anything related to Vector's CI environment
domain: tests
Anything related to Vector's internal tests
type: task
Generic non-code related tasks
Before #1331
make check
was equivalent tocargo check --all --all-features --all-targets
.However, after #1331 the feature pairs
leveldb-plain
/leveldb-cmake
andrdkafka-plain
/rdkafka-cmake
became mutually exclusive. These pairs of mutually exclusive features needed to ensure that all dependencies forleveldb
andrdkafka
are correctly written toCargo.lock
, so that Vector can be built with--freeze
build flag. Cargo doesn't support defining mutually exclusive features yet (see rust-lang/cargo#2980), so the command inmake check
was changed tocargo check --all --all-targets
.It means that
docker
feature is not checked anymore whenmake check
is called, although it is still compiled in CI as part oftest-stable
.One approach is to change
check-code
target in theMakefile
to something likeHowever, this approach doesn't look like very elegant and there might be a better solution. I'd like to hear @LucioFranco's thoughts about this.
The text was updated successfully, but these errors were encountered: