mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user