Skip to content

Commit 6b44332

Browse files
committed
Update rust-deps target
- Include rustfmt, rust, and clippy - These are required for the rust tasks to work - Add comment for brew
1 parent f741424 commit 6b44332

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Makefile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,19 @@ konflux-all: konflux-filter-unused-redhat-repos konflux-update-tekton-task-refs
6666
# Rust build targets
6767

6868
.PHONY: rust-deps
69-
rust-deps: ## Install Rust build dependencies (protobuf-compiler)
69+
rust-deps: ## Install Rust build dependencies (protobuf-compiler, rustfmt, rust, clippy)
7070
@echo "Installing Rust build dependencies..."
7171
@if command -v apt >/dev/null 2>&1; then \
72-
sudo apt update && sudo apt install -y protobuf-compiler; \
72+
sudo apt update && sudo apt install -y protobuf-compiler rustfmt rust clippy; \
7373
elif command -v yum >/dev/null 2>&1; then \
74-
sudo yum install -y protobuf-compiler; \
74+
sudo yum install -y protobuf-compiler rustfmt rust clippy; \
7575
elif command -v dnf >/dev/null 2>&1; then \
76-
sudo dnf install -y protobuf-compiler; \
76+
sudo dnf install -y protobuf-compiler rustfmt rust clippy; \
7777
elif command -v brew >/dev/null 2>&1; then \
78-
brew install protobuf; \
78+
# clippy and rustfmt are included with rust when installed via brew
79+
brew install protobuf rust; \
7980
else \
80-
echo "Warning: Could not detect package manager. Please install protobuf-compiler manually."; \
81+
echo "Warning: Could not detect package manager. Please install dependencies manually."; \
8182
fi
8283
@echo "Dependencies installed successfully."
8384

0 commit comments

Comments
 (0)