From e2b1cb1017ca07b5a75a3b450a6ee25a4eef17ad Mon Sep 17 00:00:00 2001 From: "hashicorp-copywrite[bot]" <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> Date: Mon, 27 Nov 2023 16:13:57 +0000 Subject: [PATCH] [COMPLIANCE] Add Copyright and License Headers --- internal/ignorefiles/ignorerules.go | 3 +++ internal/ignorefiles/terraformignore.go | 3 +++ internal/ignorefiles/terraformignore_test.go | 3 +++ internal/unpackinfo/lchtimes_darwin.go | 3 +++ internal/unpackinfo/lchtimes_linux32.go | 3 +++ internal/unpackinfo/lchtimes_linux64.go | 3 +++ internal/unpackinfo/lchtimes_others.go | 3 +++ internal/unpackinfo/unpackinfo.go | 3 +++ internal/unpackinfo/unpackinfo_test.go | 3 +++ slug.go | 3 +++ slug_test.go | 3 +++ sourceaddrs/doc.go | 3 +++ sourceaddrs/package_remote.go | 3 +++ sourceaddrs/source.go | 3 +++ sourceaddrs/source_final.go | 3 +++ sourceaddrs/source_final_test.go | 3 +++ sourceaddrs/source_local.go | 3 +++ sourceaddrs/source_registry.go | 3 +++ sourceaddrs/source_registry_final.go | 3 +++ sourceaddrs/source_remote.go | 3 +++ sourceaddrs/source_remote_types.go | 3 +++ sourceaddrs/source_test.go | 3 +++ sourceaddrs/subpath.go | 3 +++ sourcebundle/builder.go | 3 +++ sourcebundle/builder_test.go | 3 +++ sourcebundle/bundle.go | 3 +++ sourcebundle/dependency_finder.go | 3 +++ sourcebundle/diagnostics.go | 3 +++ sourcebundle/doc.go | 3 +++ sourcebundle/manifest_json.go | 3 +++ sourcebundle/package_fetcher.go | 3 +++ sourcebundle/package_meta.go | 3 +++ sourcebundle/registry_client.go | 3 +++ sourcebundle/trace.go | 3 +++ terraformignore.go | 3 +++ testdata/archive-dir-absolute/_common/extra-files/bar.sh | 3 +++ testdata/archive-dir-absolute/_common/extra-files/foo.sh | 3 +++ testdata/archive-dir-absolute/_common/locals.tf | 3 +++ testdata/archive-dir-absolute/_common/output.tf | 3 +++ testdata/archive-dir-absolute/_common/versions.tf | 3 +++ testdata/archive-dir-absolute/dev/backend.tf | 3 +++ testdata/archive-dir-absolute/dev/variables.tf | 3 +++ testdata/example.tf | 3 +++ testdata/subdir-ordering/main.go | 3 +++ 44 files changed, 132 insertions(+) diff --git a/internal/ignorefiles/ignorerules.go b/internal/ignorefiles/ignorerules.go index 25c2677..2f20b7f 100644 --- a/internal/ignorefiles/ignorerules.go +++ b/internal/ignorefiles/ignorerules.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package ignorefiles deals with the ".terraformignore" file format, which // is a convention similar to ".gitignore" that specifies path patterns that // match files Terraform should discard or ignore when interpreting a package diff --git a/internal/ignorefiles/terraformignore.go b/internal/ignorefiles/terraformignore.go index 0eda3a0..2fe30a1 100644 --- a/internal/ignorefiles/terraformignore.go +++ b/internal/ignorefiles/terraformignore.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ignorefiles import ( diff --git a/internal/ignorefiles/terraformignore_test.go b/internal/ignorefiles/terraformignore_test.go index 1ca5ba1..c1975c9 100644 --- a/internal/ignorefiles/terraformignore_test.go +++ b/internal/ignorefiles/terraformignore_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ignorefiles import ( diff --git a/internal/unpackinfo/lchtimes_darwin.go b/internal/unpackinfo/lchtimes_darwin.go index c080148..8fbcf9d 100644 --- a/internal/unpackinfo/lchtimes_darwin.go +++ b/internal/unpackinfo/lchtimes_darwin.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build darwin // +build darwin diff --git a/internal/unpackinfo/lchtimes_linux32.go b/internal/unpackinfo/lchtimes_linux32.go index f456791..0a9706f 100644 --- a/internal/unpackinfo/lchtimes_linux32.go +++ b/internal/unpackinfo/lchtimes_linux32.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux_amd || linux_arm // +build linux_amd linux_arm diff --git a/internal/unpackinfo/lchtimes_linux64.go b/internal/unpackinfo/lchtimes_linux64.go index e3dadc3..1ce03bb 100644 --- a/internal/unpackinfo/lchtimes_linux64.go +++ b/internal/unpackinfo/lchtimes_linux64.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux_amd64 || linux_arm64 // +build linux_amd64 linux_arm64 diff --git a/internal/unpackinfo/lchtimes_others.go b/internal/unpackinfo/lchtimes_others.go index 7a6c649..9b1d0b8 100644 --- a/internal/unpackinfo/lchtimes_others.go +++ b/internal/unpackinfo/lchtimes_others.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !darwin && !linux_amd64 && !linux_arm64 && !linux_amd && !linux_arm // +build !darwin,!linux_amd64,!linux_arm64,!linux_amd,!linux_arm diff --git a/internal/unpackinfo/unpackinfo.go b/internal/unpackinfo/unpackinfo.go index 6b21406..6973e99 100644 --- a/internal/unpackinfo/unpackinfo.go +++ b/internal/unpackinfo/unpackinfo.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package unpackinfo import ( diff --git a/internal/unpackinfo/unpackinfo_test.go b/internal/unpackinfo/unpackinfo_test.go index 1bab6b1..98af6ca 100644 --- a/internal/unpackinfo/unpackinfo_test.go +++ b/internal/unpackinfo/unpackinfo_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package unpackinfo import ( diff --git a/slug.go b/slug.go index 619c5ae..9f6e4ae 100644 --- a/slug.go +++ b/slug.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package slug import ( diff --git a/slug_test.go b/slug_test.go index 71de69f..3abbc03 100644 --- a/slug_test.go +++ b/slug_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package slug import ( diff --git a/sourceaddrs/doc.go b/sourceaddrs/doc.go index b0f3c91..8a76042 100644 --- a/sourceaddrs/doc.go +++ b/sourceaddrs/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package sourceaddrs deals with the various types of source code address // that Terraform can gather into a source bundle via the sibling package // "sourcebundle". diff --git a/sourceaddrs/package_remote.go b/sourceaddrs/package_remote.go index 701b770..3b45e02 100644 --- a/sourceaddrs/package_remote.go +++ b/sourceaddrs/package_remote.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package sourceaddrs import ( diff --git a/sourceaddrs/source.go b/sourceaddrs/source.go index 64b6d59..5499f68 100644 --- a/sourceaddrs/source.go +++ b/sourceaddrs/source.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package sourceaddrs import ( diff --git a/sourceaddrs/source_final.go b/sourceaddrs/source_final.go index 0487ac9..43d160a 100644 --- a/sourceaddrs/source_final.go +++ b/sourceaddrs/source_final.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package sourceaddrs import ( diff --git a/sourceaddrs/source_final_test.go b/sourceaddrs/source_final_test.go index f97154d..f3796a4 100644 --- a/sourceaddrs/source_final_test.go +++ b/sourceaddrs/source_final_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package sourceaddrs import ( diff --git a/sourceaddrs/source_local.go b/sourceaddrs/source_local.go index 442164c..585a2dd 100644 --- a/sourceaddrs/source_local.go +++ b/sourceaddrs/source_local.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package sourceaddrs import ( diff --git a/sourceaddrs/source_registry.go b/sourceaddrs/source_registry.go index 000526a..20509fc 100644 --- a/sourceaddrs/source_registry.go +++ b/sourceaddrs/source_registry.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package sourceaddrs import ( diff --git a/sourceaddrs/source_registry_final.go b/sourceaddrs/source_registry_final.go index ad4e876..3a350b6 100644 --- a/sourceaddrs/source_registry_final.go +++ b/sourceaddrs/source_registry_final.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package sourceaddrs import ( diff --git a/sourceaddrs/source_remote.go b/sourceaddrs/source_remote.go index 8ba5858..87c7c69 100644 --- a/sourceaddrs/source_remote.go +++ b/sourceaddrs/source_remote.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package sourceaddrs import ( diff --git a/sourceaddrs/source_remote_types.go b/sourceaddrs/source_remote_types.go index 1c284a0..6cdc10a 100644 --- a/sourceaddrs/source_remote_types.go +++ b/sourceaddrs/source_remote_types.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package sourceaddrs import ( diff --git a/sourceaddrs/source_test.go b/sourceaddrs/source_test.go index a465610..b6c58bc 100644 --- a/sourceaddrs/source_test.go +++ b/sourceaddrs/source_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package sourceaddrs import ( diff --git a/sourceaddrs/subpath.go b/sourceaddrs/subpath.go index 492cbfe..52e4eb9 100644 --- a/sourceaddrs/subpath.go +++ b/sourceaddrs/subpath.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package sourceaddrs import ( diff --git a/sourcebundle/builder.go b/sourcebundle/builder.go index 06734ba..843f415 100644 --- a/sourcebundle/builder.go +++ b/sourcebundle/builder.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package sourcebundle import ( diff --git a/sourcebundle/builder_test.go b/sourcebundle/builder_test.go index e0db29e..e16e4cb 100644 --- a/sourcebundle/builder_test.go +++ b/sourcebundle/builder_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package sourcebundle import ( diff --git a/sourcebundle/bundle.go b/sourcebundle/bundle.go index 576ec7a..a239a1d 100644 --- a/sourcebundle/bundle.go +++ b/sourcebundle/bundle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package sourcebundle import ( diff --git a/sourcebundle/dependency_finder.go b/sourcebundle/dependency_finder.go index 4acdbab..f01db61 100644 --- a/sourcebundle/dependency_finder.go +++ b/sourcebundle/dependency_finder.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package sourcebundle import ( diff --git a/sourcebundle/diagnostics.go b/sourcebundle/diagnostics.go index 52fbc05..3736f2f 100644 --- a/sourcebundle/diagnostics.go +++ b/sourcebundle/diagnostics.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package sourcebundle import ( diff --git a/sourcebundle/doc.go b/sourcebundle/doc.go index 47ad1b4..c764cfb 100644 --- a/sourcebundle/doc.go +++ b/sourcebundle/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package sourcebundle deals with the construction of and later consumption of // "source bundles", which are in some sense "meta-slugs" that capture a // variety of different source packages together into a single working diff --git a/sourcebundle/manifest_json.go b/sourcebundle/manifest_json.go index c2257fb..79f5386 100644 --- a/sourcebundle/manifest_json.go +++ b/sourcebundle/manifest_json.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package sourcebundle // This file contains some internal-only types used to help with marshalling diff --git a/sourcebundle/package_fetcher.go b/sourcebundle/package_fetcher.go index 229ac40..925b147 100644 --- a/sourcebundle/package_fetcher.go +++ b/sourcebundle/package_fetcher.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package sourcebundle import ( diff --git a/sourcebundle/package_meta.go b/sourcebundle/package_meta.go index a195d0d..9380f17 100644 --- a/sourcebundle/package_meta.go +++ b/sourcebundle/package_meta.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package sourcebundle // PackageMeta is a collection of metadata about how the content of a diff --git a/sourcebundle/registry_client.go b/sourcebundle/registry_client.go index e811334..81299b4 100644 --- a/sourcebundle/registry_client.go +++ b/sourcebundle/registry_client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package sourcebundle import ( diff --git a/sourcebundle/trace.go b/sourcebundle/trace.go index 748e301..a198292 100644 --- a/sourcebundle/trace.go +++ b/sourcebundle/trace.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package sourcebundle import ( diff --git a/terraformignore.go b/terraformignore.go index 0863167..6866136 100644 --- a/terraformignore.go +++ b/terraformignore.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package slug import ( diff --git a/testdata/archive-dir-absolute/_common/extra-files/bar.sh b/testdata/archive-dir-absolute/_common/extra-files/bar.sh index 5b0e87e..b829da7 100644 --- a/testdata/archive-dir-absolute/_common/extra-files/bar.sh +++ b/testdata/archive-dir-absolute/_common/extra-files/bar.sh @@ -1,2 +1,5 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + echo "bar" diff --git a/testdata/archive-dir-absolute/_common/extra-files/foo.sh b/testdata/archive-dir-absolute/_common/extra-files/foo.sh index af85c95..11e2340 100644 --- a/testdata/archive-dir-absolute/_common/extra-files/foo.sh +++ b/testdata/archive-dir-absolute/_common/extra-files/foo.sh @@ -1,2 +1,5 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + echo "foo" diff --git a/testdata/archive-dir-absolute/_common/locals.tf b/testdata/archive-dir-absolute/_common/locals.tf index 7324c9d..9ff6088 100644 --- a/testdata/archive-dir-absolute/_common/locals.tf +++ b/testdata/archive-dir-absolute/_common/locals.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + locals { app = "service-01" } diff --git a/testdata/archive-dir-absolute/_common/output.tf b/testdata/archive-dir-absolute/_common/output.tf index 94e8f35..a52a16e 100644 --- a/testdata/archive-dir-absolute/_common/output.tf +++ b/testdata/archive-dir-absolute/_common/output.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + locals { files = fileset("${path.module}/extra-files", "*.sh") } diff --git a/testdata/archive-dir-absolute/_common/versions.tf b/testdata/archive-dir-absolute/_common/versions.tf index c509258..6e5c307 100644 --- a/testdata/archive-dir-absolute/_common/versions.tf +++ b/testdata/archive-dir-absolute/_common/versions.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + terraform { required_version = "~> 1.2" } diff --git a/testdata/archive-dir-absolute/dev/backend.tf b/testdata/archive-dir-absolute/dev/backend.tf index 3e1c863..40f30b3 100644 --- a/testdata/archive-dir-absolute/dev/backend.tf +++ b/testdata/archive-dir-absolute/dev/backend.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + terraform { remote "backend" { hostname = "foobar.terraform.io" diff --git a/testdata/archive-dir-absolute/dev/variables.tf b/testdata/archive-dir-absolute/dev/variables.tf index ec9ce9d..333d58c 100644 --- a/testdata/archive-dir-absolute/dev/variables.tf +++ b/testdata/archive-dir-absolute/dev/variables.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + locals { env = "dev" region = "us-east-2" diff --git a/testdata/example.tf b/testdata/example.tf index 3911a2a..3cd294a 100644 --- a/testdata/example.tf +++ b/testdata/example.tf @@ -1 +1,4 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + resource "null_resource" "foo" {} diff --git a/testdata/subdir-ordering/main.go b/testdata/subdir-ordering/main.go index d331c05..1192ae1 100644 --- a/testdata/subdir-ordering/main.go +++ b/testdata/subdir-ordering/main.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package main import (