Commit Graph

63 Commits (b7d85b8a238b3df4677e6c08af19004e9e4e004f)

Author SHA1 Message Date
Adrien Delorme d068430abf
make sure locals are evaluated only once variables are + test this (#8918)
6 years ago
Adrien Delorme ad8dafa3bd
HCL: add tests and fixes around var-file and var args (#8914)
6 years ago
Adrien Delorme 88297c796d Merge branch 'master' into hcl2_singular_blocks
6 years ago
Adrien Delorme 3beea4fb94 NameValues.CopyOn: don't instanciate a receiving map if there is nothing to copy over
6 years ago
Adrien Delorme b5e8750f5f Change key/value to name/value to remain consistent with Terraform
6 years ago
Adrien Delorme c845436e32 KeyValues.CopyOn: make sure a receiving nil map is set too
6 years ago
Adrien Delorme 87d6b2433f make generate
6 years ago
Adrien Delorme 6e6490d688 WIP
6 years ago
Adrien Delorme af38430eb8 add kvfilter type that regroups very frequently used filters
6 years ago
Adrien Delorme 9e6d5da277 hcl2: add general kv store that could be used anywhere
6 years ago
Adrien Delorme c9ec967205 better testing
6 years ago
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