Skip to content

Commit

Permalink
Merge branch 'beholders_eye/bug/ch1592/package-targeting' into nextyb
Browse files Browse the repository at this point in the history
  • Loading branch information
Ridai Govinda Pombo committed Jul 6, 2020
2 parents c8f44c5 + 698f180 commit a38fd16
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions cli/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,14 @@ func (b *BuildCmd) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{
if err != nil {
log.Errorf("Unable to parse argument: %v", err)
return subcommands.ExitFailure
}

pkg, err = ws.PackageByName(pkgName)
if err != nil {
log.Errorf("Unable to find package name %s: %v", pkgName, err)
return subcommands.ExitFailure
} else {
if pkgName != "" {
pkg, err = ws.PackageByName(pkgName)
if err != nil {
log.Errorf("Unable to find package name %s: %v", pkgName, err)
return subcommands.ExitFailure
}
}
}
}
if pkgName == "" {
Expand Down

0 comments on commit a38fd16

Please sign in to comment.