Skip to content

Commit

Permalink
Update the go-uuid library (#546)
Browse files Browse the repository at this point in the history
Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
  • Loading branch information
Cosmin Cojocar authored and timothysc committed Oct 19, 2018
1 parent d5467f7 commit 4c813fc
Show file tree
Hide file tree
Showing 10 changed files with 337 additions and 95 deletions.
6 changes: 3 additions & 3 deletions Gopkg.lock

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

2 changes: 1 addition & 1 deletion Gopkg.toml
Expand Up @@ -43,7 +43,7 @@

[[constraint]]
name = "github.com/satori/go.uuid"
version = "1.2.0"
branch = "master"

[[constraint]]
branch = "master"
Expand Down
3 changes: 2 additions & 1 deletion pkg/config/config.go
Expand Up @@ -270,7 +270,8 @@ func (c SizeOrTimeLimitConfig) timeLimitDuration() (val time.Duration, defaulted
// New returns a newly-constructed Config object with default values.
func New() *Config {
var cfg Config
cfg.UUID = uuid.NewV4().String()
cfgUuid, _ := uuid.NewV4()
cfg.UUID = cfgUuid.String()
cfg.Description = "DEFAULT"
cfg.ResultsDir = "/tmp/sonobuoy"
cfg.Version = buildinfo.Version
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/driver/utils/utils.go
Expand Up @@ -31,7 +31,7 @@ import (
// GetSessionID generates a new session id.
// This is essentially an instance of a running plugin.
func GetSessionID() string {
uuid := gouuid.NewV4()
uuid, _ := gouuid.NewV4()
ret := make([]byte, hex.EncodedLen(8))
hex.Encode(ret, uuid.Bytes()[0:8])
return string(ret)
Expand Down
4 changes: 4 additions & 0 deletions vendor/github.com/imdario/mergo/testdata/license.yml

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

6 changes: 2 additions & 4 deletions vendor/github.com/satori/go.uuid/.travis.yml

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

20 changes: 15 additions & 5 deletions vendor/github.com/satori/go.uuid/README.md

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

0 comments on commit 4c813fc

Please sign in to comment.