File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -18,15 +18,14 @@ import (
18
18
"flag"
19
19
"fmt"
20
20
"io"
21
- "io/ioutil"
22
21
"os"
23
22
"path/filepath"
24
23
"regexp"
25
24
"strings"
26
25
"testing"
27
26
28
27
"github.com/blakesmith/ar"
29
- rpm "github.com/cavaliercoder/go-rpm"
28
+ "github.com/cavaliercoder/go-rpm"
30
29
)
31
30
32
31
const (
@@ -85,7 +84,7 @@ func TestTar(t *testing.T) {
85
84
}
86
85
87
86
func TestZip (t * testing.T ) {
88
- zips := getFiles (t , regexp .MustCompile (`^\w+beat- \S+.zip$` ))
87
+ zips := getFiles (t , regexp .MustCompile (`^\w+\S+.zip$` ))
89
88
for _ , zip := range zips {
90
89
checkZip (t , zip )
91
90
}
@@ -792,7 +791,7 @@ type dockerManifest struct {
792
791
}
793
792
794
793
func readDockerManifest (r io.Reader ) (* dockerManifest , error ) {
795
- data , err := ioutil .ReadAll (r )
794
+ data , err := io .ReadAll (r )
796
795
if err != nil {
797
796
return nil , err
798
797
}
@@ -820,7 +819,7 @@ type dockerInfo struct {
820
819
}
821
820
822
821
func readDockerInfo (r io.Reader ) (* dockerInfo , error ) {
823
- data , err := ioutil .ReadAll (r )
822
+ data , err := io .ReadAll (r )
824
823
if err != nil {
825
824
return nil , err
826
825
}
You can’t perform that action at this time.
0 commit comments