Skip to content

Commit

Permalink
Changed to standard output for packages not to be updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
nao1215 committed May 2, 2023
1 parent 2b4779e commit d6e5155
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func gup(cmd *cobra.Command, args []string) int {
pkgs = excludePkgs(excludePkgList, pkgs)

if len(pkgs) == 0 {
print.Err("unable to update package: no package information")
print.Err("unable to update package: no package information or no package under $GOBIN")
return 1
}
return update(pkgs, dryRun, notify, cpus)
Expand All @@ -90,6 +90,7 @@ func excludePkgs(excludePkgList []string, pkgs []goutil.Package) []goutil.Packag
packageList := []goutil.Package{}
for _, v := range pkgs {
if slice.Contains(excludePkgList, v.Name) {
print.Info(fmt.Sprintf("Exclude '%s' from the update target", v.Name))
continue
}
packageList = append(packageList, v)
Expand Down

0 comments on commit d6e5155

Please sign in to comment.