Skip to content

Commit

Permalink
Merge pull request #909 from aquaproj/fix/fix-panic-3
Browse files Browse the repository at this point in the history
fix: fix panic
  • Loading branch information
suzuki-shunsuke committed Jun 22, 2022
2 parents 2544a06 + f20fc3f commit b036876
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/which/which.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ func (ctrl *controller) findExecFileFromPkg(registries map[string]*cfgRegistry.C

supported, err := pkgInfo.CheckSupported(ctrl.runtime, ctrl.runtime.GOOS+"/"+ctrl.runtime.GOARCH)
if err != nil {
logerr.WithError(logE, err).WithField("supported_if", *pkgInfo.SupportedIf).Error("check if the package is supported")
logerr.WithError(logE, err).Error("check if the package is supported")
return nil, nil
}
if !supported {
logE.WithField("supported_if", *pkgInfo.SupportedIf).Debug("the package isn't supported on this environment")
logE.Debug("the package isn't supported on this environment")
return nil, nil
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/installpackage/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (inst *installer) createLinks(cfg *aqua.Config, registries map[string]*regi
}
supported, err := pkgInfo.CheckSupported(inst.runtime, env)
if err != nil {
logerr.WithError(logE, err).WithField("supported_if", *pkgInfo.SupportedIf).Error("check if the package is supported")
logerr.WithError(logE, err).Error("check if the package is supported")
failed = true
continue
}
Expand Down

0 comments on commit b036876

Please sign in to comment.