diff --git a/go.mod b/go.mod index b969f761c..7f747fae8 100644 --- a/go.mod +++ b/go.mod @@ -28,7 +28,6 @@ require ( github.com/spf13/viper v1.19.0 github.com/stretchr/testify v1.9.0 go.openly.dev/pointy v1.3.0 - golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 gorm.io/driver/postgres v1.5.9 gorm.io/driver/sqlite v1.5.6 gorm.io/gorm v1.25.12 @@ -88,6 +87,7 @@ require ( go.mongodb.org/mongo-driver v1.16.0 // indirect go.uber.org/multierr v1.11.0 // indirect golang.org/x/crypto v0.25.0 // indirect + golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect golang.org/x/net v0.27.0 // indirect golang.org/x/sync v0.7.0 // indirect golang.org/x/sys v0.22.0 // indirect diff --git a/pkg/clients/pulp/guards_rbac.go b/pkg/clients/pulp/guards_rbac.go index 272b0bc97..f9f063352 100644 --- a/pkg/clients/pulp/guards_rbac.go +++ b/pkg/clients/pulp/guards_rbac.go @@ -4,12 +4,12 @@ import ( "context" "errors" "fmt" + "slices" "github.com/google/uuid" "github.com/redhatinsights/edge-api/config" "github.com/redhatinsights/edge-api/pkg/ptr" "github.com/sirupsen/logrus" - "golang.org/x/exp/slices" ) var guardRbacName = "ROLE=readonly"