Interpolate environment variables when configuring dev_overrides

pull/34873/head
Craig Sloggett 2 years ago
parent d3b8a55781
commit 302c6deddc
No known key found for this signature in database
GPG Key ID: 3D5272A2CA547996

@ -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)
}

Loading…
Cancel
Save