diff --git a/copyright_headers.go b/copyright_headers.go index f0d87a1080..7900ce788d 100644 --- a/copyright_headers.go +++ b/copyright_headers.go @@ -1,13 +1,6 @@ // Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: BUSL-1.1 -//go:build tools -// +build tools - package main -import ( - _ "github.com/hashicorp/copywrite" -) - //go:generate go run github.com/hashicorp/copywrite headers diff --git a/docs/plugin-protocol/copyright_headers.go b/docs/plugin-protocol/copyright_headers.go new file mode 100644 index 0000000000..06fb0e9441 --- /dev/null +++ b/docs/plugin-protocol/copyright_headers.go @@ -0,0 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-1.1 + +package plugin_protocol + +//go:generate go run github.com/hashicorp/copywrite headers diff --git a/internal/backend/local/test.go b/internal/backend/local/test.go index ca8654477e..76892d18e4 100644 --- a/internal/backend/local/test.go +++ b/internal/backend/local/test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package local import ( diff --git a/internal/backend/remote-state/s3/errors.go b/internal/backend/remote-state/s3/errors.go index 1b2e93bf99..065e652c9a 100644 --- a/internal/backend/remote-state/s3/errors.go +++ b/internal/backend/remote-state/s3/errors.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package s3 import ( diff --git a/internal/cloudplugin/binary.go b/internal/cloudplugin/binary.go index a4d2744c97..6bf5bbb458 100644 --- a/internal/cloudplugin/binary.go +++ b/internal/cloudplugin/binary.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package cloudplugin import ( diff --git a/internal/cloudplugin/binary_test.go b/internal/cloudplugin/binary_test.go index e1839ab463..40140015b5 100644 --- a/internal/cloudplugin/binary_test.go +++ b/internal/cloudplugin/binary_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package cloudplugin import ( diff --git a/internal/cloudplugin/client.go b/internal/cloudplugin/client.go index 872ad516d8..54f7e04809 100644 --- a/internal/cloudplugin/client.go +++ b/internal/cloudplugin/client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package cloudplugin import ( diff --git a/internal/cloudplugin/client_test.go b/internal/cloudplugin/client_test.go index 9898da3c3a..8e73afe622 100644 --- a/internal/cloudplugin/client_test.go +++ b/internal/cloudplugin/client_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package cloudplugin import ( diff --git a/internal/cloudplugin/errors.go b/internal/cloudplugin/errors.go index a208aa3802..4c3d9755b0 100644 --- a/internal/cloudplugin/errors.go +++ b/internal/cloudplugin/errors.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package cloudplugin import ( diff --git a/internal/cloudplugin/testing.go b/internal/cloudplugin/testing.go index 4724a42a12..cafe688279 100644 --- a/internal/cloudplugin/testing.go +++ b/internal/cloudplugin/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package cloudplugin import ( diff --git a/internal/command/cloud_test.go b/internal/command/cloud_test.go index 0a72353959..2edd8f2bcf 100644 --- a/internal/command/cloud_test.go +++ b/internal/command/cloud_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package command import ( diff --git a/internal/releaseauth/all.go b/internal/releaseauth/all.go index 2b69bac4c5..95c027d138 100644 --- a/internal/releaseauth/all.go +++ b/internal/releaseauth/all.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package releaseauth // Authenticator is a generic interface for interacting with types that authenticate diff --git a/internal/releaseauth/all_test.go b/internal/releaseauth/all_test.go index bd8dc38032..4daab7c410 100644 --- a/internal/releaseauth/all_test.go +++ b/internal/releaseauth/all_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package releaseauth import ( diff --git a/internal/releaseauth/checksum.go b/internal/releaseauth/checksum.go index a30248609b..d46addd5f7 100644 --- a/internal/releaseauth/checksum.go +++ b/internal/releaseauth/checksum.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package releaseauth import ( diff --git a/internal/releaseauth/doc.go b/internal/releaseauth/doc.go index a6ad34f4fd..23d8c36bf9 100644 --- a/internal/releaseauth/doc.go +++ b/internal/releaseauth/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + // Package releaseauth helps authenticates archives downloaded from a service // like releases.hashicorp.com by providing some simple authentication tools: // diff --git a/internal/releaseauth/hash.go b/internal/releaseauth/hash.go index ed95743485..1a8105d610 100644 --- a/internal/releaseauth/hash.go +++ b/internal/releaseauth/hash.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package releaseauth import ( diff --git a/internal/releaseauth/matching_sums.go b/internal/releaseauth/matching_sums.go index a44a41fab6..6201269e34 100644 --- a/internal/releaseauth/matching_sums.go +++ b/internal/releaseauth/matching_sums.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package releaseauth import "fmt" diff --git a/internal/releaseauth/signature.go b/internal/releaseauth/signature.go index f1124b65c6..d70071a406 100644 --- a/internal/releaseauth/signature.go +++ b/internal/releaseauth/signature.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package releaseauth import ( diff --git a/internal/tfplugin5/copyright_headers.go b/internal/tfplugin5/copyright_headers.go new file mode 100644 index 0000000000..ff7f9ca2d6 --- /dev/null +++ b/internal/tfplugin5/copyright_headers.go @@ -0,0 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-1.1 + +package tfplugin5 + +//go:generate go run github.com/hashicorp/copywrite headers diff --git a/internal/tfplugin6/copyright_headers.go b/internal/tfplugin6/copyright_headers.go new file mode 100644 index 0000000000..493fe6f362 --- /dev/null +++ b/internal/tfplugin6/copyright_headers.go @@ -0,0 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-1.1 + +package tfplugin6 + +//go:generate go run github.com/hashicorp/copywrite headers diff --git a/tools.go b/tools.go index 6a3eeb8389..702c7c8937 100644 --- a/tools.go +++ b/tools.go @@ -11,6 +11,7 @@ package tools // Go toolchain to see that we need to include them in go.mod and go.sum. import ( + _ "github.com/hashicorp/copywrite" _ "github.com/nishanths/exhaustive/cmd/exhaustive" _ "golang.org/x/tools/cmd/stringer" _ "honnef.co/go/tools/cmd/staticcheck"