Commit Graph

52 Commits (710ebdcef5deaf9724db0e92a308ea6be151f8ca)

Author SHA1 Message Date
Adrien Delorme 710ebdcef5 add more test for var files
6 years ago
Adrien Delorme c8300b620a allow to use hcl files as var files in HCL mode
6 years ago
zac 79f1fab836
hcl2template/types: add spaces in error messages. (#8881)
6 years ago
Megan Marsh e518a0a8b7
Merge branch 'master' into update_go-cty_regex
6 years ago
Adrien Delorme 0c45bd8b4f import new replace and regex replace funcs from go-cty + documentation
6 years ago
Adrien Delorme 631f402d1e Merge branch 'master' into fix_8730
6 years ago
Adrien Delorme 0ccff0d5b9 all variables must have a value.
6 years ago
Adrien Delorme 6d8cce501e tweak validation & add tests
6 years ago
Wilken Rivera 9403b48a52
hcl2template/types.variables: Update logic for parsing literal value variables (#8834)
6 years ago
Adrien Delorme e9d3826219 variables: use Range instead of Block
6 years ago
Adrien Delorme 9b649594c6 update tests
6 years ago
Adrien Delorme 8482c6c2e6 evaluateLocalVariable: also pass the variable name
6 years ago
Adrien Delorme bd3112fa7c parseLocalVariables: simplify loop
6 years ago
Adrien Delorme 23b940dbd5 fix this !
6 years ago
Adrien Delorme e851050774 don't force to set unused variables too
6 years ago
Adrien Delorme 382f209b07 Update types.packer_config.go
6 years ago
Adrien Delorme 59cc246942 Merge remote-tracking branch 'origin/master' into fix_8730
6 years ago
Adrien Delorme 50896d4ddf WIP
6 years ago
Sylvia Moss 591b684f08
Fix HCL2 local variables decoding to allow local usage within another local in the same locals block (#8755)
6 years ago
Adrien Delorme a8fcb2d91a
HCL2: add support for dynamic blocks, document for loops and splat expressions (#8720)
6 years ago
Adrien Delorme 52e5b7051e Update mock.go
6 years ago
Adrien Delorme 3c213e6eaf continue and realise and unused undefaulted value triggers an error
6 years ago
Adrien Delorme cebfb1c735 give correct error when variable is unset
6 years ago
Adrien Delorme 79867ca26e add test for unset variable
6 years ago
Adrien Delorme 00c812cfe8 insert "github.com/zclconf/go-cty/cty/json" encoding beforce hcl decoding things to make sure tests are working similarly as real life version
6 years ago
Adrien Delorme 1ec68cac23 refactor prepare into MockConfig
6 years ago
Sylvia Moss 2981fd627d
Avoid calling CoreBuild.Prepare(...) for HCL2 templates (#8742)
6 years ago
Adrien Delorme 4b10c5a87c try to reproduce #8730 in tests
6 years ago
Adrien Delorme 193dad46e6
Hcl2 input variables, local variables and functions (#8588)
6 years ago
Sylvia Moss 08b0bd1d2c
Fix HCL2 code generation for slices within another slice (#8669)
6 years ago
nywilken d2a9e6b32e Format code with `gofmt -s -w`
6 years ago
Adrien Delorme 2d1a67c6cb hcl2: allow to optionnaly name provisioners and post-processors
6 years ago
Adrien Delorme 13ea97a1df mapstructure-to-hcl2: make basic named types pointers ( optional )
6 years ago
Adrien Delorme d8c3385814 hcl2template/mock.go: add fields with named types
6 years ago
Adrien Delorme 79d7b3e636 regroup duplicate error message
6 years ago
Adrien Delorme 0102f5b6fa remove unecessary inexistant block panic + add test
6 years ago
Adrien Delorme 219c80b1e6 better empty folder test
6 years ago
Adrien Delorme aad90842b4 add test case and fix the breaking ones
6 years ago
Adrien Delorme d8c33bc59e HCL: deshadown warnings from Parser.Parse
6 years ago
Adrien Delorme 5ef1893b00 fix crash when build.sources is set to an invalid name
6 years ago
Megan Marsh 5bacd37014 fix pps
6 years ago
Megan Marsh dca2c03cdb
Merge pull request #7866 from hashicorp/sharing_info
6 years ago
Megan Marsh 25711ed7d0 make HCL2 respect the new builder-returned generated vars list
6 years ago
Adrien Delorme ee2d74ce9e
hcl2template/common_test.go: make testParse a helper (#8495)
6 years ago
Adrien Delorme bc49234930 remove old untrue comment
6 years ago
Adrien Delorme 50fb1148b4 wip
6 years ago
Adrien Delorme 0785c2f6fc
build using HCL2 (#8423)
6 years ago
Adrien Delorme bf3d9841c6 Force durations to be passed a strings
7 years ago
Adrien Delorme 4479f73995 uncomment duplicate check tests
7 years ago
Adrien Delorme 0e4fec03d7 make complete tests files link as windows can't handle synlinks
7 years ago