From 04fca1908fd3a686b308bdf7e0c00594c0152f4b Mon Sep 17 00:00:00 2001 From: Roey Berman Date: Tue, 19 Nov 2024 06:29:02 -0800 Subject: [PATCH] Format imports and add license --- Makefile | 2 +- cmd/tools/test-runner/main.go | 22 ++++++++++++++++++++++ go.mod | 2 +- tools/testrunner/testrunner.go | 22 ++++++++++++++++++++++ tools/testrunner/testrunner_test.go | 22 ++++++++++++++++++++++ 5 files changed, 68 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a18afd0a629..bbb21291220 100644 --- a/Makefile +++ b/Makefile @@ -163,7 +163,7 @@ $(GOLANGCI_LINT): $(LOCALBIN) $(call go-install-tool,$(GOLANGCI_LINT),github.com/golangci/golangci-lint/cmd/golangci-lint,$(GOLANGCI_LINT_VERSION)) # Don't get confused, there is a single linter called gci, which is a part of the mega linter we use is called golangci-lint. -GCI_VERSION := v0.13.4 +GCI_VERSION := v0.13.5 GCI := $(LOCALBIN)/gci-$(GCI_VERSION) $(GCI): $(LOCALBIN) $(call go-install-tool,$(GCI),github.com/daixiang0/gci,$(GCI_VERSION)) diff --git a/cmd/tools/test-runner/main.go b/cmd/tools/test-runner/main.go index 68e51529f09..a0c580f65db 100644 --- a/cmd/tools/test-runner/main.go +++ b/cmd/tools/test-runner/main.go @@ -1,3 +1,25 @@ +// The MIT License +// +// Copyright (c) 2024 Temporal Technologies Inc. All rights reserved. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + package main import ( diff --git a/go.mod b/go.mod index 7326e911bb4..7b2ed68baaa 100644 --- a/go.mod +++ b/go.mod @@ -26,6 +26,7 @@ require ( github.com/iancoleman/strcase v0.3.0 github.com/jackc/pgx/v5 v5.6.0 github.com/jmoiron/sqlx v1.3.4 + github.com/jstemmer/go-junit-report/v2 v2.1.0 github.com/lib/pq v1.10.9 github.com/mitchellh/mapstructure v1.5.0 github.com/nexus-rpc/sdk-go v0.0.11 @@ -113,7 +114,6 @@ require ( github.com/jackc/puddle/v2 v2.2.1 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/josharian/intern v1.0.0 // indirect - github.com/jstemmer/go-junit-report/v2 v2.1.0 // indirect github.com/klauspost/compress v1.17.9 // indirect github.com/konsorten/go-windows-terminal-sequences v1.0.1 // indirect github.com/mailru/easyjson v0.7.7 // indirect diff --git a/tools/testrunner/testrunner.go b/tools/testrunner/testrunner.go index 20c22a0db86..a15a0387045 100644 --- a/tools/testrunner/testrunner.go +++ b/tools/testrunner/testrunner.go @@ -1,3 +1,25 @@ +// The MIT License +// +// Copyright (c) 2024 Temporal Technologies Inc. All rights reserved. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + package testrunner import ( diff --git a/tools/testrunner/testrunner_test.go b/tools/testrunner/testrunner_test.go index 12da5475ae2..ff00152ed34 100644 --- a/tools/testrunner/testrunner_test.go +++ b/tools/testrunner/testrunner_test.go @@ -1,3 +1,25 @@ +// The MIT License +// +// Copyright (c) 2024 Temporal Technologies Inc. All rights reserved. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + package testrunner import (