Skip to content

Commit 6fc675c

Browse files
committed
Missed committing one change
1 parent fe9b17f commit 6fc675c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/scorecard/plugins/plugin_runner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"bytes"
1919
"context"
2020
"encoding/json"
21+
"errors"
2122
"fmt"
2223
"io"
2324
"io/ioutil"
@@ -37,7 +38,6 @@ import (
3738
"github.com/ghodss/yaml"
3839
olmapiv1alpha1 "github.com/operator-framework/operator-lifecycle-manager/pkg/api/apis/operators/v1alpha1"
3940
olminstall "github.com/operator-framework/operator-lifecycle-manager/pkg/controller/install"
40-
"github.com/pkg/errors"
4141
"github.com/sirupsen/logrus"
4242
v1 "k8s.io/api/core/v1"
4343
extscheme "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/scheme"
@@ -326,7 +326,7 @@ func getCRFromCSV(currentCRMans []string, crJSONStr string, csvName string) ([]s
326326
return finalCR, fmt.Errorf("metadata.annotations['alm-examples'] in CSV %s incorrectly formatted: %v", csvName, err)
327327
}
328328
if len(crs) == 0 {
329-
return finalCR, errors.Errorf("no CRs found in metadata.annotations['alm-examples'] in CSV %s and cr-manifest config option not set", csvName)
329+
return finalCR, fmt.Errorf("no CRs found in metadata.annotations['alm-examples'] in CSV %s and cr-manifest config option not set", csvName)
330330
}
331331
// TODO: run scorecard against all CR's in CSV.
332332
cr := crs[0]

0 commit comments

Comments
 (0)