Skip to content

Commit

Permalink
Migrate from satori/go.uuid to gofrs/uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
oksanabaza committed Feb 26, 2024
1 parent a3c8978 commit a0d6b45
Show file tree
Hide file tree
Showing 13 changed files with 6 additions and 932 deletions.
Expand Up @@ -22,7 +22,7 @@ import (
"encoding/hex"
"encoding/json"
"fmt"
"github.com/satori/go.uuid"
"github.com/gofrs/uuid"
"net/url"
"reflect"
"strconv"
Expand All @@ -37,7 +37,7 @@ var (

// GetUUIDV4 returns uuidHex
func GetUUIDV4() (uuidHex string) {
uuidV4 := uuid.NewV4()
uuidV4, _ := uuid.NewV4()
uuidHex = hex.EncodeToString(uuidV4.Bytes())
return
}
Expand Down
5 changes: 3 additions & 2 deletions cluster-autoscaler/go.mod
@@ -1,6 +1,6 @@
module k8s.io/autoscaler/cluster-autoscaler

go 1.21
go 1.21.6

require (
cloud.google.com/go/compute/metadata v0.2.3
Expand All @@ -25,7 +25,6 @@ require (
github.com/onsi/gomega v1.29.0
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.16.0
github.com/satori/go.uuid v1.2.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.8.4
golang.org/x/crypto v0.14.0
Expand Down Expand Up @@ -263,3 +262,5 @@ replace k8s.io/dynamic-resource-allocation => k8s.io/dynamic-resource-allocation
replace k8s.io/kms => k8s.io/kms v0.29.0-alpha.3

replace k8s.io/endpointslice => k8s.io/endpointslice v0.29.0-alpha.3

replace github.com/satori/go.uuid => github.com/gofrs/uuid/v5 v5.0.0
2 changes: 0 additions & 2 deletions cluster-autoscaler/go.sum
Expand Up @@ -509,8 +509,6 @@ github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021 h1:if3/24+h9Sq6eDx8
github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021/go.mod h1:DM5xW0nvfNNm2uytzsvhI3OnX8uzaRAg8UX/CnDqbto=
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww=
github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
github.com/seccomp/libseccomp-golang v0.10.0 h1:aA4bp+/Zzi0BnWZ2F1wgNBs5gTpm+na2rWM6M9YjLpY=
github.com/seccomp/libseccomp-golang v0.10.0/go.mod h1:JA8cRccbGaA1s33RQf7Y1+q9gHmZX1yB/z9WDN1C6fg=
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
Expand Down
23 changes: 0 additions & 23 deletions cluster-autoscaler/vendor/github.com/satori/go.uuid/.travis.yml

This file was deleted.

20 changes: 0 additions & 20 deletions cluster-autoscaler/vendor/github.com/satori/go.uuid/LICENSE

This file was deleted.

65 changes: 0 additions & 65 deletions cluster-autoscaler/vendor/github.com/satori/go.uuid/README.md

This file was deleted.

206 changes: 0 additions & 206 deletions cluster-autoscaler/vendor/github.com/satori/go.uuid/codec.go

This file was deleted.

0 comments on commit a0d6b45

Please sign in to comment.