-
Notifications
You must be signed in to change notification settings - Fork 8
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
Potential issue with YAML variables containing dashes #14
Comments
I'm using the Ruby mustache implementation. Not allowing dashes is quite a big limitation in my book, can you confirm that some other implementation besides the bash one disallows this? I'm not completely averse to switching to underscores though, since it only seems to be a few fields that use this. |
Thanks @palmskog, I confirm it was very fine with the Ruby implementation (for the record, it amounted to installing this APT package:
I've only done a few experiments with Bash, Python and Ruby so I can't really confirm this (but BTW it appears Bash and Python do not take a YAML as input: Bash takes environment variables (hence the So maybe this is not really an issue, but indeed:
|
@erikmd I'm open to switching to "underscores only" in all templates, feel free to do a PR with this. You can also add something to the README about the Ruby mustache implementation. |
* Address part of coq-community#14
done: #17
On second thought, I am unsure it is very practical to do such a refactoring, at least now, as the templates repo only contains the I don't know either if adding a sample So to sum up: the issue I raised would be only blocking when using these (so, feel free to close this issue if need be) |
Not having an authoritative |
OK @palmskog, thanks for the link. BTW when you say
I agree with you, and I guess furthermore it's an argument for not changing the metadata items names for |
FTR I use the Go implementation, which also supports YAML input files. |
Regarding the possible implementations of Mustache, I've successively tested pystache and mo.
On the one hand, pystache seems to be broken:
but on the other hand,
mo
(the Bash implementation) seems not to recognize YAML variables containing dashes:hence this issue: should the
-
's:templates/coq.opam.mustache
Line 2 in 84a16ca
be replaced with
_
's like in this other line?templates/coq.opam.mustache
Line 18 in 84a16ca
Finally out of curiosity @palmskog and @Zimmi48, which implementation of mustache are you using?
The text was updated successfully, but these errors were encountered: