From cdc861e5f234895d2db51df753b10893a5a76493 Mon Sep 17 00:00:00 2001 From: Matt Krump Date: Tue, 7 Nov 2017 09:39:44 -0600 Subject: [PATCH] Update Config to use abs path if supplied --- pkg/config/config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 74932df4..c2a5f100 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -23,7 +23,9 @@ func NewConfig(environment string) Config { filenameWithExtension := fmt.Sprintf("%s.toml", environment) absolutePath := filepath.Join(ProjectRoot(), "pkg", "config", "environments", filenameWithExtension) config := parseConfigFile(absolutePath) - config.Client.IPCPath = filepath.Join(ProjectRoot(), config.Client.IPCPath) + if !filepath.IsAbs(config.Client.IPCPath) { + config.Client.IPCPath = filepath.Join(ProjectRoot(), config.Client.IPCPath) + } return config }