Skip to content

Unescaped value breaks comments #184

@ignasi35

Description

@ignasi35

When rendering, the value of each entry in BuildInfo is added as a comment. If the value contains special characters (e.g. "/*) the comment becomes malformed and breaks compilation.

 /** The value is "Some git comment blabla/* and more comment" */
 val gitComment = "Some git comment blabla/* and more comment"

The code comment above is malformed (at least in some versions of scala) since the initial /** is considered unclosed.

See

s" /** The value is ${quote(value)}. */",
and
s" /** The value is ${quote(value)}. */",

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions