Skip to content

Commit

Permalink
Merge pull request #155 from dtrudg/sif-pick-381
Browse files Browse the repository at this point in the history
Pick #98 / #111 (SIF adjacent) to release-3.8
  • Loading branch information
dtrudg authored Jul 16, 2021
2 parents d79b495 + c289b1f commit 437edbc
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions e2e/imgbuild/regressions.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"testing"
"text/template"

uuid "github.com/satori/go.uuid"
"github.com/google/uuid"
"github.com/sylabs/singularity/e2e/internal/e2e"
"github.com/sylabs/singularity/internal/pkg/test/tool/require"
"github.com/sylabs/singularity/internal/pkg/util/fs"
Expand Down Expand Up @@ -177,7 +177,7 @@ func (c *imgBuildTests) issue4583(t *testing.T) {
}

func (c imgBuildTests) issue4837(t *testing.T) {
id, err := uuid.NewV4()
id, err := uuid.NewRandom()
if err != nil {
t.Fatal(err)
}
Expand Down
10 changes: 4 additions & 6 deletions e2e/instance/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,19 @@ import (
"syscall"
"testing"

"github.com/sylabs/singularity/internal/pkg/test/tool/require"
"github.com/sylabs/singularity/pkg/util/fs/proc"

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

"github.com/google/uuid"
"github.com/pkg/errors"
"github.com/sylabs/singularity/e2e/internal/e2e"
"github.com/sylabs/singularity/e2e/internal/testhelper"
"github.com/sylabs/singularity/internal/pkg/test/tool/require"
"github.com/sylabs/singularity/pkg/util/fs/proc"
)

// randomName generates a random name based on a UUID.
func randomName(t *testing.T) string {
t.Helper()

id, err := uuid.NewV4()
id, err := uuid.NewRandom()
if err != nil {
t.Fatal(err)
}
Expand Down
4 changes: 2 additions & 2 deletions e2e/oci/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"runtime"
"testing"

"github.com/google/uuid"
"github.com/opencontainers/runtime-spec/specs-go"
"github.com/pkg/errors"
uuid "github.com/satori/go.uuid"
"github.com/sylabs/singularity/e2e/internal/e2e"
"github.com/sylabs/singularity/e2e/internal/testhelper"
"github.com/sylabs/singularity/internal/pkg/runtime/engine/config/oci"
Expand All @@ -25,7 +25,7 @@ import (
func randomContainerID(t *testing.T) string {
t.Helper()

id, err := uuid.NewV4()
id, err := uuid.NewRandom()
if err != nil {
t.Fatal(err)
}
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ require (
github.com/godbus/dbus v4.1.0+incompatible // indirect
github.com/gofrs/uuid v3.2.0+incompatible // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/google/uuid v1.2.0
github.com/gorilla/handlers v1.4.0 // indirect
github.com/gorilla/websocket v1.4.2
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 // indirect
Expand Down
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ github.com/google/renameio v1.0.1-0.20210406141108-81588dbe0453/go.mod h1:t/HQoY
github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.2.0 h1:qJYtXnJRWmpe7m/3XlyhrsLrEURqHRM2kxzoxXqyUDs=
github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
Expand Down
4 changes: 2 additions & 2 deletions pkg/util/crypt/crypt_dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"syscall"
"time"

uuid "github.com/satori/go.uuid"
"github.com/google/uuid"
"github.com/sylabs/singularity/internal/pkg/util/bin"
"github.com/sylabs/singularity/pkg/sylog"
"github.com/sylabs/singularity/pkg/util/fs/lock"
Expand Down Expand Up @@ -247,7 +247,7 @@ func copyDeviceContents(source, dest string, size int64) error {
}

func getNextAvailableCryptDevice() (string, error) {
id, err := uuid.NewV4()
id, err := uuid.NewRandom()
if err != nil {
return "", err
}
Expand Down

0 comments on commit 437edbc

Please sign in to comment.