From 275ca0e5c6a96e901becb3476fbc44a21967cdd0 Mon Sep 17 00:00:00 2001 From: wass3rw3rk <49894298+wass3rw3rk@users.noreply.github.com> Date: Fri, 22 Sep 2023 11:03:54 -0500 Subject: [PATCH] chore(license): update source code headers + copyright year --- .github/README.md | 4 ++-- .golangci.yml | 4 +--- .vela/template.yml | 4 +--- Dockerfile | 4 +--- LICENSE | 2 +- Makefile | 4 +--- cmd/vela-git/build.go | 4 +--- cmd/vela-git/build_test.go | 4 +--- cmd/vela-git/command.go | 4 +--- cmd/vela-git/command_test.go | 4 +--- cmd/vela-git/main.go | 6 ++---- cmd/vela-git/netrc.go | 4 +--- cmd/vela-git/netrc_test.go | 4 +--- cmd/vela-git/plugin.go | 4 +--- cmd/vela-git/plugin_test.go | 4 +--- cmd/vela-git/repo.go | 4 +--- cmd/vela-git/repo_test.go | 4 +--- version/version.go | 4 +--- 18 files changed, 20 insertions(+), 52 deletions(-) diff --git a/.github/README.md b/.github/README.md index fafd4c8..bee951e 100644 --- a/.github/README.md +++ b/.github/README.md @@ -28,7 +28,7 @@ Please see our [support](SUPPORT.md) documentation for further instructions. ## Copyright and License ``` -Copyright (c) 2023 Target Brands, Inc. +Copyright 2019 Target Brands, Inc. ``` -[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) +[Apache License, Version 2.0](../LICENSE) diff --git a/.golangci.yml b/.golangci.yml index 97b6d15..44382f6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -35,9 +35,7 @@ linters-settings: # https://github.com/denis-tingaikin/go-header goheader: template: |- - Copyright (c) {{ YEAR }} Target Brands, Inc. All rights reserved. - - Use of this source code is governed by the LICENSE file in this repository. + SPDX-License-Identifier: Apache-2.0 # https://github.com/client9/misspell misspell: diff --git a/.vela/template.yml b/.vela/template.yml index 0d7cc3c..5fdae5f 100644 --- a/.vela/template.yml +++ b/.vela/template.yml @@ -1,6 +1,4 @@ -# Copyright (c) 2023 Target Brands, Inc. All rights reserved. -# -# Use of this source code is governed by the LICENSE file in this repository. +# SPDX-License-Identifier: Apache-2.0 ## Template Variables # - .image (default: "target/vela-git:latest") diff --git a/Dockerfile b/Dockerfile index 3966e87..b9a85ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,4 @@ -# Copyright (c) 2023 Target Brands, Inc. All rights reserved. -# -# Use of this source code is governed by the LICENSE file in this repository. +# SPDX-License-Identifier: Apache-2.0 ###################################################################### ## docker build --no-cache --target certs -t vela-git:certs . ## diff --git a/LICENSE b/LICENSE index aa8083a..1decd39 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright (c) 2023 Target Brands, Inc. + Copyright 2019 Target Brands, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/Makefile b/Makefile index 1e57725..9913c5b 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,4 @@ -# Copyright (c) 2023 Target Brands, Inc. All rights reserved. -# -# Use of this source code is governed by the LICENSE file in this repository. +# SPDX-License-Identifier: Apache-2.0 # capture the current date we build the application from BUILD_DATE = $(shell date +%Y-%m-%dT%H:%M:%SZ) diff --git a/cmd/vela-git/build.go b/cmd/vela-git/build.go index a1bbd12..63c26f1 100644 --- a/cmd/vela-git/build.go +++ b/cmd/vela-git/build.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-git/build_test.go b/cmd/vela-git/build_test.go index 9eefe8c..d2ed756 100644 --- a/cmd/vela-git/build_test.go +++ b/cmd/vela-git/build_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-git/command.go b/cmd/vela-git/command.go index a4f2076..9298d76 100644 --- a/cmd/vela-git/command.go +++ b/cmd/vela-git/command.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-git/command_test.go b/cmd/vela-git/command_test.go index 100b4ce..4da1ec3 100644 --- a/cmd/vela-git/command_test.go +++ b/cmd/vela-git/command_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-git/main.go b/cmd/vela-git/main.go index 21b1cf5..9be75f2 100644 --- a/cmd/vela-git/main.go +++ b/cmd/vela-git/main.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main @@ -39,7 +37,7 @@ func main() { app.Name = "vela-git" app.HelpName = "vela-git" app.Usage = "Vela Git plugin for cloning repositories" - app.Copyright = "Copyright (c) 2023 Target Brands, Inc. All rights reserved." + app.Copyright = "Copyright 2019 Target Brands, Inc. All rights reserved." app.Authors = []*cli.Author{ { Name: "Vela Admins", diff --git a/cmd/vela-git/netrc.go b/cmd/vela-git/netrc.go index a2a5ef9..581a7ac 100644 --- a/cmd/vela-git/netrc.go +++ b/cmd/vela-git/netrc.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-git/netrc_test.go b/cmd/vela-git/netrc_test.go index ba3e8b4..a926f8d 100644 --- a/cmd/vela-git/netrc_test.go +++ b/cmd/vela-git/netrc_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-git/plugin.go b/cmd/vela-git/plugin.go index 36e4f1b..4bda1ae 100644 --- a/cmd/vela-git/plugin.go +++ b/cmd/vela-git/plugin.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-git/plugin_test.go b/cmd/vela-git/plugin_test.go index 079b80a..11ab3e5 100644 --- a/cmd/vela-git/plugin_test.go +++ b/cmd/vela-git/plugin_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-git/repo.go b/cmd/vela-git/repo.go index b741e29..67a9a0f 100644 --- a/cmd/vela-git/repo.go +++ b/cmd/vela-git/repo.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-git/repo_test.go b/cmd/vela-git/repo_test.go index de6abb7..c097245 100644 --- a/cmd/vela-git/repo_test.go +++ b/cmd/vela-git/repo_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/version/version.go b/version/version.go index e6003a7..3777217 100644 --- a/version/version.go +++ b/version/version.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package version