Skip to content

Commit 27db417

Browse files
committed
Set TKN_BINARY_URL in Makefile
To make it easier to override the TKN_BINARY_URL, set it in the Makefile
1 parent f2db9f7 commit 27db417

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ TARGET_NAMESPACE=pipelines-as-code
22
GOLANGCI_LINT=golangci-lint
33
GOFUMPT=gofumpt
44
TKN_BINARY_NAME := tkn
5+
TKN_BINARY_URL := https://tekton.dev/docs/cli/\#installation
56
LDFLAGS=
67
OUTPUT_DIR=bin
78
GO = go
@@ -18,7 +19,7 @@ MD_FILES := $(shell find . -type f -regex ".*md" -not -regex '^./vendor/.*' -n
1819
ifeq ($(PAC_VERSION),)
1920
PAC_VERSION="$(shell git describe --tags --exact-match 2>/dev/null || echo nightly-`date +'%Y%m%d'`-`git rev-parse --short HEAD`)"
2021
endif
21-
FLAGS += -ldflags "-X github.com/openshift-pipelines/pipelines-as-code/pkg/params/version.Version=$(PAC_VERSION) $(LDFLAGS) -X github.com/openshift-pipelines/pipelines-as-code/pkg/params/settings.TknBinaryName=$(TKN_BINARY_NAME)"
22+
FLAGS += -ldflags "-X github.com/openshift-pipelines/pipelines-as-code/pkg/params/version.Version=$(PAC_VERSION) $(LDFLAGS) -X github.com/openshift-pipelines/pipelines-as-code/pkg/params/settings.TknBinaryName=$(TKN_BINARY_NAME) -X github.com/openshift-pipelines/pipelines-as-code/pkg/params/settings.TknBinaryURL=$(TKN_BINARY_URL)"
2223

2324

2425
all: $(OUTPUT_DIR)/pipelines-as-code-controller $(OUTPUT_DIR)/tkn-pac test

0 commit comments

Comments
 (0)