diff --git a/internal/command/cliconfig/provider_installation.go b/internal/command/cliconfig/provider_installation.go index 5056b9b82b..3a92b47ec0 100644 --- a/internal/command/cliconfig/provider_installation.go +++ b/internal/command/cliconfig/provider_installation.go @@ -5,6 +5,7 @@ package cliconfig import ( "fmt" + "os" "path/filepath" "github.com/hashicorp/hcl" @@ -253,7 +254,8 @@ func decodeProviderInstallationFromConfig(hclFile *hclast.File) ([]*ProviderInst )) continue } - dirPath := filepath.Clean(rawPath) + interpolatedPath := os.ExpandEnv(rawPath) + dirPath := filepath.Clean(interpolatedPath) devOverrides[addr] = getproviders.PackageLocalDir(dirPath) }