Skip to content

Commit

Permalink
switched uuid package from satori/go.uuid to gofrs/uuid
Browse files Browse the repository at this point in the history
As per https://github.com/Azure/azure-sdk-for-go/blob/master/CHANGELOG.md#v5200

NOTE: We have switched the uuid package from github.com/satori/go.uuid
to github.com/gofrs/uuid as announced in this issue:
Azure/azure-sdk-for-go#14283

: go get github.com/gofrs/uuid
: vendor gofrs/uuid
  • Loading branch information
drewandersonnz committed Mar 17, 2021
1 parent 4701ba5 commit 6b45658
Show file tree
Hide file tree
Showing 42 changed files with 1,092 additions and 34 deletions.
2 changes: 1 addition & 1 deletion cmd/aro/portal.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"os"
"strings"

uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"
"github.com/sirupsen/logrus"

"github.com/Azure/ARO-RP/pkg/database"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ require (
github.com/go-openapi/spec v0.20.3 // indirect
github.com/go-playground/validator/v10 v10.4.1 // indirect
github.com/go-test/deep v1.0.7
github.com/gofrs/uuid v4.0.0+incompatible
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/mock v1.4.4
github.com/golangci/golangci-lint v1.32.2
Expand Down Expand Up @@ -79,7 +80,6 @@ require (
github.com/prometheus/common v0.15.0
github.com/prometheus/procfs v0.6.0 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/satori/go.uuid v1.2.0
github.com/sirupsen/logrus v1.7.1
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635 // indirect
github.com/ugorji/go/codec v1.2.5-0.20210226122216-b5e6aedbb7b6
Expand Down
2 changes: 1 addition & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,7 @@ github.com/gofrs/flock v0.8.0 h1:MSdYClljsF3PbENUUEx85nkWfJSGfzYI9yEBZOJz6CY=
github.com/gofrs/flock v0.8.0/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU=
github.com/gofrs/uuid v3.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
github.com/gofrs/uuid v3.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s=
github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
github.com/gogo/protobuf v1.0.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
Expand Down Expand Up @@ -1838,7 +1839,6 @@ github.com/samuel/go-zookeeper v0.0.0-20190810000440-0ceca61e4d75/go.mod h1:gi+0
github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E=
github.com/santhosh-tekuri/jsonschema v1.2.4/go.mod h1:TEAUOeZSmIxTTuHatJzrvARHiuO9LYd+cIxzgEHCQI4=
github.com/satori/go.uuid v0.0.0-20160603004225-b111a074d5ef/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww=
github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
github.com/satori/uuid v0.0.0-20160927100844-b061729afc07/go.mod h1:B8HLsPLik/YNn6KKWVMDJ8nzCL8RP5WyfsnmvnAEwIU=
github.com/satori/uuid v1.2.0/go.mod h1:B8HLsPLik/YNn6KKWVMDJ8nzCL8RP5WyfsnmvnAEwIU=
Expand Down
4 changes: 2 additions & 2 deletions hack/validate-imports/validate-imports.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func acceptableNames(path string) []string {
return []string{"icazure"}
case "github.com/openshift/installer/pkg/types/azure":
return []string{"azuretypes"}
case "github.com/satori/go.uuid":
case "github.com/gofrs/uuid":
return []string{"uuid"}
case "golang.org/x/crypto/ssh":
return []string{"", "cryptossh"}
Expand Down Expand Up @@ -227,7 +227,7 @@ nextImport:
errs = append(errs, fmt.Errorf("%s is imported; use github.com/ghodss/yaml", value))
continue nextImport
case "github.com/google/uuid":
errs = append(errs, fmt.Errorf("%s is imported; use github.com/satori/go.uuid", value))
errs = append(errs, fmt.Errorf("%s is imported; use github.com/gofrs/uuid", value))
continue nextImport
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/api/admin/openshiftcluster_validatestatic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"
"time"

uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"

"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/test/validate"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"

"github.com/Azure/go-autorest/autorest/azure"
uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"

"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/api/validate"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"

"github.com/Azure/go-autorest/autorest/azure"
uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"

"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/util/deployment"
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/v20200430/openshiftcluster_validatestatic.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"

"github.com/Azure/go-autorest/autorest/azure"
uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"

"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/api/validate"
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/v20200430/openshiftcluster_validatestatic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"

"github.com/Azure/go-autorest/autorest/azure"
uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"

"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/util/deployment"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"

"github.com/Azure/go-autorest/autorest/azure"
uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"

"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/api/validate"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"

"github.com/Azure/go-autorest/autorest/azure"
uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"

"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/util/deployment"
Expand Down
2 changes: 1 addition & 1 deletion pkg/database/monitors.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"net/http"
"strings"

uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"

"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/database/cosmosdb"
Expand Down
2 changes: 1 addition & 1 deletion pkg/database/openshiftclusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"

"github.com/Azure/go-autorest/autorest/azure"
uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"

"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/database/cosmosdb"
Expand Down
2 changes: 1 addition & 1 deletion pkg/database/subscriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"net/http"
"strings"

uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"

"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/database/cosmosdb"
Expand Down
2 changes: 1 addition & 1 deletion pkg/deploy/generator/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"encoding/json"
"regexp"

uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"

"github.com/Azure/ARO-RP/pkg/util/arm"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/env/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/azure/auth"
"github.com/Azure/go-autorest/autorest/to"
uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"
"github.com/sirupsen/logrus"

"github.com/Azure/ARO-RP/pkg/util/azureclient/graphrbac"
Expand Down
2 changes: 1 addition & 1 deletion pkg/frontend/asyncoperations.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"time"

"github.com/gorilla/mux"
uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"

"github.com/Azure/ARO-RP/pkg/api"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/frontend/middleware/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"time"

"github.com/gorilla/mux"
uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"
"github.com/sirupsen/logrus"

"github.com/Azure/ARO-RP/pkg/api"
Expand Down
2 changes: 1 addition & 1 deletion pkg/frontend/middleware/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"

"github.com/gorilla/mux"
uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"
"github.com/sirupsen/logrus"

"github.com/Azure/ARO-RP/pkg/api"
Expand Down
2 changes: 1 addition & 1 deletion pkg/frontend/openshiftcluster_putorpatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

"github.com/Azure/go-autorest/autorest/azure"
"github.com/gorilla/mux"
uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"
"github.com/sirupsen/logrus"

"github.com/Azure/ARO-RP/pkg/api"
Expand Down
2 changes: 1 addition & 1 deletion pkg/portal/kubeconfig/kubeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"time"

"github.com/gorilla/mux"
uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"
"github.com/sirupsen/logrus"
clientcmdv1 "k8s.io/client-go/tools/clientcmd/api/v1"

Expand Down
2 changes: 1 addition & 1 deletion pkg/portal/middleware/aad.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/coreos/go-oidc"
"github.com/gorilla/mux"
"github.com/gorilla/sessions"
uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"
"github.com/sirupsen/logrus"
"golang.org/x/oauth2"
"golang.org/x/oauth2/microsoft"
Expand Down
2 changes: 1 addition & 1 deletion pkg/portal/middleware/aad_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/golang/mock/gomock"
"github.com/gorilla/mux"
"github.com/gorilla/securecookie"
uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"
"github.com/sirupsen/logrus"
"golang.org/x/oauth2"

Expand Down
2 changes: 1 addition & 1 deletion pkg/portal/middleware/bearer.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http"
"strings"

uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"

"github.com/Azure/ARO-RP/pkg/database"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/portal/ssh/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"sync"
"time"

uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"
"github.com/sirupsen/logrus"
cryptossh "golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh/agent"
Expand Down
2 changes: 1 addition & 1 deletion pkg/portal/ssh/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"time"

"github.com/gorilla/mux"
uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"
"github.com/sirupsen/logrus"
cryptossh "golang.org/x/crypto/ssh"

Expand Down
2 changes: 1 addition & 1 deletion pkg/util/acrtoken/acrtoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/to"
uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"

"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/env"
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/arm/marshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"reflect"

uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"
)

// MarshalJSON marshals the nested r.Resource ignoring any MarshalJSON() methods
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/cluster/aad.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
azgraphrbac "github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/date"
uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"
"k8s.io/apimachinery/pkg/util/wait"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/util/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/azure/auth"
"github.com/Azure/go-autorest/autorest/to"
uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"
"github.com/sirupsen/logrus"
"k8s.io/apimachinery/pkg/util/wait"

Expand Down
2 changes: 1 addition & 1 deletion pkg/util/log/audit/audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"encoding/json"
"sync"

uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion test/database/fixtures.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package database
import (
"context"

uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"

"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/database"
Expand Down
15 changes: 15 additions & 0 deletions vendor/github.com/gofrs/uuid/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions vendor/github.com/gofrs/uuid/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions vendor/github.com/gofrs/uuid/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6b45658

Please sign in to comment.