Skip to content

Commit afb5a3e

Browse files
Merge pull request #157 from SAP/update-year
update SPDX copyright year to 2026
2 parents 0066996 + 860a304 commit afb5a3e

File tree

36 files changed

+48
-35
lines changed

36 files changed

+48
-35
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,7 +7,7 @@ SPDX-PackageComment = "The code in this project may include calls to APIs (\"API
77
[[annotations]]
88
path = "**"
99
precedence = "aggregate"
10-
SPDX-FileCopyrightText = "2024 SAP SE or an SAP affiliate company and redis-operator contributors"
10+
SPDX-FileCopyrightText = "2026 SAP SE or an SAP affiliate company and redis-operator contributors"
1111
SPDX-License-Identifier = "Apache-2.0"
1212

1313
[[annotations]]

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: 2024 SAP SE or an SAP affiliate company and redis-operator contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and redis-operator 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: 2024 SAP SE or an SAP affiliate company and redis-operator contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and redis-operator contributors
33
SPDX-License-Identifier: Apache-2.0
44
*/
55

api/v1alpha1/webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and redis-operator contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and redis-operator 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: 2024 SAP SE or an SAP affiliate company and redis-operator contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and redis-operator 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: 2024 SAP SE or an SAP affiliate company and redis-operator contributors
5+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and redis-operator contributors
66
SPDX-License-Identifier: Apache-2.0
77
*/
88

internal/transformer/object_transformer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and redis-operator contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and redis-operator 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: 2024 SAP SE or an SAP affiliate company and redis-operator contributors
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and redis-operator contributors
33
SPDX-License-Identifier: Apache-2.0
44
*/
55

0 commit comments

Comments
 (0)