From b02ff6e0ea6b35edc2290a4ff7b37d012f4ed761 Mon Sep 17 00:00:00 2001 From: Artem Bortnikov Date: Thu, 5 Dec 2024 10:18:49 +0200 Subject: [PATCH] add license Signed-off-by: Artem Bortnikov --- .reuse/dep5 | 3 +++ Makefile | 2 ++ api/proto/common/v1alpha1/api.proto | 3 +++ api/proto/serverbios/v1alpha1/api.proto | 3 +++ cmd/fmiserver/main.go | 3 +++ fmi/client_grpc.go | 3 +++ fmi/client_http.go | 3 +++ fmi/fmi.go | 3 +++ fmi/runner_default.go | 3 +++ fmi/runner_fake.go | 3 +++ fmi/server_grpc.go | 3 +++ fmi/server_http.go | 3 +++ 12 files changed, 35 insertions(+) diff --git a/.reuse/dep5 b/.reuse/dep5 index e085d4a..35267b6 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -20,6 +20,9 @@ Files: mkdocs.yml go.sum hack/* + api/gen/* + api/proto/buf.yaml + buf.gen.yaml Copyright: 2024 SAP SE or an SAP affiliate company and IronCore contributors License: Apache-2.0 diff --git a/Makefile b/Makefile index 0f64112..c443bef 100644 --- a/Makefile +++ b/Makefile @@ -121,10 +121,12 @@ cleandocs: ## Remove all local mkdocs Docker images (cleanup). .PHONY: add-license add-license: addlicense ## Add license headers to all go files. find . -name '*.go' -exec $(ADDLICENSE) -f hack/license-header.txt {} + + find . -name '*.proto' -exec $(ADDLICENSE) -f hack/license-header.txt {} + .PHONY: check-license check-license: addlicense ## Check that every file has a license header present. find . -name '*.go' -exec $(ADDLICENSE) -check -c 'IronCore authors' {} + + find . -name '*.proto' -exec $(ADDLICENSE) -check -c 'IronCore authors' {} + .PHONY: check check: generate manifests add-license fmt lint test # Generate manifests, code, lint, add licenses, test diff --git a/api/proto/common/v1alpha1/api.proto b/api/proto/common/v1alpha1/api.proto index 0fdf3e1..537b85c 100644 --- a/api/proto/common/v1alpha1/api.proto +++ b/api/proto/common/v1alpha1/api.proto @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package v1alpha1; diff --git a/api/proto/serverbios/v1alpha1/api.proto b/api/proto/serverbios/v1alpha1/api.proto index 6eb2083..009a7f4 100644 --- a/api/proto/serverbios/v1alpha1/api.proto +++ b/api/proto/serverbios/v1alpha1/api.proto @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package v1alpha1; diff --git a/cmd/fmiserver/main.go b/cmd/fmiserver/main.go index bb6fe88..2375a74 100644 --- a/cmd/fmiserver/main.go +++ b/cmd/fmiserver/main.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/fmi/client_grpc.go b/fmi/client_grpc.go index 05035b1..74463db 100644 --- a/fmi/client_grpc.go +++ b/fmi/client_grpc.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 + package fmi import ( diff --git a/fmi/client_http.go b/fmi/client_http.go index 9a16fa9..a5db20f 100644 --- a/fmi/client_http.go +++ b/fmi/client_http.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 + package fmi import ( diff --git a/fmi/fmi.go b/fmi/fmi.go index 7facd95..db58b65 100644 --- a/fmi/fmi.go +++ b/fmi/fmi.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 + package fmi import ( diff --git a/fmi/runner_default.go b/fmi/runner_default.go index 59ea5d1..8b8eb8d 100644 --- a/fmi/runner_default.go +++ b/fmi/runner_default.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 + package fmi import ( diff --git a/fmi/runner_fake.go b/fmi/runner_fake.go index 1161ee1..59a6aeb 100644 --- a/fmi/runner_fake.go +++ b/fmi/runner_fake.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 + package fmi import ( diff --git a/fmi/server_grpc.go b/fmi/server_grpc.go index 5de4724..d89bd2a 100644 --- a/fmi/server_grpc.go +++ b/fmi/server_grpc.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 + package fmi import ( diff --git a/fmi/server_http.go b/fmi/server_http.go index ca0c0ad..164cb78 100644 --- a/fmi/server_http.go +++ b/fmi/server_http.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 + package fmi import (