├── .github ├── CODEOWNERS ├── dependabot.yml ├── pull_request_template.md └── workflows │ ├── codeql-analysis.yml │ └── test.yml ├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── go.mod ├── go.sum ├── internal ├── escapingfs │ ├── escaping.go │ └── escaping_test.go ├── ignorefiles │ ├── ignorerules.go │ ├── terraformignore.go │ ├── terraformignore_test.go │ └── testdata │ │ ├── archive-dir │ │ ├── .terraform │ │ │ ├── file.txt │ │ │ ├── modules │ │ │ │ └── README │ │ │ └── plugins │ │ │ │ └── README │ │ ├── .terraformignore │ │ ├── .terraformrc │ │ ├── bar.txt │ │ ├── baz.txt │ │ ├── exe │ │ ├── foo.terraform │ │ │ └── bar.txt │ │ ├── foo.txt │ │ └── sub │ │ │ ├── bar.txt │ │ │ └── zip.txt │ │ ├── external-dir │ │ └── foo.txt │ │ └── with-exclusion │ │ ├── .terraformignore │ │ ├── logs │ │ └── foo.txt │ │ ├── src │ │ ├── baz │ │ │ └── ignored.txt │ │ └── foo │ │ │ └── bar.txt │ │ └── tmp │ │ └── tmp.txt └── unpackinfo │ ├── lchtimes_darwin.go │ ├── lchtimes_linux32.go │ ├── lchtimes_linux64.go │ ├── lchtimes_others.go │ ├── unpackinfo.go │ └── unpackinfo_test.go ├── slug.go ├── slug_test.go ├── sourceaddrs ├── doc.go ├── package_remote.go ├── source.go ├── source_component.go ├── source_component_final.go ├── source_final.go ├── source_final_test.go ├── source_local.go ├── source_registry.go ├── source_registry_final.go ├── source_remote.go ├── source_remote_types.go ├── source_test.go └── subpath.go ├── sourcebundle ├── builder.go ├── builder_test.go ├── bundle.go ├── component_test.go ├── dependency_finder.go ├── diagnostics.go ├── doc.go ├── manifest_json.go ├── package_fetcher.go ├── package_meta.go ├── registry_client.go ├── testdata │ └── pkgs │ │ ├── hello │ │ └── hello │ │ ├── subdirs │ │ └── a │ │ │ └── b │ │ │ └── beepbeep │ │ ├── terraformignore │ │ ├── .excluded │ │ │ └── file.txt │ │ ├── .terraformignore │ │ ├── excluded │ │ ├── excluded-dir │ │ │ └── excluded │ │ └── included │ │ └── with-remote-deps │ │ ├── dependencies │ │ └── self_dependency └── trace.go ├── terraformignore.go └── testdata ├── archive-dir-absolute ├── _common │ ├── extra-files │ │ ├── bar.sh │ │ └── foo.sh │ ├── locals.tf │ ├── output.tf │ └── versions.tf └── dev │ ├── backend.tf │ ├── extra-files │ ├── locals.tf │ ├── output.tf │ ├── variables.tf │ └── versions.tf ├── archive-dir-defaults-only ├── .terraform │ ├── modules │ │ ├── README │ │ └── subdir │ │ │ └── README │ └── plugins │ │ └── foo.txt └── bar.txt ├── archive-dir-no-external ├── .terraform │ ├── file.txt │ ├── modules │ │ └── README │ └── plugins │ │ └── README ├── .terraformignore ├── .terraformrc ├── bar.txt ├── baz.txt ├── exe ├── foo.terraform │ └── bar.txt ├── sub │ ├── bar.txt │ └── zip.txt └── sub2 │ ├── bar.txt │ └── zip.txt ├── archive-dir ├── .terraform │ ├── file.txt │ ├── modules │ │ └── README │ └── plugins │ │ └── README ├── .terraformignore ├── .terraformrc ├── bar.txt ├── baz.txt ├── example.tf ├── exe ├── foo.terraform │ └── bar.txt ├── sub │ ├── bar.txt │ └── zip.txt └── sub2 │ ├── bar.txt │ └── zip.txt ├── example.tf ├── subdir-appears-first.tar.gz └── subdir-ordering ├── README.md ├── main.go └── super └── duper └── trooper └── foo.txt /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/README.md -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/go.sum -------------------------------------------------------------------------------- /internal/escapingfs/escaping.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/internal/escapingfs/escaping.go -------------------------------------------------------------------------------- /internal/escapingfs/escaping_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/internal/escapingfs/escaping_test.go -------------------------------------------------------------------------------- /internal/ignorefiles/ignorerules.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/internal/ignorefiles/ignorerules.go -------------------------------------------------------------------------------- /internal/ignorefiles/terraformignore.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/internal/ignorefiles/terraformignore.go -------------------------------------------------------------------------------- /internal/ignorefiles/terraformignore_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/internal/ignorefiles/terraformignore_test.go -------------------------------------------------------------------------------- /internal/ignorefiles/testdata/archive-dir/.terraform/file.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /internal/ignorefiles/testdata/archive-dir/.terraform/modules/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/internal/ignorefiles/testdata/archive-dir/.terraform/modules/README -------------------------------------------------------------------------------- /internal/ignorefiles/testdata/archive-dir/.terraform/plugins/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/internal/ignorefiles/testdata/archive-dir/.terraform/plugins/README -------------------------------------------------------------------------------- /internal/ignorefiles/testdata/archive-dir/.terraformignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/internal/ignorefiles/testdata/archive-dir/.terraformignore -------------------------------------------------------------------------------- /internal/ignorefiles/testdata/archive-dir/.terraformrc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /internal/ignorefiles/testdata/archive-dir/bar.txt: -------------------------------------------------------------------------------- 1 | bar 2 | -------------------------------------------------------------------------------- /internal/ignorefiles/testdata/archive-dir/baz.txt: -------------------------------------------------------------------------------- 1 | baz -------------------------------------------------------------------------------- /internal/ignorefiles/testdata/archive-dir/exe: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /internal/ignorefiles/testdata/archive-dir/foo.terraform/bar.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /internal/ignorefiles/testdata/archive-dir/foo.txt: -------------------------------------------------------------------------------- 1 | ../external-dir/foo.txt -------------------------------------------------------------------------------- /internal/ignorefiles/testdata/archive-dir/sub/bar.txt: -------------------------------------------------------------------------------- 1 | ../bar.txt -------------------------------------------------------------------------------- /internal/ignorefiles/testdata/archive-dir/sub/zip.txt: -------------------------------------------------------------------------------- 1 | zip 2 | -------------------------------------------------------------------------------- /internal/ignorefiles/testdata/external-dir/foo.txt: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /internal/ignorefiles/testdata/with-exclusion/.terraformignore: -------------------------------------------------------------------------------- 1 | src/**/* 2 | # except at one directory 3 | !src/foo/bar.txt 4 | logs/ 5 | tmp/ 6 | -------------------------------------------------------------------------------- /internal/ignorefiles/testdata/with-exclusion/logs/foo.txt: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /internal/ignorefiles/testdata/with-exclusion/src/baz/ignored.txt: -------------------------------------------------------------------------------- 1 | ignored 2 | -------------------------------------------------------------------------------- /internal/ignorefiles/testdata/with-exclusion/src/foo/bar.txt: -------------------------------------------------------------------------------- 1 | bar 2 | -------------------------------------------------------------------------------- /internal/ignorefiles/testdata/with-exclusion/tmp/tmp.txt: -------------------------------------------------------------------------------- 1 | tmp 2 | -------------------------------------------------------------------------------- /internal/unpackinfo/lchtimes_darwin.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/internal/unpackinfo/lchtimes_darwin.go -------------------------------------------------------------------------------- /internal/unpackinfo/lchtimes_linux32.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/internal/unpackinfo/lchtimes_linux32.go -------------------------------------------------------------------------------- /internal/unpackinfo/lchtimes_linux64.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/internal/unpackinfo/lchtimes_linux64.go -------------------------------------------------------------------------------- /internal/unpackinfo/lchtimes_others.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/internal/unpackinfo/lchtimes_others.go -------------------------------------------------------------------------------- /internal/unpackinfo/unpackinfo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/internal/unpackinfo/unpackinfo.go -------------------------------------------------------------------------------- /internal/unpackinfo/unpackinfo_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/internal/unpackinfo/unpackinfo_test.go -------------------------------------------------------------------------------- /slug.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/slug.go -------------------------------------------------------------------------------- /slug_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/slug_test.go -------------------------------------------------------------------------------- /sourceaddrs/doc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourceaddrs/doc.go -------------------------------------------------------------------------------- /sourceaddrs/package_remote.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourceaddrs/package_remote.go -------------------------------------------------------------------------------- /sourceaddrs/source.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourceaddrs/source.go -------------------------------------------------------------------------------- /sourceaddrs/source_component.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourceaddrs/source_component.go -------------------------------------------------------------------------------- /sourceaddrs/source_component_final.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourceaddrs/source_component_final.go -------------------------------------------------------------------------------- /sourceaddrs/source_final.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourceaddrs/source_final.go -------------------------------------------------------------------------------- /sourceaddrs/source_final_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourceaddrs/source_final_test.go -------------------------------------------------------------------------------- /sourceaddrs/source_local.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourceaddrs/source_local.go -------------------------------------------------------------------------------- /sourceaddrs/source_registry.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourceaddrs/source_registry.go -------------------------------------------------------------------------------- /sourceaddrs/source_registry_final.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourceaddrs/source_registry_final.go -------------------------------------------------------------------------------- /sourceaddrs/source_remote.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourceaddrs/source_remote.go -------------------------------------------------------------------------------- /sourceaddrs/source_remote_types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourceaddrs/source_remote_types.go -------------------------------------------------------------------------------- /sourceaddrs/source_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourceaddrs/source_test.go -------------------------------------------------------------------------------- /sourceaddrs/subpath.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourceaddrs/subpath.go -------------------------------------------------------------------------------- /sourcebundle/builder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourcebundle/builder.go -------------------------------------------------------------------------------- /sourcebundle/builder_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourcebundle/builder_test.go -------------------------------------------------------------------------------- /sourcebundle/bundle.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourcebundle/bundle.go -------------------------------------------------------------------------------- /sourcebundle/component_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourcebundle/component_test.go -------------------------------------------------------------------------------- /sourcebundle/dependency_finder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourcebundle/dependency_finder.go -------------------------------------------------------------------------------- /sourcebundle/diagnostics.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourcebundle/diagnostics.go -------------------------------------------------------------------------------- /sourcebundle/doc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourcebundle/doc.go -------------------------------------------------------------------------------- /sourcebundle/manifest_json.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourcebundle/manifest_json.go -------------------------------------------------------------------------------- /sourcebundle/package_fetcher.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourcebundle/package_fetcher.go -------------------------------------------------------------------------------- /sourcebundle/package_meta.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourcebundle/package_meta.go -------------------------------------------------------------------------------- /sourcebundle/registry_client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourcebundle/registry_client.go -------------------------------------------------------------------------------- /sourcebundle/testdata/pkgs/hello/hello: -------------------------------------------------------------------------------- 1 | Hello, world! 2 | -------------------------------------------------------------------------------- /sourcebundle/testdata/pkgs/subdirs/a/b/beepbeep: -------------------------------------------------------------------------------- 1 | BEEP! 2 | -------------------------------------------------------------------------------- /sourcebundle/testdata/pkgs/terraformignore/.excluded/file.txt: -------------------------------------------------------------------------------- 1 | excluded content 2 | -------------------------------------------------------------------------------- /sourcebundle/testdata/pkgs/terraformignore/.terraformignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourcebundle/testdata/pkgs/terraformignore/.terraformignore -------------------------------------------------------------------------------- /sourcebundle/testdata/pkgs/terraformignore/excluded: -------------------------------------------------------------------------------- 1 | This file is ignored. 2 | -------------------------------------------------------------------------------- /sourcebundle/testdata/pkgs/terraformignore/excluded-dir/excluded: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sourcebundle/testdata/pkgs/terraformignore/included: -------------------------------------------------------------------------------- 1 | This file is included. 2 | -------------------------------------------------------------------------------- /sourcebundle/testdata/pkgs/with-remote-deps/dependencies: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourcebundle/testdata/pkgs/with-remote-deps/dependencies -------------------------------------------------------------------------------- /sourcebundle/testdata/pkgs/with-remote-deps/self_dependency: -------------------------------------------------------------------------------- 1 | https://example.com/self_dependency.tgz -------------------------------------------------------------------------------- /sourcebundle/trace.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/sourcebundle/trace.go -------------------------------------------------------------------------------- /terraformignore.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/terraformignore.go -------------------------------------------------------------------------------- /testdata/archive-dir-absolute/_common/extra-files/bar.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/testdata/archive-dir-absolute/_common/extra-files/bar.sh -------------------------------------------------------------------------------- /testdata/archive-dir-absolute/_common/extra-files/foo.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/testdata/archive-dir-absolute/_common/extra-files/foo.sh -------------------------------------------------------------------------------- /testdata/archive-dir-absolute/_common/locals.tf: -------------------------------------------------------------------------------- 1 | # Copyright (c) HashiCorp, Inc. 2 | # SPDX-License-Identifier: MPL-2.0 3 | 4 | locals { 5 | app = "service-01" 6 | } 7 | -------------------------------------------------------------------------------- /testdata/archive-dir-absolute/_common/output.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/testdata/archive-dir-absolute/_common/output.tf -------------------------------------------------------------------------------- /testdata/archive-dir-absolute/_common/versions.tf: -------------------------------------------------------------------------------- 1 | # Copyright (c) HashiCorp, Inc. 2 | # SPDX-License-Identifier: MPL-2.0 3 | 4 | terraform { 5 | required_version = "~> 1.2" 6 | } 7 | -------------------------------------------------------------------------------- /testdata/archive-dir-absolute/dev/backend.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/testdata/archive-dir-absolute/dev/backend.tf -------------------------------------------------------------------------------- /testdata/archive-dir-absolute/dev/extra-files: -------------------------------------------------------------------------------- 1 | ../_common/extra-files -------------------------------------------------------------------------------- /testdata/archive-dir-absolute/dev/locals.tf: -------------------------------------------------------------------------------- 1 | ../_common/locals.tf -------------------------------------------------------------------------------- /testdata/archive-dir-absolute/dev/output.tf: -------------------------------------------------------------------------------- 1 | ../_common/output.tf -------------------------------------------------------------------------------- /testdata/archive-dir-absolute/dev/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/testdata/archive-dir-absolute/dev/variables.tf -------------------------------------------------------------------------------- /testdata/archive-dir-absolute/dev/versions.tf: -------------------------------------------------------------------------------- 1 | ../_common/versions.tf -------------------------------------------------------------------------------- /testdata/archive-dir-defaults-only/.terraform/modules/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/testdata/archive-dir-defaults-only/.terraform/modules/README -------------------------------------------------------------------------------- /testdata/archive-dir-defaults-only/.terraform/modules/subdir/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/testdata/archive-dir-defaults-only/.terraform/modules/subdir/README -------------------------------------------------------------------------------- /testdata/archive-dir-defaults-only/.terraform/plugins/foo.txt: -------------------------------------------------------------------------------- 1 | This file should be ignored 2 | -------------------------------------------------------------------------------- /testdata/archive-dir-defaults-only/bar.txt: -------------------------------------------------------------------------------- 1 | bar 2 | -------------------------------------------------------------------------------- /testdata/archive-dir-no-external/.terraform/file.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /testdata/archive-dir-no-external/.terraform/modules/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/testdata/archive-dir-no-external/.terraform/modules/README -------------------------------------------------------------------------------- /testdata/archive-dir-no-external/.terraform/plugins/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/testdata/archive-dir-no-external/.terraform/plugins/README -------------------------------------------------------------------------------- /testdata/archive-dir-no-external/.terraformignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/testdata/archive-dir-no-external/.terraformignore -------------------------------------------------------------------------------- /testdata/archive-dir-no-external/.terraformrc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /testdata/archive-dir-no-external/bar.txt: -------------------------------------------------------------------------------- 1 | bar 2 | -------------------------------------------------------------------------------- /testdata/archive-dir-no-external/baz.txt: -------------------------------------------------------------------------------- 1 | baz -------------------------------------------------------------------------------- /testdata/archive-dir-no-external/exe: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /testdata/archive-dir-no-external/foo.terraform/bar.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /testdata/archive-dir-no-external/sub/bar.txt: -------------------------------------------------------------------------------- 1 | ../bar.txt -------------------------------------------------------------------------------- /testdata/archive-dir-no-external/sub/zip.txt: -------------------------------------------------------------------------------- 1 | zip 2 | -------------------------------------------------------------------------------- /testdata/archive-dir-no-external/sub2/bar.txt: -------------------------------------------------------------------------------- 1 | ../sub/bar.txt -------------------------------------------------------------------------------- /testdata/archive-dir-no-external/sub2/zip.txt: -------------------------------------------------------------------------------- 1 | zip 2 | -------------------------------------------------------------------------------- /testdata/archive-dir/.terraform/file.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /testdata/archive-dir/.terraform/modules/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/testdata/archive-dir/.terraform/modules/README -------------------------------------------------------------------------------- /testdata/archive-dir/.terraform/plugins/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/testdata/archive-dir/.terraform/plugins/README -------------------------------------------------------------------------------- /testdata/archive-dir/.terraformignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/testdata/archive-dir/.terraformignore -------------------------------------------------------------------------------- /testdata/archive-dir/.terraformrc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /testdata/archive-dir/bar.txt: -------------------------------------------------------------------------------- 1 | bar 2 | -------------------------------------------------------------------------------- /testdata/archive-dir/baz.txt: -------------------------------------------------------------------------------- 1 | baz -------------------------------------------------------------------------------- /testdata/archive-dir/example.tf: -------------------------------------------------------------------------------- 1 | ../example.tf -------------------------------------------------------------------------------- /testdata/archive-dir/exe: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /testdata/archive-dir/foo.terraform/bar.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /testdata/archive-dir/sub/bar.txt: -------------------------------------------------------------------------------- 1 | ../bar.txt -------------------------------------------------------------------------------- /testdata/archive-dir/sub/zip.txt: -------------------------------------------------------------------------------- 1 | zip 2 | -------------------------------------------------------------------------------- /testdata/archive-dir/sub2/bar.txt: -------------------------------------------------------------------------------- 1 | ../sub/bar.txt -------------------------------------------------------------------------------- /testdata/archive-dir/sub2/zip.txt: -------------------------------------------------------------------------------- 1 | zip 2 | -------------------------------------------------------------------------------- /testdata/example.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/testdata/example.tf -------------------------------------------------------------------------------- /testdata/subdir-appears-first.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/testdata/subdir-appears-first.tar.gz -------------------------------------------------------------------------------- /testdata/subdir-ordering/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/testdata/subdir-ordering/README.md -------------------------------------------------------------------------------- /testdata/subdir-ordering/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/go-slug/HEAD/testdata/subdir-ordering/main.go -------------------------------------------------------------------------------- /testdata/subdir-ordering/super/duper/trooper/foo.txt: -------------------------------------------------------------------------------- 1 | placeholder 2 | --------------------------------------------------------------------------------