Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 83d792f

Browse files
authored
Merge pull request #748 from darkowlzz/import-panic
Immediately handle error returned from importers
2 parents cb063ec + 6f61d12 commit 83d792f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/dep/root_analyzer.go

+3
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ func (a *rootAnalyzer) importManifestAndLock(dir string, pr gps.ProjectRoot, sup
8080
if i.HasDepMetadata(dir) {
8181
a.ctx.Err.Printf("Importing configuration from %s. These are only initial constraints, and are further refined during the solve process.", i.Name())
8282
m, l, err := i.Import(dir, pr)
83+
if err != nil {
84+
return nil, nil, err
85+
}
8386
a.removeTransitiveDependencies(m)
8487
return m, l, err
8588
}

0 commit comments

Comments
 (0)