From 9944a3767002b8a24304fe6effd722f149c15aaf Mon Sep 17 00:00:00 2001 From: William Petit Date: Thu, 20 Apr 2023 13:57:40 +0200 Subject: [PATCH] chore: cache modd tool --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 20ab2e1..e2829a2 100644 --- a/Makefile +++ b/Makefile @@ -15,8 +15,8 @@ SHELL := bash build: build-edge-cli build-client-sdk-test-app -watch: - go run -mod=readonly github.com/cortesi/modd/cmd/modd@latest +watch: tools/modd/bin/modd + tools/modd/bin/modd .PHONY: test test: test-go @@ -101,4 +101,8 @@ tools/gitea-release/bin/gitea-release.sh: tools/yq/bin/yq: mkdir -p tools/yq/bin curl -L --output tools/yq/bin/yq https://github.com/mikefarah/yq/releases/download/v4.31.1/yq_linux_amd64 - chmod +x tools/yq/bin/yq \ No newline at end of file + chmod +x tools/yq/bin/yq + +tools/modd/bin/modd: + mkdir -p tools/modd/bin + GOBIN=$(PWD)/tools/modd/bin go install -mod=readonly github.com/cortesi/modd/cmd/modd@latest \ No newline at end of file