Skip to content

Fails on apply with a store containing oh-my-posh template #70

Description

@adrianj12

So I am assuming since oh-my-posh uses Go-style templating, that my theme template is trying to be interpreted by the rendering engine. Here is the exact error:

error: store "apps": prepare staging: render /home/adrian/code/personal/dotfiles/apps/.omp/themes/custom.json: parse template: template: :15: unexpected "\\" in operand

and the template code for context:

    10			  "type": "text",
    11			  "style": "powerline",
    12			  "powerline_symbol": "\ue0b0",
    13			  "foreground": "#ffffff",
    14			  "background": "#3A3A3A",
    15			  "template": " {{ if eq .Env.POETRY_ACTIVE \"1\" }}\ue235 poetry {{ end }}"
    16			},
    17	        {
    18	          "properties": {
    19	            "style": "full"
    20	          },

I'm guessing its failing at the env var statement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions