From 14f1490a894f3cb2584ad998bc47c50a52d60f7a Mon Sep 17 00:00:00 2001 From: David May <49894298+wass3rw3rk@users.noreply.github.com> Date: Wed, 11 Oct 2023 09:13:42 -0500 Subject: [PATCH] chore(license): update source code headers + copyright year (#145) --- .github/README.md | 2 +- .golangci.yml | 4 +--- Dockerfile | 4 +--- LICENSE | 2 +- Makefile | 4 +--- cmd/vela-s3-cache/config.go | 4 +--- cmd/vela-s3-cache/config_test.go | 4 +--- cmd/vela-s3-cache/flush.go | 4 +--- cmd/vela-s3-cache/flush_test.go | 4 +--- cmd/vela-s3-cache/main.go | 6 ++---- cmd/vela-s3-cache/plugin.go | 4 +--- cmd/vela-s3-cache/plugin_test.go | 4 +--- cmd/vela-s3-cache/rebuild.go | 4 +--- cmd/vela-s3-cache/rebuild_test.go | 4 +--- cmd/vela-s3-cache/repo.go | 4 +--- cmd/vela-s3-cache/repo_test.go | 4 +--- cmd/vela-s3-cache/restore.go | 4 +--- cmd/vela-s3-cache/restore_test.go | 4 +--- version/version.go | 4 +--- 19 files changed, 20 insertions(+), 54 deletions(-) diff --git a/.github/README.md b/.github/README.md index 55c1d77..cd7126c 100644 --- a/.github/README.md +++ b/.github/README.md @@ -21,7 +21,7 @@ Please see our [support](SUPPORT.md) documentation for further instructions. ## Copyright and License ``` -Copyright (c) 2022 Target Brands, Inc. +Copyright 2020 Target Brands, Inc. ``` [![license](https://img.shields.io/crates/l/gl.svg)](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/Dockerfile b/Dockerfile index 6a7baa1..c97721e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,5 @@ -# Copyright (c) 2022 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-s3-cache:certs . ## diff --git a/LICENSE b/LICENSE index a2f9a29..d1e0818 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ Apache License same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright (c) 2022 Target Brands, Inc. + Copyright 2020 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 88d4571..7aeb0d9 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,4 @@ -# Copyright (c) 2022 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-s3-cache/config.go b/cmd/vela-s3-cache/config.go index 6840106..4e842aa 100644 --- a/cmd/vela-s3-cache/config.go +++ b/cmd/vela-s3-cache/config.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 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-s3-cache/config_test.go b/cmd/vela-s3-cache/config_test.go index 8ee7443..9ec580d 100644 --- a/cmd/vela-s3-cache/config_test.go +++ b/cmd/vela-s3-cache/config_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 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-s3-cache/flush.go b/cmd/vela-s3-cache/flush.go index 0d9118f..3a5ff0d 100644 --- a/cmd/vela-s3-cache/flush.go +++ b/cmd/vela-s3-cache/flush.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 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-s3-cache/flush_test.go b/cmd/vela-s3-cache/flush_test.go index 2a86e3f..341d444 100644 --- a/cmd/vela-s3-cache/flush_test.go +++ b/cmd/vela-s3-cache/flush_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 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-s3-cache/main.go b/cmd/vela-s3-cache/main.go index 26a6a2a..d7824f1 100644 --- a/cmd/vela-s3-cache/main.go +++ b/cmd/vela-s3-cache/main.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 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-s3-cache" app.HelpName = "vela-s3-cache" app.Usage = "Vela S3 cache plugin for managing a build cache in S3" - app.Copyright = "Copyright (c) 2022 Target Brands, Inc. All rights reserved." + app.Copyright = "Copyright 2020 Target Brands, Inc. All rights reserved." app.Authors = []*cli.Author{ { Name: "Vela Admins", diff --git a/cmd/vela-s3-cache/plugin.go b/cmd/vela-s3-cache/plugin.go index 621e1c4..8ef6fb4 100644 --- a/cmd/vela-s3-cache/plugin.go +++ b/cmd/vela-s3-cache/plugin.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 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-s3-cache/plugin_test.go b/cmd/vela-s3-cache/plugin_test.go index 583907b..67a321c 100644 --- a/cmd/vela-s3-cache/plugin_test.go +++ b/cmd/vela-s3-cache/plugin_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 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-s3-cache/rebuild.go b/cmd/vela-s3-cache/rebuild.go index 4fb9716..15935a6 100644 --- a/cmd/vela-s3-cache/rebuild.go +++ b/cmd/vela-s3-cache/rebuild.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 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-s3-cache/rebuild_test.go b/cmd/vela-s3-cache/rebuild_test.go index 7dd51e9..03c8f8e 100644 --- a/cmd/vela-s3-cache/rebuild_test.go +++ b/cmd/vela-s3-cache/rebuild_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 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-s3-cache/repo.go b/cmd/vela-s3-cache/repo.go index f7746f0..d6f3a61 100644 --- a/cmd/vela-s3-cache/repo.go +++ b/cmd/vela-s3-cache/repo.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 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-s3-cache/repo_test.go b/cmd/vela-s3-cache/repo_test.go index 049fb81..b487b62 100644 --- a/cmd/vela-s3-cache/repo_test.go +++ b/cmd/vela-s3-cache/repo_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 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-s3-cache/restore.go b/cmd/vela-s3-cache/restore.go index 4cad7ea..ab4bb03 100644 --- a/cmd/vela-s3-cache/restore.go +++ b/cmd/vela-s3-cache/restore.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 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-s3-cache/restore_test.go b/cmd/vela-s3-cache/restore_test.go index 0d36fc9..05f199e 100644 --- a/cmd/vela-s3-cache/restore_test.go +++ b/cmd/vela-s3-cache/restore_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 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 40b66f9..3777217 100644 --- a/version/version.go +++ b/version/version.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 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