Skip to content

Commit

Permalink
switch to a maintained uuid library
Browse files Browse the repository at this point in the history
The github.com/xtgo/uuid library has not been updated since
5 years, and may well be buggy. Use the google/uuid library
instead, which is actively maintained, tested, and widely
in use (e.g., in Docker, Kubernetes).

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Apr 14, 2019
1 parent 06bd201 commit a34f232
Show file tree
Hide file tree
Showing 18 changed files with 892 additions and 208 deletions.
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"net/http"
"time"

"github.com/google/uuid"
"github.com/segmentio/backo-go"
"github.com/xtgo/uuid"
)

// Instances of this type carry the different configuration options that may
Expand Down Expand Up @@ -169,5 +169,5 @@ func makeConfig(c Config) Config {
// This function returns a string representation of a UUID, it's the default
// function used for generating unique IDs.
func uid() string {
return uuid.NewRandom().String()
return uuid.New().String()
}
2 changes: 1 addition & 1 deletion vendor.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
github.com/google/uuid v1.1.1
github.com/segmentio/backo-go 204274ad699c0983a70203a566887f17a717fef4
github.com/segmentio/conf v1.1.0
github.com/segmentio/go-snakecase v1.1.0
github.com/segmentio/objconv v1.0.1
github.com/xtgo/uuid a0b114877d4caeffbd7f87e3757c17fce570fea7
gopkg.in/go-playground/mold.v2 v2.2.0
gopkg.in/validator.v2 135c24b11c19e52befcae2ec3fca5d9b78c4e98e
gopkg.in/yaml.v2 v2.2.2

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

19 changes: 19 additions & 0 deletions vendor/github.com/google/uuid/README.md

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

80 changes: 80 additions & 0 deletions vendor/github.com/google/uuid/dce.go

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

12 changes: 12 additions & 0 deletions vendor/github.com/google/uuid/doc.go

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

53 changes: 53 additions & 0 deletions vendor/github.com/google/uuid/hash.go

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

37 changes: 37 additions & 0 deletions vendor/github.com/google/uuid/marshal.go

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

90 changes: 90 additions & 0 deletions vendor/github.com/google/uuid/node.go

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

12 changes: 12 additions & 0 deletions vendor/github.com/google/uuid/node_js.go

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

33 changes: 33 additions & 0 deletions vendor/github.com/google/uuid/node_net.go

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

Loading

0 comments on commit a34f232

Please sign in to comment.