fix: do not fail when provider symlink is broken. Only print a warning.
fix https://github.com/hashicorp/terraform/issues/27445
This commit is contained in:
parent
5132abf638
commit
5ae5c99ba0
|
@ -120,7 +120,8 @@ func SearchLocalDirectory(baseDir string) (map[addrs.Provider]PackageMetaList, e
|
|||
// filesystem object below.
|
||||
info, err = os.Stat(fullPath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to read metadata about %s: %s", fullPath, err)
|
||||
log.Printf("[WARN] failed to read metadata about %s: %s", fullPath, err)
|
||||
return nil
|
||||
}
|
||||
|
||||
switch len(parts) {
|
||||
|
|
Loading…
Reference in New Issue