Skip to content

Commit

Permalink
Fix ruby test error
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsenari committed Nov 21, 2024
1 parent b56a5ff commit 163ae99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/devconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ func createIncludableFromPluginConfig(pluginConfig *plugin.Config) *Config {
//
// because config env should take priority over plugins
func mergePATHsFromTwoEnvs(currentEnv, newEnv map[string]string) map[string]string {
if currentEnv["PATH"] != "" {
if currentEnv["PATH"] != "" && newEnv["PATH"] != "" {
slog.Debug("A Plugin or Config wants to modify PATH. Processing the merge", "AddedPATH", newEnv["PATH"])
newEnv["PATH"] = strings.Replace(newEnv["PATH"], "$PATH", currentEnv["PATH"], 1)
}
Expand Down

0 comments on commit 163ae99

Please sign in to comment.