diff --git a/.goreleaser.yml b/.goreleaser.yml index f1c1b9dec..aedf15b8f 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + env: - GOPRIVATE=github.com/hashicorp diff --git a/checksum.go b/checksum.go index f1090839f..f5116f16d 100644 --- a/checksum.go +++ b/checksum.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/client.go b/client.go index 05f2f5f65..bf55b8886 100644 --- a/client.go +++ b/client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/client_mode.go b/client_mode.go index 7f02509a7..46b0fa9e7 100644 --- a/client_mode.go +++ b/client_mode.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter // ClientMode is the mode that the client operates in. diff --git a/client_option.go b/client_option.go index b16413753..58b6cb946 100644 --- a/client_option.go +++ b/client_option.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/client_option_insecure.go b/client_option_insecure.go index 75da58cdd..8524b81e4 100644 --- a/client_option_insecure.go +++ b/client_option_insecure.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter // WithInsecure allows for a user to avoid diff --git a/client_option_progress.go b/client_option_progress.go index 9b185f71d..bfde75edf 100644 --- a/client_option_progress.go +++ b/client_option_progress.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/client_option_progress_test.go b/client_option_progress_test.go index a578fed67..32ae0de63 100644 --- a/client_option_progress_test.go +++ b/client_option_progress_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/cmd/go-getter/main.go b/cmd/go-getter/main.go index 317874d85..cb2b5c5d4 100644 --- a/cmd/go-getter/main.go +++ b/cmd/go-getter/main.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package main import ( diff --git a/cmd/go-getter/progress_tracking.go b/cmd/go-getter/progress_tracking.go index c0db65c67..1abbaf7de 100644 --- a/cmd/go-getter/progress_tracking.go +++ b/cmd/go-getter/progress_tracking.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package main import ( diff --git a/common.go b/common.go index d2afd8ad8..2a8ee5ce9 100644 --- a/common.go +++ b/common.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/copy_dir.go b/copy_dir.go index 646c283db..321887327 100644 --- a/copy_dir.go +++ b/copy_dir.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress.go b/decompress.go index c0ca99bef..c91060c67 100644 --- a/decompress.go +++ b/decompress.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_bzip2.go b/decompress_bzip2.go index 6db0b3577..b63f89954 100644 --- a/decompress_bzip2.go +++ b/decompress_bzip2.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_bzip2_test.go b/decompress_bzip2_test.go index 0315c59c8..7d9564c39 100644 --- a/decompress_bzip2_test.go +++ b/decompress_bzip2_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_gzip.go b/decompress_gzip.go index f94f2bcff..5b9e07831 100644 --- a/decompress_gzip.go +++ b/decompress_gzip.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_gzip_test.go b/decompress_gzip_test.go index b805678a4..d2a8ee1fc 100644 --- a/decompress_gzip_test.go +++ b/decompress_gzip_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_tar.go b/decompress_tar.go index b5188c0e5..b37b6fcc3 100644 --- a/decompress_tar.go +++ b/decompress_tar.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_tar_test.go b/decompress_tar_test.go index 3df60b544..3d36710bf 100644 --- a/decompress_tar_test.go +++ b/decompress_tar_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_tbz2.go b/decompress_tbz2.go index 78609c9ff..82677a3ff 100644 --- a/decompress_tbz2.go +++ b/decompress_tbz2.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_tbz2_test.go b/decompress_tbz2_test.go index 14a16c21b..63056d58a 100644 --- a/decompress_tbz2_test.go +++ b/decompress_tbz2_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_test.go b/decompress_test.go index 5a0015b0e..2f3f5436f 100644 --- a/decompress_test.go +++ b/decompress_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_testing.go b/decompress_testing.go index b18bd6cb6..bb5270b83 100644 --- a/decompress_testing.go +++ b/decompress_testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_tgz.go b/decompress_tgz.go index 848f5e372..8915f7b20 100644 --- a/decompress_tgz.go +++ b/decompress_tgz.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_tgz_test.go b/decompress_tgz_test.go index e0e4d2380..31fec2561 100644 --- a/decompress_tgz_test.go +++ b/decompress_tgz_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_txz.go b/decompress_txz.go index 42f6179a8..9b8e80537 100644 --- a/decompress_txz.go +++ b/decompress_txz.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_txz_test.go b/decompress_txz_test.go index cb71c4250..13d60f6ea 100644 --- a/decompress_txz_test.go +++ b/decompress_txz_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_tzst.go b/decompress_tzst.go index 3b086ced2..15780767d 100644 --- a/decompress_tzst.go +++ b/decompress_tzst.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_tzst_test.go b/decompress_tzst_test.go index 9787c7267..c678da1a0 100644 --- a/decompress_tzst_test.go +++ b/decompress_tzst_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_xz.go b/decompress_xz.go index 89fafd6bc..8f55fb2aa 100644 --- a/decompress_xz.go +++ b/decompress_xz.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_xz_test.go b/decompress_xz_test.go index 9aa55b1f8..8b4d16cfa 100644 --- a/decompress_xz_test.go +++ b/decompress_xz_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_zip.go b/decompress_zip.go index 3ae80f298..77b7d0b73 100644 --- a/decompress_zip.go +++ b/decompress_zip.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_zip_test.go b/decompress_zip_test.go index d220aedc2..396f12165 100644 --- a/decompress_zip_test.go +++ b/decompress_zip_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_zstd.go b/decompress_zstd.go index 3922d27bd..89d08cd74 100644 --- a/decompress_zstd.go +++ b/decompress_zstd.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/decompress_zstd_test.go b/decompress_zstd_test.go index 6a0683589..6c71bebdb 100644 --- a/decompress_zstd_test.go +++ b/decompress_zstd_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/detect.go b/detect.go index f134f7705..c63191558 100644 --- a/detect.go +++ b/detect.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/detect_bitbucket.go b/detect_bitbucket.go index 19047eb19..de0841f8d 100644 --- a/detect_bitbucket.go +++ b/detect_bitbucket.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/detect_bitbucket_test.go b/detect_bitbucket_test.go index 2b5948ceb..4123ca1c1 100644 --- a/detect_bitbucket_test.go +++ b/detect_bitbucket_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/detect_file.go b/detect_file.go index 4ef41ea73..56c2bcac4 100644 --- a/detect_file.go +++ b/detect_file.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/detect_file_test.go b/detect_file_test.go index 0f7a055c9..1fbe2f0ba 100644 --- a/detect_file_test.go +++ b/detect_file_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/detect_file_unix_test.go b/detect_file_unix_test.go index 657f1a41c..b94d7f39d 100644 --- a/detect_file_unix_test.go +++ b/detect_file_unix_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // +build test unix package getter diff --git a/detect_gcs.go b/detect_gcs.go index 11363737c..32399cd96 100644 --- a/detect_gcs.go +++ b/detect_gcs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/detect_gcs_test.go b/detect_gcs_test.go index 94e1ec42b..1713b1d39 100644 --- a/detect_gcs_test.go +++ b/detect_gcs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/detect_git.go b/detect_git.go index eeb8a04c5..7e6654f60 100644 --- a/detect_git.go +++ b/detect_git.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter // GitDetector implements Detector to detect Git SSH URLs such as diff --git a/detect_git_test.go b/detect_git_test.go index a71dde2c3..807f9b7b9 100644 --- a/detect_git_test.go +++ b/detect_git_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/detect_github.go b/detect_github.go index 4bf4daf23..00babb783 100644 --- a/detect_github.go +++ b/detect_github.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/detect_github_test.go b/detect_github_test.go index 70f1c8329..25fecb43a 100644 --- a/detect_github_test.go +++ b/detect_github_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/detect_gitlab.go b/detect_gitlab.go index 9d1e8d83c..75244bbea 100644 --- a/detect_gitlab.go +++ b/detect_gitlab.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/detect_gitlab_test.go b/detect_gitlab_test.go index f1f85af3c..764b95667 100644 --- a/detect_gitlab_test.go +++ b/detect_gitlab_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/detect_s3.go b/detect_s3.go index 89f3c35dc..dcaac12f7 100644 --- a/detect_s3.go +++ b/detect_s3.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/detect_s3_test.go b/detect_s3_test.go index 6aceafd8f..883c7c8bb 100644 --- a/detect_s3_test.go +++ b/detect_s3_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/detect_ssh.go b/detect_ssh.go index c0dbe9d47..a0ea0e2fa 100644 --- a/detect_ssh.go +++ b/detect_ssh.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/detect_test.go b/detect_test.go index 9bef662a7..3811f8f66 100644 --- a/detect_test.go +++ b/detect_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/folder_storage.go b/folder_storage.go index 647ccf459..9d9a70410 100644 --- a/folder_storage.go +++ b/folder_storage.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/folder_storage_test.go b/folder_storage_test.go index feb8d3425..e8e3c475e 100644 --- a/folder_storage_test.go +++ b/folder_storage_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/get.go b/get.go index c233763c6..85a2df056 100644 --- a/get.go +++ b/get.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // getter is a package for downloading files or directories from a variety of // protocols. // diff --git a/get_base.go b/get_base.go index 09e9b6313..1623a136e 100644 --- a/get_base.go +++ b/get_base.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import "context" diff --git a/get_file.go b/get_file.go index 78660839a..345a4942c 100644 --- a/get_file.go +++ b/get_file.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/get_file_copy.go b/get_file_copy.go index d6145cbac..b123af642 100644 --- a/get_file_copy.go +++ b/get_file_copy.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/get_file_copy_test.go b/get_file_copy_test.go index 659edd200..e3b7d756d 100644 --- a/get_file_copy_test.go +++ b/get_file_copy_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/get_file_test.go b/get_file_test.go index 94ab3c1c1..361a1c3d4 100644 --- a/get_file_test.go +++ b/get_file_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/get_file_unix.go b/get_file_unix.go index a14a38263..84d32bef5 100644 --- a/get_file_unix.go +++ b/get_file_unix.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // +build !windows package getter diff --git a/get_file_windows.go b/get_file_windows.go index 31146f575..baad9e430 100644 --- a/get_file_windows.go +++ b/get_file_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // +build windows package getter diff --git a/get_gcs.go b/get_gcs.go index 0c2f96995..1cc7ec3b9 100644 --- a/get_gcs.go +++ b/get_gcs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/get_gcs_test.go b/get_gcs_test.go index c562c8c35..8f1e3c654 100644 --- a/get_gcs_test.go +++ b/get_gcs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/get_git.go b/get_git.go index f38e0d29c..914b1b1be 100644 --- a/get_git.go +++ b/get_git.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/get_git_test.go b/get_git_test.go index 64279b76e..22c435b54 100644 --- a/get_git_test.go +++ b/get_git_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/get_hg.go b/get_hg.go index afa3bde81..c7361260c 100644 --- a/get_hg.go +++ b/get_hg.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/get_hg_test.go b/get_hg_test.go index 7ed446691..63cc0ea34 100644 --- a/get_hg_test.go +++ b/get_hg_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/get_http.go b/get_http.go index a4d273f14..9bd49f6a1 100644 --- a/get_http.go +++ b/get_http.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/get_http_test.go b/get_http_test.go index 8e46530e2..238f41033 100644 --- a/get_http_test.go +++ b/get_http_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/get_mock.go b/get_mock.go index e2a98ea28..919612ceb 100644 --- a/get_mock.go +++ b/get_mock.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/get_s3.go b/get_s3.go index b478bde4e..1da3e2a06 100644 --- a/get_s3.go +++ b/get_s3.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/get_s3_test.go b/get_s3_test.go index 18187f149..c342d2505 100644 --- a/get_s3_test.go +++ b/get_s3_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/get_test.go b/get_test.go index 34f9e87b9..abd60766b 100644 --- a/get_test.go +++ b/get_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/helper/url/url.go b/helper/url/url.go index 02497c254..f9d834f7b 100644 --- a/helper/url/url.go +++ b/helper/url/url.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package url import ( diff --git a/helper/url/url_test.go b/helper/url/url_test.go index 1015f4afc..702112b66 100644 --- a/helper/url/url_test.go +++ b/helper/url/url_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package url import ( diff --git a/helper/url/url_unix.go b/helper/url/url_unix.go index ed1352a91..4913f9bdf 100644 --- a/helper/url/url_unix.go +++ b/helper/url/url_unix.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // +build !windows package url diff --git a/helper/url/url_windows.go b/helper/url/url_windows.go index 4280ec59a..60eb5a8eb 100644 --- a/helper/url/url_windows.go +++ b/helper/url/url_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package url import ( diff --git a/module_test.go b/module_test.go index 244c1cf2d..9a818a988 100644 --- a/module_test.go +++ b/module_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/netrc.go b/netrc.go index 2fe868ad5..8892628cf 100644 --- a/netrc.go +++ b/netrc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/netrc_test.go b/netrc_test.go index 43815c512..1cff5523e 100644 --- a/netrc_test.go +++ b/netrc_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/source.go b/source.go index 48ac9234e..48ff3ecaa 100644 --- a/source.go +++ b/source.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/source_test.go b/source_test.go index c65f50f1b..3a537ad2e 100644 --- a/source_test.go +++ b/source_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/storage.go b/storage.go index 2bc6b9ec3..da8d4d1d0 100644 --- a/storage.go +++ b/storage.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter // Storage is an interface that knows how to lookup downloaded directories diff --git a/testdata/basic%2Ftest/foo/main.tf b/testdata/basic%2Ftest/foo/main.tf index fec56017d..29ea07408 100644 --- a/testdata/basic%2Ftest/foo/main.tf +++ b/testdata/basic%2Ftest/foo/main.tf @@ -1 +1,4 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Hello diff --git a/testdata/basic%2Ftest/main.tf b/testdata/basic%2Ftest/main.tf index 383063715..927820316 100644 --- a/testdata/basic%2Ftest/main.tf +++ b/testdata/basic%2Ftest/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Hello module "foo" { diff --git a/testdata/basic%2Ftest/subdir/sub.tf b/testdata/basic%2Ftest/subdir/sub.tf index e69de29bb..48753c8fa 100644 --- a/testdata/basic%2Ftest/subdir/sub.tf +++ b/testdata/basic%2Ftest/subdir/sub.tf @@ -0,0 +1,3 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + diff --git a/testdata/basic-dot/.test/foo.tf b/testdata/basic-dot/.test/foo.tf index 76f177f19..422b54e0c 100644 --- a/testdata/basic-dot/.test/foo.tf +++ b/testdata/basic-dot/.test/foo.tf @@ -1 +1,4 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Hi diff --git a/testdata/basic-dot/main.tf b/testdata/basic-dot/main.tf index 383063715..927820316 100644 --- a/testdata/basic-dot/main.tf +++ b/testdata/basic-dot/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Hello module "foo" { diff --git a/testdata/basic-hg/main.tf b/testdata/basic-hg/main.tf index 383063715..927820316 100644 --- a/testdata/basic-hg/main.tf +++ b/testdata/basic-hg/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Hello module "foo" { diff --git a/testdata/basic-parent/a/a.tf b/testdata/basic-parent/a/a.tf index b9b44f464..6f61f9e03 100644 --- a/testdata/basic-parent/a/a.tf +++ b/testdata/basic-parent/a/a.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + module "b" { source = "../c" } diff --git a/testdata/basic-parent/c/c.tf b/testdata/basic-parent/c/c.tf index fec56017d..29ea07408 100644 --- a/testdata/basic-parent/c/c.tf +++ b/testdata/basic-parent/c/c.tf @@ -1 +1,4 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Hello diff --git a/testdata/basic-parent/main.tf b/testdata/basic-parent/main.tf index 2326ee22a..c930cd3a3 100644 --- a/testdata/basic-parent/main.tf +++ b/testdata/basic-parent/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + module "a" { source = "./a" } diff --git a/testdata/basic-subdir/foo/sub/baz/main.tf b/testdata/basic-subdir/foo/sub/baz/main.tf index e69de29bb..48753c8fa 100644 --- a/testdata/basic-subdir/foo/sub/baz/main.tf +++ b/testdata/basic-subdir/foo/sub/baz/main.tf @@ -0,0 +1,3 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + diff --git a/testdata/basic-subdir/foo/sub/main.tf b/testdata/basic-subdir/foo/sub/main.tf index 22905dd53..e0821baa0 100644 --- a/testdata/basic-subdir/foo/sub/main.tf +++ b/testdata/basic-subdir/foo/sub/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + module "bar" { source = "./baz" } diff --git a/testdata/basic-subdir/main.tf b/testdata/basic-subdir/main.tf index 19fb5dde7..cbea77717 100644 --- a/testdata/basic-subdir/main.tf +++ b/testdata/basic-subdir/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + module "foo" { source = "./foo//sub" } diff --git a/testdata/basic-tgz/main.tf b/testdata/basic-tgz/main.tf index fec56017d..29ea07408 100644 --- a/testdata/basic-tgz/main.tf +++ b/testdata/basic-tgz/main.tf @@ -1 +1,4 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Hello diff --git a/testdata/basic/foo/main.tf b/testdata/basic/foo/main.tf index fec56017d..29ea07408 100644 --- a/testdata/basic/foo/main.tf +++ b/testdata/basic/foo/main.tf @@ -1 +1,4 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Hello diff --git a/testdata/basic/main.tf b/testdata/basic/main.tf index 383063715..927820316 100644 --- a/testdata/basic/main.tf +++ b/testdata/basic/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Hello module "foo" { diff --git a/testdata/basic/subdir/sub.tf b/testdata/basic/subdir/sub.tf index e69de29bb..48753c8fa 100644 --- a/testdata/basic/subdir/sub.tf +++ b/testdata/basic/subdir/sub.tf @@ -0,0 +1,3 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + diff --git a/testdata/child/foo/bar/main.tf b/testdata/child/foo/bar/main.tf index df5927501..ad022248a 100644 --- a/testdata/child/foo/bar/main.tf +++ b/testdata/child/foo/bar/main.tf @@ -1,2 +1,5 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Hello diff --git a/testdata/child/foo/main.tf b/testdata/child/foo/main.tf index 548d21b99..fc3410782 100644 --- a/testdata/child/foo/main.tf +++ b/testdata/child/foo/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Hello module "bar" { diff --git a/testdata/child/main.tf b/testdata/child/main.tf index 383063715..927820316 100644 --- a/testdata/child/main.tf +++ b/testdata/child/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Hello module "foo" { diff --git a/testdata/dup/foo/main.tf b/testdata/dup/foo/main.tf index e69de29bb..48753c8fa 100644 --- a/testdata/dup/foo/main.tf +++ b/testdata/dup/foo/main.tf @@ -0,0 +1,3 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + diff --git a/testdata/dup/main.tf b/testdata/dup/main.tf index 98efd6e4f..ae0cc173d 100644 --- a/testdata/dup/main.tf +++ b/testdata/dup/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + module "foo" { source = "./foo" } diff --git a/testdata/validate-bad-output-to-module/child/main.tf b/testdata/validate-bad-output-to-module/child/main.tf index 4d68c80b3..a0118ca8b 100644 --- a/testdata/validate-bad-output-to-module/child/main.tf +++ b/testdata/validate-bad-output-to-module/child/main.tf @@ -1 +1,4 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "memory" { default = "foo" } diff --git a/testdata/validate-bad-output-to-module/main.tf b/testdata/validate-bad-output-to-module/main.tf index 4b627bbe5..2137bcc7f 100644 --- a/testdata/validate-bad-output-to-module/main.tf +++ b/testdata/validate-bad-output-to-module/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + module "child" { source = "./child" } diff --git a/testdata/validate-bad-output/child/main.tf b/testdata/validate-bad-output/child/main.tf index e69de29bb..48753c8fa 100644 --- a/testdata/validate-bad-output/child/main.tf +++ b/testdata/validate-bad-output/child/main.tf @@ -0,0 +1,3 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + diff --git a/testdata/validate-bad-output/main.tf b/testdata/validate-bad-output/main.tf index a19233e12..6ba5563ee 100644 --- a/testdata/validate-bad-output/main.tf +++ b/testdata/validate-bad-output/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + module "child" { source = "./child" } diff --git a/testdata/validate-bad-var/child/main.tf b/testdata/validate-bad-var/child/main.tf index e69de29bb..48753c8fa 100644 --- a/testdata/validate-bad-var/child/main.tf +++ b/testdata/validate-bad-var/child/main.tf @@ -0,0 +1,3 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + diff --git a/testdata/validate-bad-var/main.tf b/testdata/validate-bad-var/main.tf index 7cc785d17..4f2beff7a 100644 --- a/testdata/validate-bad-var/main.tf +++ b/testdata/validate-bad-var/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + module "child" { source = "./child" diff --git a/testdata/validate-child-bad/child/main.tf b/testdata/validate-child-bad/child/main.tf index 93b365403..09468dd43 100644 --- a/testdata/validate-child-bad/child/main.tf +++ b/testdata/validate-child-bad/child/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Duplicate resources resource "aws_instance" "foo" {} resource "aws_instance" "foo" {} diff --git a/testdata/validate-child-bad/main.tf b/testdata/validate-child-bad/main.tf index 813f7ef8e..157cc311d 100644 --- a/testdata/validate-child-bad/main.tf +++ b/testdata/validate-child-bad/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + module "foo" { source = "./child" } diff --git a/testdata/validate-child-good/child/main.tf b/testdata/validate-child-good/child/main.tf index 2cfd2a80f..fb8f0b11a 100644 --- a/testdata/validate-child-good/child/main.tf +++ b/testdata/validate-child-good/child/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "memory" {} output "result" {} diff --git a/testdata/validate-child-good/main.tf b/testdata/validate-child-good/main.tf index 5f3ad8da5..4dfac57b6 100644 --- a/testdata/validate-child-good/main.tf +++ b/testdata/validate-child-good/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + module "child" { source = "./child" memory = "1G" diff --git a/testdata/validate-required-var/child/main.tf b/testdata/validate-required-var/child/main.tf index 618ae3c42..8ff6be612 100644 --- a/testdata/validate-required-var/child/main.tf +++ b/testdata/validate-required-var/child/main.tf @@ -1 +1,4 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "memory" {} diff --git a/testdata/validate-required-var/main.tf b/testdata/validate-required-var/main.tf index 0f6991c53..37fa7ba45 100644 --- a/testdata/validate-required-var/main.tf +++ b/testdata/validate-required-var/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + module "child" { source = "./child" } diff --git a/testdata/validate-root-bad/main.tf b/testdata/validate-root-bad/main.tf index 93b365403..09468dd43 100644 --- a/testdata/validate-root-bad/main.tf +++ b/testdata/validate-root-bad/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Duplicate resources resource "aws_instance" "foo" {} resource "aws_instance" "foo" {} diff --git a/url.go b/url.go index a9aed7f50..0c5f5f9c3 100644 --- a/url.go +++ b/url.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import "net/url" diff --git a/url_test.go b/url_test.go index 720359e5c..5317a6907 100644 --- a/url_test.go +++ b/url_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/util_test.go b/util_test.go index a3e7d829c..02a5fd755 100644 --- a/util_test.go +++ b/util_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import (