Skip to content

Commit

Permalink
build: Insert flexible year into license header (#391
Browse files Browse the repository at this point in the history
* build: Insert flexible year into license header

* build: Insert correct license headers
  • Loading branch information
jimmidyson authored Apr 24, 2023
1 parent 94087d3 commit e66d30a
Show file tree
Hide file tree
Showing 111 changed files with 114 additions and 111 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

# To get started with Dependabot version updates, you'll need to specify which
Expand Down
2 changes: 1 addition & 1 deletion .github/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

changelog:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/backport.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

on:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/checks-macos.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

name: build-on-macos
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

name: checks
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

name: codeql
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conventional-label.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

name: conventional-release-labels
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conventional-pr-title.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

name: "conventional-pr-title"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-automation.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

name: dependabot
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/recover-secret.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

on: workflow_dispatch
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-please-main.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

name: release-please-main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-tag.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

name: release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stacked-prs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

name: stacked-prs
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

run:
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

project_name: mindthegap
Expand Down
5 changes: 4 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

repos:
Expand Down Expand Up @@ -77,13 +77,15 @@ repos:
- header.txt
- --comment-style
- //
- --use-current-year
- id: insert-license
name: License headers - YAML and Makefiles
stages: [commit]
files: (^Makefile|\.(ya?ml|mk))$
args:
- --license-filepath
- header.txt
- --use-current-year
- id: insert-license
name: License headers - Markdown
stages: [commit]
Expand All @@ -94,3 +96,4 @@ repos:
- header.txt
- --comment-style
- <!--|| -->
- --use-current-year
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

REPO_ROOT := $(CURDIR)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Copyright 2021 D2iQ, Inc. All rights reserved.
Copyright 2021-2023 D2iQ, Inc. All rights reserved.
SPDX-License-Identifier: Apache-2.0
-->

Expand Down
2 changes: 1 addition & 1 deletion archive/archive.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package archive
Expand Down
2 changes: 1 addition & 1 deletion archive/archive_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package archive_test
Expand Down
2 changes: 1 addition & 1 deletion archive/unarchive.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package archive
Expand Down
2 changes: 1 addition & 1 deletion archive/unarchive_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package archive_test
Expand Down
2 changes: 1 addition & 1 deletion cleanup/cleaner.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package cleanup
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/create/create.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package create
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/create/helmbundle/helm_bundle.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package helmbundle
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/create/imagebundle/image_bundle.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package imagebundle
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/create/imagebundle/platforms_flag.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package imagebundle
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/create/imagebundle/platforms_flag_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package imagebundle
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/flags/custom_flags.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package flags
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/flags/custom_flags_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package flags
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/flags/utils.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package flags
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/importcmd/imagebundle/image_bundle.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package imagebundle
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/importcmd/import.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package importcmd
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package main
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/push/bundle/bundle.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package bundle
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/push/push.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package push
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/root/root.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package root
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/serve/bundle/bundle.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package bundle
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/serve/serve.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package serve
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/utils/cmd.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package utils
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/utils/copy_file.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package utils
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/utils/extract_bundles.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package utils
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/utils/glob.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package utils
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/utils/glob_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package utils
Expand Down
2 changes: 1 addition & 1 deletion config/helm_charts_config.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package config
Expand Down
2 changes: 1 addition & 1 deletion config/helm_charts_config_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package config
Expand Down
2 changes: 1 addition & 1 deletion config/images_config.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package config
Expand Down
2 changes: 1 addition & 1 deletion config/images_config_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 D2iQ, Inc. All rights reserved.
// Copyright 2021-2023 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package config
Expand Down
2 changes: 1 addition & 1 deletion config/testdata/helmcharts/empty.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

---
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

---
Expand Down
2 changes: 1 addition & 1 deletion config/testdata/images/empty.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

---
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 D2iQ, Inc. All rights reserved.
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

---
Expand Down
Loading

0 comments on commit e66d30a

Please sign in to comment.