From 49ff495ed5572792b3dc5bdbbce989b613a83115 Mon Sep 17 00:00:00 2001 From: Patrick Decat Date: Thu, 3 Oct 2024 16:22:48 +0200 Subject: [PATCH] build: allow specifying STEAMPIPE_PLUGIN_VERSION for make install target --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2ae1f449..d46f3902 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ STEAMPIPE_INSTALL_DIR ?= ~/.steampipe +STEAMPIPE_PLUGIN_VERSION ?= latest BUILD_TAGS = netgo - install: - go build -o $(STEAMPIPE_INSTALL_DIR)/plugins/hub.steampipe.io/plugins/turbot/gcp@latest/steampipe-plugin-gcp.plugin -tags "${BUILD_TAGS}" *.go + go build -o $(STEAMPIPE_INSTALL_DIR)/plugins/hub.steampipe.io/plugins/turbot/gcp@$(STEAMPIPE_PLUGIN_VERSION)/steampipe-plugin-gcp.plugin -tags "${BUILD_TAGS}" *.go