Skip to content

Commit

Permalink
Merge pull request #1699 from Affan-7/makefile-go-get-tool
Browse files Browse the repository at this point in the history
fix(build): add `go-get-tool` function in makefile of KubeArmorOperator
  • Loading branch information
daemon1024 authored Jan 10, 2025
2 parents 467a869 + 004ef4c commit ca59e4a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/KubeArmorOperator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ endif
SHELL = /usr/bin/env bash -o pipefail
.SHELLFLAGS = -ec

# Define a function to download a go tool if it is not installed.
define go-get-tool
@[ -f $(1) ] || { \
set -e; \
echo "Downloading $(2)" ;\
go install $(2) ;\
}
endef

.PHONY: all
all: get snitch kubearmor-operator

Expand Down

0 comments on commit ca59e4a

Please sign in to comment.