Skip to content

Commit 15ad4c2

Browse files
author
sapcc-bot
committed
Run go-makefile-maker
1 parent 603f004 commit 15ad4c2

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Makefile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company
77
# SPDX-License-Identifier: Apache-2.0
88

9-
MAKEFLAGS=--warn-undefined-variables
109
# /bin/sh is dash on Debian which does not support all features of ash/bash
1110
# to fix that we use /bin/bash only on Debian to not break Alpine
1211
ifneq (,$(wildcard /etc/os-release)) # check file existence
@@ -56,11 +55,11 @@ install-setup-envtest: FORCE
5655

5756
# To add additional flags or values, specify the variable in the environment, e.g. `GO_BUILDFLAGS='-tags experimental' make`.
5857
# To override the default flags or values, specify the variable on the command line, e.g. `make GO_BUILDFLAGS='-tags experimental'`.
59-
GO_BUILDFLAGS +=
60-
GO_LDFLAGS +=
61-
GO_TESTFLAGS +=
62-
GO_TESTENV +=
63-
GO_BUILDENV +=
58+
GO_BUILDFLAGS := $(GO_BUILDFLAGS)
59+
GO_LDFLAGS := $(GO_LDFLAGS)
60+
GO_TESTFLAGS := $(GO_TESTFLAGS)
61+
GO_TESTENV := $(GO_TESTENV)
62+
GO_BUILDENV := $(GO_BUILDENV)
6463

6564
# which packages to test with test runner
6665
GO_TESTPKGS := $(shell go list -f '{{if or .TestGoFiles .XTestGoFiles}}{{.ImportPath}}{{end}}' ./...)
@@ -151,9 +150,11 @@ clean: FORCE
151150
git clean -dxf build
152151

153152
vars: FORCE
153+
@printf "GO_BUILDENV=$(GO_BUILDENV)\n"
154154
@printf "GO_BUILDFLAGS=$(GO_BUILDFLAGS)\n"
155155
@printf "GO_COVERPKGS=$(GO_COVERPKGS)\n"
156156
@printf "GO_LDFLAGS=$(GO_LDFLAGS)\n"
157+
@printf "GO_TESTENV=$(GO_TESTENV)\n"
157158
@printf "GO_TESTFLAGS=$(GO_TESTFLAGS)\n"
158159
@printf "GO_TESTPKGS=$(GO_TESTPKGS)\n"
159160
@printf "MAKE=$(MAKE)\n"

shell.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ mkShell {
1313
golangci-lint
1414
gotools # goimports
1515
kubernetes-controller-tools # controller-gen
16+
renovate
1617
reuse
1718
setup-envtest
1819
# keep this line if you use bash

0 commit comments

Comments
 (0)