Skip to content

Commit

Permalink
Include packer inside provider
Browse files Browse the repository at this point in the history
Packer might not be installed (such as on TFC),
so include it in the provider.

License is compatible since both are MPL2 so we
can just use Packer as a dependency.
  • Loading branch information
simaotwx committed Nov 11, 2021
1 parent a973d3c commit f001c15
Show file tree
Hide file tree
Showing 6 changed files with 1,863 additions and 12 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

245 changes: 240 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ module terraform-provider-packer
go 1.17

require (
github.com/google/uuid v1.1.2
github.com/google/uuid v1.3.0
github.com/hashicorp/packer v1.7.8
github.com/hashicorp/terraform-plugin-framework v0.4.2
github.com/hashicorp/terraform-plugin-go v0.4.0
github.com/toowoxx/go-lib-userspace-common v0.7.1
Expand All @@ -16,22 +17,256 @@ require (
)

require (
cloud.google.com/go v0.94.1 // indirect
cloud.google.com/go/storage v1.16.1 // indirect
github.com/1and1/oneandone-cloudserver-sdk-go v1.0.1 // indirect
github.com/Azure/azure-sdk-for-go v57.1.0+incompatible // indirect
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
github.com/Azure/go-autorest/autorest v0.11.20 // indirect
github.com/Azure/go-autorest/autorest/adal v0.9.15 // indirect
github.com/Azure/go-autorest/autorest/azure/auth v0.5.8 // indirect
github.com/Azure/go-autorest/autorest/azure/cli v0.4.3 // indirect
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
github.com/Azure/go-autorest/autorest/to v0.4.0 // indirect
github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect
github.com/Azure/go-autorest/logger v0.2.1 // indirect
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
github.com/Azure/go-ntlmssp v0.0.0-20200615164410-66371956d46c // indirect
github.com/ChrisTrenkamp/goxpath v0.0.0-20210404020558-97928f7e12b6 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver v1.5.0 // indirect
github.com/Masterminds/sprig v2.22.0+incompatible // indirect
github.com/Microsoft/go-winio v0.4.16 // indirect
github.com/NaverCloudPlatform/ncloud-sdk-go-v2 v1.2.0 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 // indirect
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/StackExchange/wmi v1.2.1 // indirect
github.com/Telmate/proxmox-api-go v0.0.0-20210825163308-5e4c0d698a78 // indirect
github.com/acomagu/bufpipe v1.0.3 // indirect
github.com/agext/levenshtein v1.2.3 // indirect
github.com/aliyun/alibaba-cloud-sdk-go v1.61.1244 // indirect
github.com/aliyun/aliyun-oss-go-sdk v2.1.10+incompatible // indirect
github.com/antihax/optional v1.0.0 // indirect
github.com/apparentlymart/go-cidr v1.0.1 // indirect
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
github.com/armon/go-metrics v0.3.9 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef // indirect
github.com/aws/aws-sdk-go v1.40.54 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
github.com/bgentry/speakeasy v0.1.0 // indirect
github.com/biogo/hts v1.4.3 // indirect
github.com/bmatcuk/doublestar v1.1.5 // indirect
github.com/c2h5oh/datasize v0.0.0-20200825124411-48ed595a09d2 // indirect
github.com/cenkalti/backoff/v3 v3.2.2 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/cheggaaa/pb v1.0.27 // indirect
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e // indirect
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
github.com/digitalocean/go-libvirt v0.0.0-20210723161134-761cfeeb5968 // indirect
github.com/digitalocean/go-qemu v0.0.0-20210326154740-ac9e0b687001 // indirect
github.com/digitalocean/godo v1.65.0 // indirect
github.com/dimchansky/utfbom v1.1.1 // indirect
github.com/dsnet/compress v0.0.1 // indirect
github.com/dylanmei/iso8601 v0.1.0 // indirect
github.com/emirpasic/gods v1.12.0 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/go-git/gcfg v1.5.0 // indirect
github.com/go-git/go-billy/v5 v5.3.1 // indirect
github.com/go-git/go-git/v5 v5.4.2 // indirect
github.com/go-ole/go-ole v1.2.5 // indirect
github.com/go-openapi/analysis v0.20.0 // indirect
github.com/go-openapi/errors v0.19.9 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/jsonreference v0.19.5 // indirect
github.com/go-openapi/loads v0.20.2 // indirect
github.com/go-openapi/runtime v0.19.24 // indirect
github.com/go-openapi/spec v0.20.3 // indirect
github.com/go-openapi/strfmt v0.20.0 // indirect
github.com/go-openapi/swag v0.19.14 // indirect
github.com/go-openapi/validate v0.20.2 // indirect
github.com/go-ozzo/ozzo-validation v3.6.0+incompatible // indirect
github.com/go-resty/resty/v2 v2.6.0 // indirect
github.com/go-stack/stack v1.8.0 // indirect
github.com/gobwas/glob v0.2.3 // indirect
github.com/gofrs/flock v0.8.1 // indirect
github.com/gofrs/uuid v4.0.0+incompatible // indirect
github.com/golang-collections/collections v0.0.0-20130729185459-604e922904d3 // indirect
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
github.com/golang-jwt/jwt/v4 v4.0.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/go-cmp v0.5.6 // indirect
github.com/google/go-github/v33 v33.0.1-0.20210113204525-9318e629ec69 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
github.com/googleapis/gax-go/v2 v2.1.0 // indirect
github.com/gophercloud/gophercloud v0.12.0 // indirect
github.com/gophercloud/utils v0.0.0-20200508015959-b0167b94122c // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
github.com/hako/durafmt v0.0.0-20200710122514-c0fb7b4da026 // indirect
github.com/hashicorp/aws-sdk-go-base v0.7.1 // indirect
github.com/hashicorp/consul/api v1.10.1 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-azure-helpers v0.16.5 // indirect
github.com/hashicorp/go-checkpoint v0.0.0-20171009173528-1545e56e46de // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-cty-funcs v0.0.0-20200930094925-2721b1e36840 // indirect
github.com/hashicorp/go-getter/gcs/v2 v2.0.0-20200604122502-a6995fa1edad // indirect
github.com/hashicorp/go-getter/s3/v2 v2.0.0-20200604122502-a6995fa1edad // indirect
github.com/hashicorp/go-getter/v2 v2.0.0 // indirect
github.com/hashicorp/go-hclog v0.16.2 // indirect
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-oracle-terraform v0.17.0 // indirect
github.com/hashicorp/go-plugin v1.3.0 // indirect
github.com/hashicorp/go-retryablehttp v0.7.0 // indirect
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
github.com/hashicorp/go-safetemp v1.0.0 // indirect
github.com/hashicorp/go-sockaddr v1.0.2 // indirect
github.com/hashicorp/go-uuid v1.0.2 // indirect
github.com/hashicorp/go-version v1.3.0 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/hashicorp/hcl/v2 v2.10.1 // indirect
github.com/hashicorp/hcp-sdk-go v0.13.1-0.20211004174420-0f36fadb8a34 // indirect
github.com/hashicorp/packer-plugin-alicloud v1.0.0 // indirect
github.com/hashicorp/packer-plugin-amazon v1.0.4 // indirect
github.com/hashicorp/packer-plugin-ansible v1.0.0 // indirect
github.com/hashicorp/packer-plugin-azure v1.0.4 // indirect
github.com/hashicorp/packer-plugin-chef v1.0.1 // indirect
github.com/hashicorp/packer-plugin-cloudstack v1.0.0 // indirect
github.com/hashicorp/packer-plugin-converge v1.0.0 // indirect
github.com/hashicorp/packer-plugin-digitalocean v1.0.1 // indirect
github.com/hashicorp/packer-plugin-docker v1.0.2 // indirect
github.com/hashicorp/packer-plugin-googlecompute v1.0.6 // indirect
github.com/hashicorp/packer-plugin-hcloud v1.0.1 // indirect
github.com/hashicorp/packer-plugin-hyperone v1.0.0 // indirect
github.com/hashicorp/packer-plugin-hyperv v1.0.0 // indirect
github.com/hashicorp/packer-plugin-inspec v0.0.7 // indirect
github.com/hashicorp/packer-plugin-jdcloud v1.0.0 // indirect
github.com/hashicorp/packer-plugin-linode v1.0.0 // indirect
github.com/hashicorp/packer-plugin-lxc v1.0.0 // indirect
github.com/hashicorp/packer-plugin-lxd v1.0.0 // indirect
github.com/hashicorp/packer-plugin-ncloud v1.0.1 // indirect
github.com/hashicorp/packer-plugin-oneandone v1.0.0 // indirect
github.com/hashicorp/packer-plugin-openstack v1.0.0 // indirect
github.com/hashicorp/packer-plugin-oracle v1.0.1 // indirect
github.com/hashicorp/packer-plugin-outscale v1.0.2 // indirect
github.com/hashicorp/packer-plugin-parallels v1.0.0 // indirect
github.com/hashicorp/packer-plugin-profitbricks v1.0.1 // indirect
github.com/hashicorp/packer-plugin-proxmox v1.0.2 // indirect
github.com/hashicorp/packer-plugin-puppet v1.0.0 // indirect
github.com/hashicorp/packer-plugin-qemu v1.0.1 // indirect
github.com/hashicorp/packer-plugin-salt v0.0.8 // indirect
github.com/hashicorp/packer-plugin-sdk v0.2.8 // indirect
github.com/hashicorp/packer-plugin-tencentcloud v1.0.1 // indirect
github.com/hashicorp/packer-plugin-triton v1.0.0 // indirect
github.com/hashicorp/packer-plugin-ucloud v1.0.0 // indirect
github.com/hashicorp/packer-plugin-vagrant v1.0.0 // indirect
github.com/hashicorp/packer-plugin-virtualbox v1.0.0 // indirect
github.com/hashicorp/packer-plugin-vmware v1.0.3 // indirect
github.com/hashicorp/packer-plugin-vsphere v1.0.2 // indirect
github.com/hashicorp/packer-plugin-yandex v1.0.2 // indirect
github.com/hashicorp/serf v0.9.5 // indirect
github.com/hashicorp/vault/api v1.1.1 // indirect
github.com/hashicorp/vault/sdk v0.2.1 // indirect
github.com/hashicorp/yamux v0.0.0-20210826001029-26ff87cf9493 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/hetznercloud/hcloud-go v1.32.0 // indirect
github.com/huandu/xstrings v1.3.2 // indirect
github.com/hyperonecom/h1-client-go v0.0.0-20191203060043-b46280e4c4a4 // indirect
github.com/imdario/mergo v0.3.12 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/jdcloud-api/jdcloud-sdk-go v1.9.1-0.20190605102154-3d81a50ca961 // indirect
github.com/jehiah/go-strftime v0.0.0-20171201141054-1d33003b3869 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/joyent/triton-go v1.8.5 // indirect
github.com/json-iterator/go v1.1.11 // indirect
github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 // indirect
github.com/klauspost/compress v1.13.5 // indirect
github.com/klauspost/pgzip v1.2.5 // indirect
github.com/konsorten/go-windows-terminal-sequences v1.0.3 // indirect
github.com/kr/fs v0.1.0 // indirect
github.com/linode/linodego v0.28.5 // indirect
github.com/mailru/easyjson v0.7.6 // indirect
github.com/masterzen/simplexml v0.0.0-20190410153822-31eea3082786 // indirect
github.com/masterzen/winrm v0.0.0-20210623064412-3b76017826b0 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/mattn/go-tty v0.0.0-20191112051231-74040eebce08 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/mitchellh/cli v1.1.2 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-fs v0.0.0-20180402235330-b7b9ca407fff // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/mitchellh/go-vnc v0.0.0-20150629162542-723ed9867aed // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/mitchellh/iochan v1.0.0 // indirect
github.com/mitchellh/mapstructure v1.4.1 // indirect
github.com/mitchellh/panicwrap v1.0.0 // indirect
github.com/mitchellh/prefixedio v0.0.0-20151214002211-6e6954073784 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d // indirect
github.com/oklog/run v1.0.0 // indirect
github.com/stretchr/testify v1.7.0 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/oracle/oci-go-sdk/v36 v36.2.0 // indirect
github.com/outscale/osc-sdk-go v1.11.2 // indirect
github.com/packer-community/winrmcp v0.0.0-20180921211025-c76d91c1e7db // indirect
github.com/pierrec/lz4 v2.6.1+incompatible // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pkg/sftp v1.13.2 // indirect
github.com/posener/complete v1.2.3 // indirect
github.com/profitbricks/profitbricks-sdk-go v4.0.2+incompatible // indirect
github.com/prometheus/client_golang v1.11.0 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.30.0 // indirect
github.com/prometheus/procfs v0.7.3 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/ryanuber/go-glob v1.0.0 // indirect
github.com/scaleway/packer-plugin-scaleway v1.0.4 // indirect
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7 // indirect
github.com/sergi/go-diff v1.1.0 // indirect
github.com/shirou/gopsutil v3.21.1+incompatible // indirect
github.com/sirupsen/logrus v1.6.0 // indirect
github.com/tencentcloud/tencentcloud-sdk-go v3.0.233+incompatible // indirect
github.com/ucloud/ucloud-sdk-go v0.20.2 // indirect
github.com/ufilesdk-dev/ufile-gosdk v1.0.1 // indirect
github.com/ugorji/go/codec v1.2.6 // indirect
github.com/ulikunitz/xz v0.5.10 // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
github.com/vmware/govmomi v0.26.1 // indirect
github.com/xanzy/go-cloudstack v2.4.1+incompatible // indirect
github.com/xanzy/ssh-agent v0.3.0 // indirect
github.com/yandex-cloud/go-genproto v0.0.0-20210824140926-1bca7bc0c005 // indirect
github.com/yandex-cloud/go-sdk v0.0.0-20210824141121-182aedd44a25 // indirect
github.com/zclconf/go-cty v1.10.0 // indirect
github.com/zclconf/go-cty-yaml v1.0.1 // indirect
go.mongodb.org/mongo-driver v1.4.6 // indirect
go.opencensus.io v0.23.0 // indirect
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
golang.org/x/mobile v0.0.0-20210901025245-1fde1d6c3ca1 // indirect
golang.org/x/net v0.0.0-20210902165921-8d991716f632 // indirect
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
golang.org/x/sys v0.0.0-20210831042530-f4d43177bf5e // indirect
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
google.golang.org/api v0.56.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2 // indirect
google.golang.org/grpc v1.40.0 // indirect
google.golang.org/protobuf v1.27.1 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
gopkg.in/ini.v1 v1.62.0 // indirect
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)

replace github.com/hashicorp/packer v1.7.8 => github.com/toowoxx/packer v1.7.8-toowoxx.custom.100
Loading

0 comments on commit f001c15

Please sign in to comment.