Skip to content

Commit e35a872

Browse files
authored
Merge pull request #8830 from hashicorp/d-var-file-hcl2-not-yet
document that the `-var-file` option still expects JSON files for now
2 parents fc110e7 + d2964d5 commit e35a872

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

command/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ Options:
419419
-parallel-builds=1 Number of builds to run in parallel. 0 means no limit (Default: 0)
420420
-timestamp-ui Enable prefixing of each ui output with an RFC3339 timestamp.
421421
-var 'key=value' Variable for templates, can be used multiple times.
422-
-var-file=path JSON file containing user variables.
422+
-var-file=path JSON file containing user variables. [ Note that even in HCL mode this expects file to contain JSON, a fix is comming soon ]
423423
`
424424

425425
return strings.TrimSpace(helpText)

command/console.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Usage: packer console [options] [TEMPLATE]
9292
9393
Options:
9494
-var 'key=value' Variable for templates, can be used multiple times.
95-
-var-file=path JSON file containing user variables.
95+
-var-file=path JSON file containing user variables. [ Note that even in HCL mode this expects file to contain JSON, a fix is comming soon ]
9696
`
9797

9898
return strings.TrimSpace(helpText)

command/validate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Options:
183183
-except=foo,bar,baz Validate all builds other than these.
184184
-only=foo,bar,baz Validate only these builds.
185185
-var 'key=value' Variable for templates, can be used multiple times.
186-
-var-file=path JSON file containing user variables.
186+
-var-file=path JSON file containing user variables. [ Note that even in HCL mode this expects file to contain JSON, a fix is comming soon ]
187187
`
188188

189189
return strings.TrimSpace(helpText)

0 commit comments

Comments
 (0)