1
0
mirror of https://github.com/ko-build/ko.git synced 2025-07-15 23:54:17 +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

@ -70,11 +70,11 @@ func addRun(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()
@ -87,7 +87,7 @@ func addRun(topLevel *cobra.Command) {
}
imgs, err := publishImages(ctx, importPaths, publisher, builder)
if err != nil {
return fmt.Errorf("failed to publish images: %v", err)
return fmt.Errorf("failed to publish images: %w", err)
}
// Usually only one, but this is the simple way to access the