From 93440dc141f613ce16561b449d3986ba035c7679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Fri, 15 Sep 2023 17:08:34 +0200 Subject: [PATCH] agent: Ensure GENERATED_CODE is a dep of `make test` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise `make test` will fail with: ``` error[E0583]: file not found for module `version` ``` Fixes: #7974 -- part 0 Signed-off-by: Fabiano FidĂȘncio (cherry picked from commit ec826f328f88a1ff665c37381ada069eec337e65) --- src/agent/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/Makefile b/src/agent/Makefile index ba065b4d0..a47e69911 100644 --- a/src/agent/Makefile +++ b/src/agent/Makefile @@ -140,7 +140,7 @@ vendor: #TARGET test: run cargo tests -test: +test: $(GENERATED_FILES) @cargo test --all --target $(TRIPLE) $(EXTRA_RUSTFEATURES) -- --nocapture ##TARGET check: run test