1
0
mirror of https://github.com/ko-build/ko.git synced 2025-07-12 23:50:31 +02:00

Enforce more lint checks, fix findings (#492)

This commit is contained in:
Jason Hall
2021-11-05 13:26:09 -04:00
committed by GitHub
parent 9821190605
commit 0015a81537
20 changed files with 96 additions and 87 deletions

View File

@ -60,11 +60,11 @@ func addResolve(topLevel *cobra.Command) {
bo.InsecureRegistry = po.InsecureRegistry
builder, err := makeBuilder(ctx, bo)
if err != nil {
return fmt.Errorf("error creating builder: %v", err)
return fmt.Errorf("error creating builder: %w", err)
}
publisher, err := makePublisher(po)
if err != nil {
return fmt.Errorf("error creating publisher: %v", err)
return fmt.Errorf("error creating publisher: %w", err)
}
defer publisher.Close()
return resolveFilesToWriter(ctx, builder, publisher, fo, so, os.Stdout)