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

[COMPLIANCE] Add Copyright and License Headers #35

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 3 additions & 0 deletions internal/ignorefiles/ignorerules.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions internal/ignorefiles/terraformignore.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package ignorefiles

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/ignorefiles/terraformignore_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package ignorefiles

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/unpackinfo/lchtimes_darwin.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

//go:build darwin
// +build darwin

Expand Down
3 changes: 3 additions & 0 deletions internal/unpackinfo/lchtimes_linux32.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 3 additions & 0 deletions internal/unpackinfo/lchtimes_linux64.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 3 additions & 0 deletions internal/unpackinfo/lchtimes_others.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 3 additions & 0 deletions internal/unpackinfo/unpackinfo.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package unpackinfo

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/unpackinfo/unpackinfo_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package unpackinfo

import (
Expand Down
3 changes: 3 additions & 0 deletions slug.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package slug

import (
Expand Down
3 changes: 3 additions & 0 deletions slug_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package slug

import (
Expand Down
3 changes: 3 additions & 0 deletions sourceaddrs/doc.go
Original file line number Diff line number Diff line change
@@ -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".
Expand Down
3 changes: 3 additions & 0 deletions sourceaddrs/package_remote.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package sourceaddrs

import (
Expand Down
3 changes: 3 additions & 0 deletions sourceaddrs/source.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package sourceaddrs

import (
Expand Down
3 changes: 3 additions & 0 deletions sourceaddrs/source_final.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package sourceaddrs

import (
Expand Down
3 changes: 3 additions & 0 deletions sourceaddrs/source_final_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package sourceaddrs

import (
Expand Down
3 changes: 3 additions & 0 deletions sourceaddrs/source_local.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package sourceaddrs

import (
Expand Down
3 changes: 3 additions & 0 deletions sourceaddrs/source_registry.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package sourceaddrs

import (
Expand Down
3 changes: 3 additions & 0 deletions sourceaddrs/source_registry_final.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package sourceaddrs

import (
Expand Down
3 changes: 3 additions & 0 deletions sourceaddrs/source_remote.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package sourceaddrs

import (
Expand Down
3 changes: 3 additions & 0 deletions sourceaddrs/source_remote_types.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package sourceaddrs

import (
Expand Down
3 changes: 3 additions & 0 deletions sourceaddrs/source_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package sourceaddrs

import (
Expand Down
3 changes: 3 additions & 0 deletions sourceaddrs/subpath.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package sourceaddrs

import (
Expand Down
3 changes: 3 additions & 0 deletions sourcebundle/builder.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package sourcebundle

import (
Expand Down
3 changes: 3 additions & 0 deletions sourcebundle/builder_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package sourcebundle

import (
Expand Down
3 changes: 3 additions & 0 deletions sourcebundle/bundle.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package sourcebundle

import (
Expand Down
3 changes: 3 additions & 0 deletions sourcebundle/dependency_finder.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package sourcebundle

import (
Expand Down
3 changes: 3 additions & 0 deletions sourcebundle/diagnostics.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package sourcebundle

import (
Expand Down
3 changes: 3 additions & 0 deletions sourcebundle/doc.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions sourcebundle/manifest_json.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions sourcebundle/package_fetcher.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package sourcebundle

import (
Expand Down
3 changes: 3 additions & 0 deletions sourcebundle/package_meta.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions sourcebundle/registry_client.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package sourcebundle

import (
Expand Down
3 changes: 3 additions & 0 deletions sourcebundle/trace.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package sourcebundle

import (
Expand Down
3 changes: 3 additions & 0 deletions terraformignore.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package slug

import (
Expand Down
3 changes: 3 additions & 0 deletions testdata/archive-dir-absolute/_common/extra-files/bar.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
#!/usr/bin/env bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

echo "bar"
3 changes: 3 additions & 0 deletions testdata/archive-dir-absolute/_common/extra-files/foo.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
#!/usr/bin/env bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

echo "foo"
3 changes: 3 additions & 0 deletions testdata/archive-dir-absolute/_common/locals.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

locals {
app = "service-01"
}
3 changes: 3 additions & 0 deletions testdata/archive-dir-absolute/_common/output.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

locals {
files = fileset("${path.module}/extra-files", "*.sh")
}
Expand Down
3 changes: 3 additions & 0 deletions testdata/archive-dir-absolute/_common/versions.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

terraform {
required_version = "~> 1.2"
}
3 changes: 3 additions & 0 deletions testdata/archive-dir-absolute/dev/backend.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

terraform {
remote "backend" {
hostname = "foobar.terraform.io"
Expand Down
3 changes: 3 additions & 0 deletions testdata/archive-dir-absolute/dev/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

locals {
env = "dev"
region = "us-east-2"
Expand Down
3 changes: 3 additions & 0 deletions testdata/example.tf
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

resource "null_resource" "foo" {}
3 changes: 3 additions & 0 deletions testdata/subdir-ordering/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package main

import (
Expand Down