Skip to content

Commit e4d4651

Browse files
authored
Return non-zero exit code if library install fails due to dependency resolution (#728)
1 parent a730874 commit e4d4651

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: cli/lib/install.go

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ func runInstallCommand(cmd *cobra.Command, args []string) {
7272
})
7373
if err != nil {
7474
feedback.Errorf("Error resolving dependencies for %s: %s", libRef, err)
75+
os.Exit(errorcodes.ErrGeneric)
7576
}
7677
for _, dep := range depsResp.GetDependencies() {
7778
feedback.Printf("%s depends on %s@%s", libRef, dep.GetName(), dep.GetVersionRequired())

0 commit comments

Comments
 (0)