Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.1 gives unrecognized file format suffix ".tfvars". error #488

Open
AAverin opened this issue Feb 27, 2024 · 1 comment
Open

1.0.1 gives unrecognized file format suffix ".tfvars". error #488

AAverin opened this issue Feb 27, 2024 · 1 comment
Assignees
Labels
stage/accepted theme/template/variable Relates to the variables passed to templates type/enhancement

Comments

@AAverin
Copy link

AAverin commented Feb 27, 2024

Running my packs that are working fine on 0.0.1-techpreview3, updating to 1.0.1 gives a new error
Error: Cannot read from ../vars/do/prometheus.tfvars: unrecognized file format suffix ".tfvars".

Not sure what else to provide to reproduce, file is a regular tfvars file with variables for the pack configured

@angrycub
Copy link
Contributor

Starting with version 0.1.0, Nomad-pack now supports HCL and JSON variable files. To do this without creating parser ambiguity, we added a check for the file extension. Now, variable files should either end in .hcl or .json so that the correct parser is called insuring that any parse errors will be correctly specified for the target syntax.

I'll definitely enhance this error though. I can see that it doesn't provide any information about how to remediate, which I'm sure would be helpful in the moment

@angrycub angrycub self-assigned this Apr 30, 2024
@angrycub angrycub added stage/accepted type/enhancement theme/template/variable Relates to the variables passed to templates labels Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage/accepted theme/template/variable Relates to the variables passed to templates type/enhancement
Projects
None yet
Development

No branches or pull requests

2 participants