Fetch deps on first build

This commit is contained in:
Scott Yeager
2025-06-19 22:43:11 -07:00
parent 185c41425b
commit 58180364b4
2 changed files with 9 additions and 4 deletions

View File

@@ -2,9 +2,12 @@ PLUGIN_NAME = mycelium-cni
CNI_PLUGINS_DIR = /opt/cni/bin
CNI_CONFIG_DIR = /etc/cni/net.d
.PHONY: build install clean test
.PHONY: build install clean test deps
build:
deps:
go mod tidy
build: deps
go build -o $(PLUGIN_NAME) .
install: build