packer-cn/vendor/github.com
Adrien Delorme 5ba134ac5b
JSON to HCL2 (minimal best-effort) transpiler (#9659)
hcl2_upgrade transforms a JSON build-file in a HCL2 build-file.
This starts a validated Packer core and from that core we generate an HCL 'block' per plugin/configuration. So for a builder, a provisioner, a post-processor or a variable. The contents of each block is just transformed as is and basically all fields are HCL2-ified.
A generated field can be valid in JSON but invalid on HCL2; for example JSON templating (in mapstructure) allows to set arrays of strings - like `x = ["a", "b"]` - with single strings - like `x="a"` -, HCL does not allow this.
Since JSON does not make the distinction between variables and locals, everything will be a variable. So variables that use other variables will not work.
hcl2_upgrade tries to transform go templating interpolation calls to HCL2 calls when possible, leaving the go templating calls like they are in case it cannot.

Work:
* transpiler
* tests
* update hcl v2 library so that output looks great.
* update docs
2020-08-25 10:51:43 +02:00
..
1and1/oneandone-cloudserver-sdk-go go mod vendor && go mod tidy 2019-04-11 14:19:24 +02:00
Azure [builder/azure-chroot] Shared image source (#9070) 2020-04-23 11:03:17 +02:00
BurntSushi/toml builder/hyperone: fix & add tests for tags 2019-12-03 14:57:40 +01:00
ChrisTrenkamp/goxpath re-add winrm_no_proxy option. Winrm code needs to be modified in order to read no_proxy env var when client is created rather than when net/http library is instantiated. 2020-06-16 10:27:30 -07:00
NaverCloudPlatform/ncloud-sdk-go-v2 builder/ncloud: Migrate ncloud-sdk-go-v1 to ncloud-sdk-go-v2 (#8678) 2020-02-03 14:55:01 +01:00
StackExchange/wmi update go modules 2019-09-18 10:33:16 -07:00
Telmate/proxmox-api-go go mod vendor 2020-07-15 14:20:09 -07:00
agext/levenshtein add vendored code 2019-10-28 14:38:53 -07:00
aliyun Revert "vendor vendors" 2019-10-28 14:31:07 -07:00
antchfx tidy vendor/mod 2020-07-16 15:47:29 +02:00
antihax/optional builder/hyperone: fix & add tests for tags 2019-12-03 14:57:40 +01:00
apparentlymart JSON to HCL2 (minimal best-effort) transpiler (#9659) 2020-08-25 10:51:43 +02:00
approvals/go-approval-tests go mod vendor && go mod tidy 2019-04-11 14:19:24 +02:00
armon update consul and vault dependencies (#9205) 2020-05-11 15:26:01 -04:00
aws/aws-sdk-go Drop the iso_checksum_type & iso_checksum_url fields (#8437) 2020-05-28 11:02:09 +02:00
bgentry go mod vendor && go mod tidy 2019-04-11 14:19:24 +02:00
biogo/hts post-processor/compress: add bgzf format support 2016-05-13 11:51:00 +02:00
bmatcuk/doublestar Hcl2 input variables, local variables and functions (#8588) 2020-02-06 11:49:21 +01:00
c2h5oh/datasize Update Yandex.Cloud go packages "go-genproto" and "go-sdk" 2020-06-17 12:35:43 +03:00
cheggaaa/pb Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
chzyer/readline vendors 2019-06-06 15:04:02 -07:00
creack/goselect Bump goselect version to include mips/ppc/s390x 2019-04-25 15:40:09 -04:00
davecgh/go-spew go mod vendor && go mod tidy 2019-04-11 14:19:24 +02:00
dgrijalva/jwt-go go mod vendor && go mod tidy 2019-04-11 14:19:24 +02:00
digitalocean Vendor Qemu QMP builder dependencies 2019-07-10 12:30:41 -06:00
dimchansky/utfbom update vendor directory 2019-10-15 21:14:20 +00:00
docker/docker go mod vendor && go mod tidy 2019-04-11 14:19:24 +02:00
dustin/go-humanize go mod vendor && go mod tidy 2019-04-11 14:19:24 +02:00
dylanmei Revert "vendor vendors" 2019-10-28 14:31:07 -07:00
exoscale/egoscale fixup! Add Exoscale Import post-processor 2019-07-01 08:59:37 +02:00
fatih update consul and vault dependencies (#9205) 2020-05-11 15:26:01 -04:00
ghodss/yaml go mod vendor && go mod tidy 2019-04-12 01:29:34 +03:00
go-ini/ini go mod vendor && go mod tidy 2019-04-11 14:19:24 +02:00
go-ole/go-ole update go modules 2019-09-18 10:33:16 -07:00
go-resty/resty/v2 upgrade linodego to v0.14.0 (#9395) 2020-06-12 11:36:54 +02:00
gobwas/glob up go mod, go mod vendor & go mod tidy 2019-06-06 17:34:17 +02:00
gofrs update flock + go mod tidy (#9805) 2020-08-24 10:49:43 +02:00
golang Update Yandex.Cloud go packages "go-genproto" and "go-sdk" 2020-06-17 12:35:43 +03:00
golang-collections/collections Delete stack_test.go 2019-07-26 12:34:25 +02:00
google Drop the iso_checksum_type & iso_checksum_url fields (#8437) 2020-05-28 11:02:09 +02:00
googleapis/gax-go/v2 go get go get github.com/hashicorp/go-getter@master && tidy 2019-09-06 11:59:23 +02:00
gophercloud Bump gophercloud to latest version 2020-07-14 00:01:37 +08:00
gorilla/websocket Revert "vendor vendors" 2019-10-28 14:31:07 -07:00
grpc-ecosystem/go-grpc-middleware Standardize compute SDK version 2020-04-07 22:49:24 +00:00
hako/durafmt fix vendoring 2020-08-11 15:04:47 -07:00
hashicorp JSON to HCL2 (minimal best-effort) transpiler (#9659) 2020-08-25 10:51:43 +02:00
hetznercloud/hcloud-go chore: bump hcloud dependency 2019-08-13 08:40:47 +02:00
hyperonecom/h1-client-go builder/hyperone: fix & add tests for tags 2019-12-03 14:57:40 +01:00
jdcloud-api/jdcloud-sdk-go Rewrite all files, remove sensitive information 2019-08-09 15:00:23 +08:00
jehiah/go-strftime feat: add strftime function in templates 2019-10-11 14:35:39 +05:30
jmespath/go-jmespath Drop the iso_checksum_type & iso_checksum_url fields (#8437) 2020-05-28 11:02:09 +02:00
joyent/triton-go update consul and vault dependencies (#9205) 2020-05-11 15:26:01 -04:00
json-iterator/go update alicloud builder to use official SDK (#7477) 2019-04-26 10:37:49 +08:00
jstemmer/go-junit-report builder/hyperone: fix & add tests for tags 2019-12-03 14:57:40 +01:00
kardianos/osext Revert "vendor vendors" 2019-10-28 14:31:07 -07:00
klauspost ran go mod vendor 2019-10-11 12:15:37 -07:00
konsorten/go-windows-terminal-sequences go mod vendor && go mod tidy 2019-04-11 14:19:24 +02:00
kr/fs Revert "Remove a bunch of unused dependencies (godep v54+ required)" 2016-02-22 11:44:12 -08:00
linode/linodego upgrade linodego to v0.14.0 (#9395) 2020-06-12 11:36:54 +02:00
masterzen re-add winrm_no_proxy option. Winrm code needs to be modified in order to read no_proxy env var when client is created rather than when net/http library is instantiated. 2020-06-16 10:27:30 -07:00
mattn update consul and vault dependencies (#9205) 2020-05-11 15:26:01 -04:00
mitchellh update consul and vault dependencies (#9205) 2020-05-11 15:26:01 -04:00
modern-go update alicloud builder to use official SDK (#7477) 2019-04-26 10:37:49 +08:00
moul go mod vendor && go mod tidy 2019-04-11 14:19:24 +02:00
nu7hatch/gouuid go mod vendor && go mod tidy 2019-04-11 14:19:24 +02:00
olekukonko/tablewriter go mod vendor && go mod tidy 2019-04-11 14:19:24 +02:00
oracle/oci-go-sdk update github.com/oracle/oci-go-sdk v1.8.0 to v18.0.0+incompatible and go mod tidy 2020-04-22 15:28:52 +02:00
outscale/osc-go add missing vendor dependencies 2019-07-18 09:39:07 -07:00
packer-community/winrmcp update winrmcp vendor and update error message in file provisioner to aid user who messes up file path name. update file provisioner docs 2018-09-21 14:51:32 -07:00
pierrec/lz4 go mod vendor && go mod tidy 2019-04-11 14:19:24 +02:00
pkg Drop the iso_checksum_type & iso_checksum_url fields (#8437) 2020-05-28 11:02:09 +02:00
pmezard/go-difflib Fixed github.com/stretchr/testify deps 2016-09-12 12:53:01 +02:00
posener/complete tests/builder/amazon: Enhance the test coverage for SSM Tunnel related steps (#9213) 2020-05-13 10:10:55 -04:00
profitbricks/profitbricks-sdk-go refresh line endings 2019-05-17 14:58:20 -07:00
renstrom/fuzzysearch add vendor deps 2018-02-08 12:10:12 -08:00
ryanuber/go-glob update consul and vault dependencies (#9205) 2020-05-11 15:26:01 -04:00
satori/go.uuid go mod vendor && go mod tidy 2019-04-11 14:19:24 +02:00
scaleway/scaleway-cli go mod vendor && go mod tidy 2019-04-11 14:19:24 +02:00
shirou ran go mod vendor 2019-10-11 12:15:37 -07:00
sirupsen/logrus builder/hyperone: fix & add tests for tags 2019-12-03 14:57:40 +01:00
stretchr/testify Drop the iso_checksum_type & iso_checksum_url fields (#8437) 2020-05-28 11:02:09 +02:00
tencentcloud/tencentcloud-sdk-go tencentcloud cvm use CLOUD_PREMIUM disk by default (#9663) 2020-07-29 15:10:00 +02:00
ucloud/ucloud-sdk-go update ucloud-uhost builder (#9466) 2020-06-24 14:31:05 +02:00
ufilesdk-dev/ufile-gosdk go mod vendor 2019-10-30 10:48:41 -07:00
ugorji/go go mod vendor 2019-10-30 10:49:33 -07:00
ulikunitz/xz ran go mod vendor 2019-10-11 12:15:37 -07:00
vmware/govmomi Add option to also import OVF templates to the Content Library (#9755) 2020-08-19 13:20:25 +02:00
xanzy/go-cloudstack gomod: update go-cloudstack 2019-05-26 11:58:26 +02:00
yandex-cloud Update Yandex.Cloud go packages "go-genproto" and "go-sdk" 2020-06-17 12:35:43 +03:00
zclconf get github.com/hashicorp/go-cty-funcs@0d04eb807361 2020-05-20 15:51:34 +02:00