Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move license statements to separate files (for tmpl files) to prevent license statement duplication #373

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions pkg/pipeline/templates/controller.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0

{{ .Header }}

{{ .GenStatement }}
Expand Down
3 changes: 3 additions & 0 deletions pkg/pipeline/templates/controller.go.tmpl.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>

SPDX-License-Identifier: Apache-2.0
4 changes: 0 additions & 4 deletions pkg/pipeline/templates/conversion_hub.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0

{{ .Header }}

{{ .GenStatement }}
Expand Down
3 changes: 3 additions & 0 deletions pkg/pipeline/templates/conversion_hub.go.tmpl.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>

SPDX-License-Identifier: Apache-2.0
4 changes: 0 additions & 4 deletions pkg/pipeline/templates/conversion_spoke.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0

{{ .Header }}

{{ .GenStatement }}
Expand Down
3 changes: 3 additions & 0 deletions pkg/pipeline/templates/conversion_spoke.go.tmpl.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>

SPDX-License-Identifier: Apache-2.0
4 changes: 0 additions & 4 deletions pkg/pipeline/templates/crd_types.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0

{{ .Header }}

{{ .GenStatement }}
Expand Down
3 changes: 3 additions & 0 deletions pkg/pipeline/templates/crd_types.go.tmpl.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>

SPDX-License-Identifier: Apache-2.0
4 changes: 0 additions & 4 deletions pkg/pipeline/templates/groupversion_info.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0

{{ .Header }}

{{ .GenStatement }}
Expand Down
3 changes: 3 additions & 0 deletions pkg/pipeline/templates/groupversion_info.go.tmpl.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>

SPDX-License-Identifier: Apache-2.0
4 changes: 0 additions & 4 deletions pkg/pipeline/templates/register.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0

{{ .Header }}

{{ .GenStatement }}
Expand Down
3 changes: 3 additions & 0 deletions pkg/pipeline/templates/register.go.tmpl.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>

SPDX-License-Identifier: Apache-2.0
3 changes: 0 additions & 3 deletions pkg/pipeline/templates/setup.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0

package controller
sergenyalcin marked this conversation as resolved.
Show resolved Hide resolved

Expand Down
3 changes: 3 additions & 0 deletions pkg/pipeline/templates/setup.go.tmpl.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>

SPDX-License-Identifier: Apache-2.0
4 changes: 0 additions & 4 deletions pkg/pipeline/templates/terraformed.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0

{{ .Header }}

{{ .GenStatement }}
Expand Down
3 changes: 3 additions & 0 deletions pkg/pipeline/templates/terraformed.go.tmpl.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>

SPDX-License-Identifier: Apache-2.0
Loading