Skip to content

Commit

Permalink
Continue if we encounter an inaccessible file
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanck committed Feb 13, 2023
1 parent 09d74f3 commit 4d6d14a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/terraform/parser/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ func ParseModuleFiles(fs FS, modPath string) (ast.ModFiles, ast.ModDiags, error)

src, err := fs.ReadFile(fullPath)
if err != nil {
return nil, nil, err
// If a file isn't accessible, continue with reading the
// remaining module files
continue
}

filename := ast.ModFilename(name)
Expand Down

0 comments on commit 4d6d14a

Please sign in to comment.