Skip to content

Commit 348262f

Browse files
author
sapcc-bot
committed
Run go-makefile-maker
1 parent bd4991b commit 348262f

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Makefile

Lines changed: 6 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
@@ -50,11 +49,11 @@ prepare-static-check: FORCE install-golangci-lint install-modernize install-shel
5049

5150
# To add additional flags or values, specify the variable in the environment, e.g. `GO_BUILDFLAGS='-tags experimental' make`.
5251
# To override the default flags or values, specify the variable on the command line, e.g. `make GO_BUILDFLAGS='-tags experimental'`.
53-
GO_BUILDFLAGS +=
54-
GO_LDFLAGS +=
55-
GO_TESTFLAGS +=
56-
GO_TESTENV +=
57-
GO_BUILDENV +=
52+
GO_BUILDFLAGS := $(GO_BUILDFLAGS)
53+
GO_LDFLAGS := $(GO_LDFLAGS)
54+
GO_TESTFLAGS := $(GO_TESTFLAGS)
55+
GO_TESTENV := $(GO_TESTENV)
56+
GO_BUILDENV := $(GO_BUILDENV)
5857

5958
# These definitions are overridable, e.g. to provide fixed version/commit values when
6059
# no .git directory is present or to provide a fixed build date for reproducibility.
@@ -149,6 +148,7 @@ vars: FORCE
149148
@printf "BININFO_BUILD_DATE=$(BININFO_BUILD_DATE)\n"
150149
@printf "BININFO_COMMIT_HASH=$(BININFO_COMMIT_HASH)\n"
151150
@printf "BININFO_VERSION=$(BININFO_VERSION)\n"
151+
@printf "GO_BUILDENV=$(GO_BUILDENV)\n"
152152
@printf "GO_BUILDFLAGS=$(GO_BUILDFLAGS)\n"
153153
@printf "GO_COVERPKGS=$(GO_COVERPKGS)\n"
154154
@printf "GO_LDFLAGS=$(GO_LDFLAGS)\n"

shell.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ mkShell {
1212
go_1_25
1313
golangci-lint
1414
gotools # goimports
15+
renovate
1516
reuse
1617
# keep this line if you use bash
1718
bashInteractive

0 commit comments

Comments
 (0)