Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (cmd *installCmd) Execute(ctx context.Context, flags *flag.FlagSet, _ ...an

// We only need to build sources and download indexes if there are any
// non-file goo arguments passed to the install command (usually the case).
if !allFileGoos(flag.Args()) {
if !allFileGoos(flags.Args()) {
repos, err := repo.BuildSources(cmd.sources)
if err != nil {
logger.Errorf("Failed to initialize repos: %v", err)
Expand Down
2 changes: 2 additions & 0 deletions cli/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ func (cmd *updateCmd) Execute(ctx context.Context, _ *flag.FlagSet, _ ...interfa
r, err := client.WhatRepo(pi, rm)
if err != nil {
logger.Errorf("Error finding repo: %v.", err)
exitCode = subcommands.ExitFailure
continue
}
if err := install.FromRepo(ctx, pi, r, cache, rm, settings.Archs, cmd.dbOnly, cmd.force, downloader, db); err != nil {
logger.Errorf("Error updating %s %s %s: %v", pi.Arch, pi.Name, pi.Ver, err)
Expand Down
Loading