packer-cn/hcl2template
Adrien Delorme 4bc16455b4
HCL2: add a packer block with a required_version input setting (#10149)
* add the possibility to set the packer.required_version field; to make sure the template file works with that version of Packer
* add tests
* add documentation on packer.required_version

Example:

packer {
  required_version = ">= 1.2.0, < 2.0.0"
}
2020-10-27 10:03:36 +01:00
..
function
internal
repl
shim
testdata
common_test.go
decode.go
docs.go
functions.go
parser.go HCL2: add a packer block with a required_version input setting (#10149) 2020-10-27 10:03:36 +01:00
types.build.from.go
types.build.go
types.build.post-processor.go
types.build.provisioners.go
types.build_test.go
types.hcl_post-processor.go
types.hcl_provisioner.go
types.hcl_ref.go
types.kv.go
types.kv.hcl2spec.go
types.packer_config.go HCL2: add a packer block with a required_version input setting (#10149) 2020-10-27 10:03:36 +01:00
types.packer_config_test.go
types.source.go
types.source_test.go
types.variables.go HCL2: add a packer block with a required_version input setting (#10149) 2020-10-27 10:03:36 +01:00
types.variables_test.go
utils.go
version.go HCL2: add a packer block with a required_version input setting (#10149) 2020-10-27 10:03:36 +01:00
version_required.go HCL2: add a packer block with a required_version input setting (#10149) 2020-10-27 10:03:36 +01:00