Skip to content

Commit e027850

Browse files
Merge pull request #19 from SAP/update-year
update SPDX copyright year to 2026
2 parents f6e9f1a + 1c0444d commit e027850

File tree

10 files changed

+22
-9
lines changed

10 files changed

+22
-9
lines changed

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,16 @@ envtest: setup-envtest ## Install envtest binaries
114114
chmod -R u+w $$ENVTESTDIR && \
115115
rm -f $(LOCALBIN)/k8s/current && \
116116
ln -s $$ENVTESTDIR $(LOCALBIN)/k8s/current
117+
118+
# Set the year for SPDX header updates (default: current year)
119+
YEAR ?= $(shell date +%Y)
120+
121+
.PHONY: update-header-year
122+
update-header-year:
123+
# Go + TXT
124+
@find . -type f \( -name "*.go" -o -name "*.txt" \) -exec sed -i \
125+
's/^SPDX-FileCopyrightText: [0-9]\{4\}\( SAP SE or an SAP affiliate company and [^"]\+ contributors\)/SPDX-FileCopyrightText: $(YEAR)\1/' {} +
126+
127+
# TOML
128+
@find . -type f -name "*.toml" -exec sed -i \
129+
's/^SPDX-FileCopyrightText = "[0-9]\{4\}\( SAP SE or an SAP affiliate company and [^"]\+ contributors\)"/SPDX-FileCopyrightText = "$(YEAR)\1"/' {} +

REUSE.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ SPDX-PackageComment = "The code in this project may include calls to APIs (\"API
77
[[annotations]]
88
path = "**"
99
precedence = "aggregate"
10-
SPDX-FileCopyrightText = "2025 SAP SE or an SAP affiliate company and valkey-operator-cop contributors"
10+
SPDX-FileCopyrightText = "2026 SAP SE or an SAP affiliate company and valkey-operator-cop contributors"
1111
SPDX-License-Identifier = "Apache-2.0"
1212

api/v1alpha1/groupversion_info.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and valkey-operator-cop contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and valkey-operator-cop contributors
33
SPDX-License-Identifier: Apache-2.0
44
*/
55

api/v1alpha1/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and valkey-operator-cop contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and valkey-operator-cop contributors
33
SPDX-License-Identifier: Apache-2.0
44
*/
55

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hack/boilerplate.go.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/*
2-
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and valkey-operator-cop contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and valkey-operator-cop contributors
33
SPDX-License-Identifier: Apache-2.0
44
*/

hack/tools.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// +build tools
33

44
/*
5-
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and valkey-operator-cop contributors
5+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and valkey-operator-cop contributors
66
SPDX-License-Identifier: Apache-2.0
77
*/
88

internal/transformer/transformer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and valkey-operator-cop contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and valkey-operator-cop contributors
33
SPDX-License-Identifier: Apache-2.0
44
*/
55

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and valkey-operator-cop contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and valkey-operator-cop contributors
33
SPDX-License-Identifier: Apache-2.0
44
*/
55

pkg/operator/operator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and valkey-operator-cop contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and valkey-operator-cop contributors
33
SPDX-License-Identifier: Apache-2.0
44
*/
55

0 commit comments

Comments
 (0)