Skip to content

Environment variables in snippetfile string broken #339

@RamiAwar

Description

@RamiAwar

I can't say for sure, but I think relative path in snippetfile broke the ability to pass env vars into the snippetfile variable

My config is: snippetfile = "$XDG_CONFIG_HOME/pet/snippet.toml"

$XDG_CONFIG_HOME this points to an absolute directory.

This worked in the past. I haven't updated in a while, but just recently did and noticed I'm getting this error:

load snippet failed: snippet file not found. $XDG_CONFIG_HOME/pet/snippet.toml
Please run 'pet configure' and provide a correct file path, or remove this
if you only want to provide snippetdirs instead

Originally posted by @npearson72 in #322 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    investigationPotential bug, needs investigation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions