-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Comments in Packer JSON Files #7544
Comments
This is probably going to be rendered unnecessary when we switch to using HCL2 templates later this year, as they allow comments. As a workaround in the meantime, you can either stick to v1.3.5 or you can use jq to remove the "_description" from your packer template as part of your wrapping script. For example: will print your template without the _description field to stdout. I'll leave this issue open for now in case a community member wants to work on it, but the HashiCorp maintainers will probably not work on it. |
This will be closed in #1768 |
I've added a documentation page that explains how to use jq to strip comments from docs, which will provide you with a workaround until we complete the HCL2 work. you can see it here: #7547 |
I had a case where I had a REALLY long
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Prior to Packer v1.4.0, I was able to use a multiline comment by adding a
_description
in the root level key.Now, in Packer v1.4.0 we need to use
_comment
as shown here.This is fine but it was actually better to use an array rather than a string to store some information of the image along with tracking numbers, etc
Can you please take this as a feature request?
The text was updated successfully, but these errors were encountered: