From 8321456a305ec5fff8ec858c51fb625dfcd36e7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Eriksson?= Date: Sat, 12 Oct 2024 13:27:13 +0200 Subject: [PATCH] internal/version: remove PATH arg It seems to cause spurious "configuration change" restarts for some users. Not entirely sure why yet. --- internal/version/version.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/version/version.go b/internal/version/version.go index dbe5ebee1e..8889b8e5cb 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -4,7 +4,6 @@ import ( "crypto/sha256" "encoding/base64" "fmt" - "os" "runtime/debug" "strings" @@ -40,10 +39,9 @@ func ConfigHash() (string, error) { return "", err } - fmt.Fprintf(h, "PATH=%s\n", os.Getenv("PATH")) fmt.Fprintf(h, "APIBaseURL=%s\n", conf.APIBaseURL) - fmt.Fprintf(h, "EncoreDevDashListenAddr=%s\n", env.EncoreDevDashListenAddr().GetOrElse("")) fmt.Fprintf(h, "ConfigDir=%s\n", configDir) + fmt.Fprintf(h, "EncoreDevDashListenAddr=%s\n", env.EncoreDevDashListenAddr().GetOrElse("")) digest := h.Sum(nil) return base64.RawURLEncoding.EncodeToString(digest), nil