Skip to content

Commit

Permalink
Add exit code 1 to googet install success codes.
Browse files Browse the repository at this point in the history
Googet installed returns exit code 1 if no packages are installed.

PiperOrigin-RevId: 676421174
  • Loading branch information
Glazier Bot authored and copybara-github committed Sep 19, 2024
1 parent e19acf2 commit d42ab07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/googet/googet.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ func Installed(initial string, conf *Config) ([]Package, error) {
if conf == nil {
conf = NewConfig()
}

// If googet installed returns no packages, it returns exit code 1.
conf.ExecConfig.Verifier.SuccessCodes = []int{0, 1}
p := []Package{}
args := []string{"installed", initial}
res, err := funcExec(conf.GooGetExe, args, &conf.ExecConfig)
Expand Down

0 comments on commit d42ab07

Please sign in to comment.