Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace golang.org/x/exp with stdlib #156

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ require (
github.com/open-policy-agent/opa v0.61.0
github.com/stretchr/testify v1.8.4
go.uber.org/zap v1.27.0
golang.org/x/exp v0.0.0-20240222234643-814bf88cf225
k8s.io/api v0.29.2
k8s.io/apimachinery v0.29.2
k8s.io/client-go v0.29.2
Expand Down Expand Up @@ -138,6 +137,7 @@ require (
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/crypto v0.19.0 // indirect
golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 // indirect
golang.org/x/net v0.19.0 // indirect
golang.org/x/oauth2 v0.14.0 // indirect
golang.org/x/sync v0.5.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion reporthandling/datastructuresmethods.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ package reporthandling
import (
"fmt"
"hash/fnv"
"slices"

"github.com/kubescape/k8s-interface/workloadinterface"
"github.com/kubescape/opa-utils/objectsenvelopes"
"github.com/kubescape/opa-utils/reporthandling/apis"
"github.com/kubescape/opa-utils/reporthandling/attacktrack/v1alpha1"
"github.com/mitchellh/mapstructure"
"golang.org/x/exp/slices"
)

const (
Expand Down
3 changes: 1 addition & 2 deletions reporthandling/helpers/v1/listing.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"sync"

"github.com/kubescape/opa-utils/reporthandling/apis"
"golang.org/x/exp/maps"
)

var allListsPool = &sync.Pool{
Expand Down Expand Up @@ -62,7 +61,7 @@ func (all *AllLists) Initialize(size int) {
// Clear remove all items and reset the counters
func (all *AllLists) Clear() {
if all.itemToStatus != nil {
maps.Clear(all.itemToStatus)
clear(all.itemToStatus)
all.passed = 0
all.failed = 0
all.skipped = 0
Expand Down
Loading