File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 4
4
# Build settings
5
5
TYK_VERSION ?= v5.8.0
6
6
# Options: linux, darwin
7
- TARGET_OS ?= darwin
7
+ TARGET_OS ?= $( shell go env GOOS)
8
8
# Options: amd64, arm64
9
- TARGET_ARCH ?= arm64
9
+ TARGET_ARCH ?= $( shell go env GOARCH)
10
10
11
11
# Version for https://github.com/kelindar/search.git
12
12
SEARCH_VERSION := v0.4.0
@@ -16,7 +16,7 @@ SEARCH_LIB ?= libllama_go.dylib
16
16
PLUGIN_NAME := agent-bridge-plugin
17
17
FULL_PLUGIN_NAME := $(PLUGIN_NAME ) _$(TYK_VERSION ) _$(TARGET_OS ) _$(TARGET_ARCH )
18
18
TYK_COMPILER_IMAGE_PLATFORM := linux/amd64
19
- TYK_COMPILER_IMAGE := tykio/tyk-plugin-compiler:v $(TYK_VERSION )
19
+ TYK_COMPILER_IMAGE := tykio/tyk-plugin-compiler:$(TYK_VERSION )
20
20
21
21
PROJECT_ROOT := $(dir $(abspath $(lastword $(MAKEFILE_LIST ) ) ) )
22
22
REQUIRED_BINS := docker go git curl jq cmake
@@ -41,7 +41,7 @@ build_release:
41
41
docker run --rm \
42
42
--platform=$(TYK_COMPILER_IMAGE_PLATFORM ) \
43
43
--mount type=bind,src=./plugins,dst=/plugin-source \
44
- $(TYK_COMPILER_IMAGE ) $(PLUGIN_NAME ) _$$(date +%s ) $( TARGET_OS ) $( TARGET_ARCH )
44
+ $(TYK_COMPILER_IMAGE ) $(PLUGIN_NAME ) _$$(date +%s )
45
45
46
46
test : search-release-$(SEARCH_VERSION ) /build/lib/$(SEARCH_LIB )
47
47
$(LIB_ENV_VAR ) =$(PROJECT_ROOT ) /search-release-$(SEARCH_VERSION ) /build/lib go test -v ./plugins
You can’t perform that action at this time.
0 commit comments