Skip to content

Commit cd9add8

Browse files
committed
Debug
Signed-off-by: Hidde Beydals <[email protected]>
1 parent ccadce6 commit cd9add8

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/e2e.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ jobs:
3131
run: make verify
3232
- name: Enable integration tests
3333
# Only run integration tests for main branch
34-
if: github.ref == 'refs/heads/main'
34+
# if: github.ref == 'refs/heads/main'
3535
run: |
36-
echo 'GO_TEST_ARGS="-tags integration"' >> $GITHUB_ENV
36+
echo 'GO_TAGS=integration' >> $GITHUB_ENV
3737
- name: Run tests
3838
run: make test
3939
- name: Setup Kubernetes
@@ -63,9 +63,9 @@ jobs:
6363
go-version: 1.17.x
6464
- name: Enable integration tests
6565
# Only run integration tests for main branch
66-
if: github.ref == 'refs/heads/main'
66+
# if: github.ref == 'refs/heads/main'
6767
run: |
68-
echo 'GO_TEST_ARGS="-tags integration"' >> $GITHUB_ENV
68+
echo 'GO_TAGS=integration' >> $GITHUB_ENV
6969
- name: Run tests
7070
run: make test
7171
- name: Prepare

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ BUILD_ARGS ?=
1212
# Architectures to build images for
1313
BUILD_PLATFORMS ?= linux/amd64,linux/arm64,linux/arm/v7
1414

15-
# Go test arguments, e.g. '-tags=integration'
16-
GO_TEST_ARGS ?=
15+
# Go additional tag arguments, e.g. 'integration'
16+
GO_TAGS ?=
1717

1818
# Produce CRDs that work back to Kubernetes 1.16
1919
CRD_OPTIONS ?= crd:crdVersions=v1
@@ -41,7 +41,7 @@ export CGO_CFLAGS=-I$(LIBGIT2_PATH)/include -I$(LIBGIT2_PATH)/include/openssl
4141
# The pkg-config command will yield warning messages until libgit2 is downloaded.
4242
ifeq ($(shell uname -s),Darwin)
4343
export CGO_LDFLAGS=$(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --libs --static --cflags libssh2 openssl libgit2 2>/dev/null)
44-
GO_STATIC_FLAGS=-ldflags "-s -w" -tags 'netgo,osusergo,static_build'
44+
GO_STATIC_FLAGS=-ldflags "-s -w" -tags 'netgo,osusergo,static_build$(addprefix ,,$(GO_TAGS))'
4545
else
4646
export PKG_CONFIG_PATH:=$(PKG_CONFIG_PATH):$(LIBGIT2_LIB64_PATH)/pkgconfig
4747
export LIBRARY_PATH:=$(LIBRARY_PATH):$(LIBGIT2_LIB64_PATH)
@@ -53,14 +53,14 @@ ifeq ($(shell uname -s),Linux)
5353
ifeq ($(shell uname -m),x86_64)
5454
# Linux x86_64 seem to be able to cope with the static libraries
5555
# by having only musl-dev installed, without the need of using musl toolchain.
56-
GO_STATIC_FLAGS=-ldflags "-s -w" -tags 'netgo,osusergo,static_build'
56+
GO_STATIC_FLAGS=-ldflags "-s -w" -tags 'netgo,osusergo,static_build$(addprefix ,,$(GO_TAGS))'
5757
else
5858
MUSL-PREFIX=$(BUILD_DIR)/musl/$(shell uname -m)-linux-musl-native/bin/$(shell uname -m)-linux-musl
5959
MUSL-CC=$(MUSL-PREFIX)-gcc
6060
export CC=$(MUSL-PREFIX)-gcc
6161
export CXX=$(MUSL-PREFIX)-g++
6262
export AR=$(MUSL-PREFIX)-ar
63-
GO_STATIC_FLAGS=-ldflags "-s -w -extldflags \"-static\"" -tags 'netgo,osusergo,static_build'
63+
GO_STATIC_FLAGS=-ldflags "-s -w -extldflags \"-static\"" -tags 'netgo,osusergo,static_build$(addprefix ,,$(GO_TAGS))'
6464
endif
6565
endif
6666

0 commit comments

Comments
 (0)