Skip to content

Commit c19f865

Browse files
refactor: remove v1 packages
1 parent 73689df commit c19f865

File tree

12 files changed

+11
-11
lines changed

12 files changed

+11
-11
lines changed

cmd/bundle.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package cmd
22

33
import (
4+
"log/slog"
45
"os"
56
"path"
67

78
"github.com/gatecheckdev/gatecheck/pkg/gatecheck"
8-
"github.com/sagikazarmark/slog-shim"
99
"github.com/spf13/cobra"
1010
)
1111

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ require (
88
github.com/lmittmann/tint v1.0.4
99
github.com/olekukonko/tablewriter v0.0.5
1010
github.com/pelletier/go-toml/v2 v2.2.2
11-
github.com/sagikazarmark/slog-shim v0.1.0
1211
github.com/spf13/cobra v1.8.0
1312
github.com/spf13/viper v1.18.2
1413
gopkg.in/yaml.v3 v3.0.1
@@ -24,6 +23,7 @@ require (
2423
github.com/rivo/uniseg v0.4.7 // indirect
2524
github.com/rogpeppe/go-internal v1.12.0 // indirect
2625
github.com/sagikazarmark/locafero v0.4.0 // indirect
26+
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
2727
github.com/sourcegraph/conc v0.3.0 // indirect
2828
github.com/spf13/afero v1.11.0 // indirect
2929
github.com/spf13/cast v1.6.0 // indirect
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

pkg/gatecheck/download.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"io"
55
"net/http"
66

7-
"github.com/gatecheckdev/gatecheck/pkg/epss/v1"
8-
"github.com/gatecheckdev/gatecheck/pkg/kev/v1"
7+
"github.com/gatecheckdev/gatecheck/pkg/epss"
8+
"github.com/gatecheckdev/gatecheck/pkg/kev"
99
)
1010

1111
type fetchOptions struct {

pkg/gatecheck/list.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"strings"
1212

1313
"github.com/gatecheckdev/gatecheck/pkg/archive"
14-
"github.com/gatecheckdev/gatecheck/pkg/artifacts/v1"
15-
"github.com/gatecheckdev/gatecheck/pkg/epss/v1"
14+
"github.com/gatecheckdev/gatecheck/pkg/artifacts"
15+
"github.com/gatecheckdev/gatecheck/pkg/epss"
1616
"github.com/gatecheckdev/gatecheck/pkg/format"
1717
"github.com/olekukonko/tablewriter"
1818
)

pkg/gatecheck/validate.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import (
1111
"strings"
1212

1313
"github.com/gatecheckdev/gatecheck/pkg/archive"
14-
"github.com/gatecheckdev/gatecheck/pkg/artifacts/v1"
15-
"github.com/gatecheckdev/gatecheck/pkg/epss/v1"
16-
"github.com/gatecheckdev/gatecheck/pkg/kev/v1"
14+
"github.com/gatecheckdev/gatecheck/pkg/artifacts"
15+
"github.com/gatecheckdev/gatecheck/pkg/epss"
16+
"github.com/gatecheckdev/gatecheck/pkg/kev"
1717
)
1818

1919
var ErrValidationFailure = errors.New("Validation Failure")

pkg/gatecheck/validate_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"testing"
77
"time"
88

9-
"github.com/gatecheckdev/gatecheck/pkg/artifacts/v1"
9+
"github.com/gatecheckdev/gatecheck/pkg/artifacts"
1010
"github.com/lmittmann/tint"
1111
)
1212

pkg/kev/v1/kev.go pkg/kev/kev.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import (
55
"encoding/json"
66
"errors"
77
"io"
8+
"log/slog"
89
"net/http"
910
"time"
1011

1112
"github.com/dustin/go-humanize"
12-
"github.com/sagikazarmark/slog-shim"
1313
)
1414

1515
const DefaultBaseURL = "https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json"

0 commit comments

Comments
 (0)