Skip to content

Commit

Permalink
Fix compatibility with the latest version of ek package
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Oct 21, 2024
1 parent 9206648 commit d2110bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func Run(gitRev string, gomod []byte) {

if !errs.IsEmpty() {
terminal.Error("Options parsing errors:")
terminal.Error(errs.String())
terminal.Error(errs.Error("- "))
os.Exit(1)
}

Expand Down
6 changes: 3 additions & 3 deletions cli/executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"syscall"
"time"

"github.com/essentialkaos/ek/v13/errutil"
"github.com/essentialkaos/ek/v13/errors"
"github.com/essentialkaos/ek/v13/fmtc"
"github.com/essentialkaos/ek/v13/fmtutil/panel"
"github.com/essentialkaos/ek/v13/fsutil"
Expand Down Expand Up @@ -162,7 +162,7 @@ func NewExecutor(cfg *Config) *Executor {

// Validate validates recipe
func (e *Executor) Validate(r *recipe.Recipe, cfg *ValidationConfig) []error {
errs := errutil.NewErrors()
errs := errors.NewBundle()

errs.Add(checkRecipeWorkingDir(r))
errs.Add(checkRecipeTags(r, cfg.Tags))
Expand All @@ -180,7 +180,7 @@ func (e *Executor) Validate(r *recipe.Recipe, cfg *ValidationConfig) []error {
errs.Add(checkDependencies(r))
}

if !errs.HasErrors() {
if errs.IsEmpty() {
return nil
}

Expand Down

0 comments on commit d2110bd

Please sign in to comment.