diff --git a/config.go b/config.go index 49053301..037c2128 100644 --- a/config.go +++ b/config.go @@ -188,7 +188,7 @@ func defaultSettings() *Configuration { } if os.Getenv("XDG_CACHE_HOME") != "" { - config.BuildDir = "$XDG_CACHE_HOME/yay" + newConfig.BuildDir = "$XDG_CACHE_HOME/yay" } return newConfig