From 112a69d743ef35215bc18cdfc4fd5ab0a71b80be Mon Sep 17 00:00:00 2001 From: Andreas <41864446+a-waider@users.noreply.github.com> Date: Thu, 2 Mar 2023 15:00:39 +0100 Subject: [PATCH] Allow env variables in path for rest backend (#280) --- internal/backend.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/backend.go b/internal/backend.go index 0a3c177..1742fda 100644 --- a/internal/backend.go +++ b/internal/backend.go @@ -38,7 +38,7 @@ func (b Backend) generateRepo() (string, error) { case "local": return GetPathRelativeToConfig(b.Path) case "rest": - parsed, err := url.Parse(b.Path) + parsed, err := url.Parse(os.ExpandEnv(b.Path)) if err != nil { return "", err }