From cf7af97574243bbc649744050ead85d76d8f5b9c Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Thu, 6 Oct 2022 19:48:31 +0200 Subject: [PATCH] chore add licenses --- Makefile | 15 +++++++++++++++ api.go | 3 +++ api_test.go | 3 +++ benchmark_test.go | 3 +++ change.go | 3 +++ change_test.go | 3 +++ constants.go | 3 +++ env.go | 3 +++ env_test.go | 3 +++ error.go | 3 +++ error_test.go | 3 +++ export.go | 3 +++ export_test.go | 3 +++ file.go | 3 +++ file_test.go | 3 +++ filesystem.go | 3 +++ filesystem_test.go | 3 +++ flags.go | 3 +++ flags_test.go | 3 +++ format.go | 3 +++ format_test.go | 3 +++ http-handler.go | 3 +++ http-handler_test.go | 3 +++ import.go | 3 +++ import_test.go | 3 +++ integration_test.go | 3 +++ properties.go | 3 +++ properties_test.go | 3 +++ settings.go | 3 +++ settings_test.go | 3 +++ stream.go | 3 +++ stream_test.go | 3 +++ tags.go | 3 +++ tags_test.go | 3 +++ watch.go | 3 +++ watch_test.go | 3 +++ 36 files changed, 120 insertions(+) diff --git a/Makefile b/Makefile index e4f9d61..61f670d 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,7 @@ +## Copyright 2022 schukai GmbH. All rights reserved. +## Use of this source code is governed by a AGPL-3.0 +## license that can be found in the LICENSE file. + PROJECT_ROOT:=$(dir $(realpath $(lastword $(MAKEFILE_LIST)))) THIS_MAKEFILE:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)) THIS_MAKEFILE_PATH:=$(PROJECT_ROOT)$(THIS_MAKEFILE) @@ -137,5 +141,16 @@ endif fetch-licenses: go-licenses save $(GO_CURRENT_MODULE) --ignore gitlab.schukai.com --force --save_path $(PROJECT_ROOT)licenses/ ; cd - +# https://spdx.github.io/spdx-spec/v2.3/SPDX-license-list/ +ADDLICENSE_BIN ?= addlicense +ifeq ($(shell command -v $(ADDLICENSE_BIN) 2> /dev/null),) + $(shell go install github.com/google/addlicense@latest) + EXECUTABLES = $(EXECUTABLES:-) $(ADDLICENSE_BIN); +endif + +.PHONY: add-licenses +## Add license headers to all go files +add-licenses: + addlicense -c "schukai GmbH" -s -l "AGPL-3.0-or-later" ./*.go diff --git a/api.go b/api.go index 86cdfb1..b8e79fd 100644 --- a/api.go +++ b/api.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import "github.com/imdario/mergo" diff --git a/api_test.go b/api_test.go index 9a0c4ee..4bce996 100644 --- a/api_test.go +++ b/api_test.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/benchmark_test.go b/benchmark_test.go index 9e55e52..094f9d7 100644 --- a/benchmark_test.go +++ b/benchmark_test.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/change.go b/change.go index d68aad6..d031649 100644 --- a/change.go +++ b/change.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/change_test.go b/change_test.go index 7e1b661..0d4e8e7 100644 --- a/change_test.go +++ b/change_test.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/constants.go b/constants.go index eb3eaff..8506736 100644 --- a/constants.go +++ b/constants.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration const fileName = "config" diff --git a/env.go b/env.go index 871e4fe..87dd684 100644 --- a/env.go +++ b/env.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/env_test.go b/env_test.go index 7847f14..9dbf42d 100644 --- a/env_test.go +++ b/env_test.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/error.go b/error.go index 0addae3..a02a0d6 100644 --- a/error.go +++ b/error.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/error_test.go b/error_test.go index e6c022b..4ba827a 100644 --- a/error_test.go +++ b/error_test.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/export.go b/export.go index 269817b..82ed43d 100644 --- a/export.go +++ b/export.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/export_test.go b/export_test.go index 8d87c13..2133e86 100644 --- a/export_test.go +++ b/export_test.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/file.go b/file.go index 8685fd2..3870c9c 100644 --- a/file.go +++ b/file.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/file_test.go b/file_test.go index 677d43e..4b05aa2 100644 --- a/file_test.go +++ b/file_test.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/filesystem.go b/filesystem.go index 8e8d4cb..302bff4 100644 --- a/filesystem.go +++ b/filesystem.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/filesystem_test.go b/filesystem_test.go index f0a061c..a236696 100644 --- a/filesystem_test.go +++ b/filesystem_test.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import "testing" diff --git a/flags.go b/flags.go index c9d75b8..44dcfb7 100644 --- a/flags.go +++ b/flags.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/flags_test.go b/flags_test.go index 435bd79..195180c 100644 --- a/flags_test.go +++ b/flags_test.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/format.go b/format.go index b7f10a4..e3f3e31 100644 --- a/format.go +++ b/format.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration type Format int diff --git a/format_test.go b/format_test.go index aa2a876..a14897b 100644 --- a/format_test.go +++ b/format_test.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import "testing" diff --git a/http-handler.go b/http-handler.go index c8f9bd1..058846c 100644 --- a/http-handler.go +++ b/http-handler.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/http-handler_test.go b/http-handler_test.go index 9e65107..2f84e6f 100644 --- a/http-handler_test.go +++ b/http-handler_test.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/import.go b/import.go index 82238ed..687869a 100644 --- a/import.go +++ b/import.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/import_test.go b/import_test.go index f908f49..9502c36 100644 --- a/import_test.go +++ b/import_test.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/integration_test.go b/integration_test.go index 60ff24a..0f0337d 100644 --- a/integration_test.go +++ b/integration_test.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/properties.go b/properties.go index 0acc5db..bc783ee 100644 --- a/properties.go +++ b/properties.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/properties_test.go b/properties_test.go index 499b04f..b6dbc8b 100644 --- a/properties_test.go +++ b/properties_test.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/settings.go b/settings.go index 1828db4..dfbbce0 100644 --- a/settings.go +++ b/settings.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/settings_test.go b/settings_test.go index b7e1387..c0326e4 100644 --- a/settings_test.go +++ b/settings_test.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration type ConfigStruct1 struct { diff --git a/stream.go b/stream.go index 035796b..4c3f77c 100644 --- a/stream.go +++ b/stream.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import "io" diff --git a/stream_test.go b/stream_test.go index 9914033..44db5df 100644 --- a/stream_test.go +++ b/stream_test.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/tags.go b/tags.go index c3b964a..3142e90 100644 --- a/tags.go +++ b/tags.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/tags_test.go b/tags_test.go index 256fd77..d21da60 100644 --- a/tags_test.go +++ b/tags_test.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/watch.go b/watch.go index 818c03b..3d7ad7e 100644 --- a/watch.go +++ b/watch.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( diff --git a/watch_test.go b/watch_test.go index ea0b06f..76aa310 100644 --- a/watch_test.go +++ b/watch_test.go @@ -1,3 +1,6 @@ +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later + package configuration import ( -- GitLab