From 6446997a12f21610490d78bc0610cc1441e570fa Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sun, 21 Jun 2026 22:07:47 +1000 Subject: [PATCH] fix: strip v prefix from version in make install path Terraform plugin directory expects bare version numbers (e.g. 0.0.2) but git tags use v-prefixed versions (e.g. v0.0.2). --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5753bcf..308f327 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,8 @@ BINARY := terraform-provider-artifactapi VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo "0.0.0-dev") OS_ARCH := linux_amd64 -INSTALL_DIR := ~/.terraform.d/plugins/git.unkin.net/unkin/artifactapi/$(VERSION)/$(OS_ARCH) +INSTALL_VERSION := $(shell echo $(VERSION) | sed 's/^v//') +INSTALL_DIR := ~/.terraform.d/plugins/git.unkin.net/unkin/artifactapi/$(INSTALL_VERSION)/$(OS_ARCH) GO_VERSION_REQUIRED := 1.23 GO_VERSION_ACTUAL := $(shell go version | sed 's/go version go\([0-9]*\.[0-9]*\).*/\1/')