I would prefer Javascript/Java-live comments with // or /**/, which jq doesn't allow i think
On Saturday, July 15, 2017 at 2:50:58 PM UTC+2, Rickard von Essen wrote: > > I guess jq should work (depending on what you mean by comments). Check > delpath(). jq is available in most distributions/OS'es package management > system. > > On Jul 15, 2017 14:21, "Alexander Lehmann" <[email protected] > <javascript:>> wrote: > > As Packer is using json for the config, I would like to run a preprocessor > before running packer to strip Javascript comments from the json file. > > I have found a nodejs tool for that called strip-json-comments-cli which > works ok, but since that requires npm install, it seems like kind of > complicated to provision e.g. in a CI environment just for the single > script. > > On the other hand I could add the stripped file in the git repo so that as > long as there are no changes in the source file, the tool is not needed > (which would solve the CI question). > > Can anyone suggest other tools (e.g. in go) or are you using another > procedure to get comment support for the config file? > > > Thanks, Alexander > > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/112680f0-eeba-4c93-886f-0e578058525c%40googlegroups.com > > <https://groups.google.com/d/msgid/packer-tool/112680f0-eeba-4c93-886f-0e578058525c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/008009a7-5631-46ec-bff2-2fa5d0023ee0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
