fix: strip v prefix from version in make install path #3

Merged
benvin merged 3 commits from benvin/fix-make-install-version into main 2026-06-21 22:34:40 +10:00
4 changed files with 22 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
when:
- event: [push, pull_request]
- event: pull_request
steps:
- name: build
+18
View File
@@ -0,0 +1,18 @@
when:
- event: pull_request
steps:
- name: pre-commit
image: git.unkin.net/unkin/almalinux9-gobuilder:20260606
commands:
- uvx pre-commit run --all-files
backend_options:
kubernetes:
serviceAccountName: default
resources:
requests:
memory: 512Mi
cpu: 1
limits:
memory: 2Gi
cpu: 2
+1 -1
View File
@@ -1,5 +1,5 @@
when:
- event: [push, pull_request]
- event: pull_request
steps:
- name: lint
+2 -1
View File
@@ -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/')