From 69d88505fd7f4cb0d9e4f1918de296342fe05858 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 23 Aug 2021 15:05:15 +0200 Subject: go mod: declare module version v2 Our git version is v2+ for some time now, but go.mod still declared v1. Hopefully making both match makes https://pkg.go.dev/github.com/rfjakob/gocryptfs/v2 work. All the import paths have been fixed like this: find . -name \*.go | xargs sed -i s%github.com/rfjakob/gocryptfs/%github.com/rfjakob/gocryptfs/v2/% --- tests/defaults/acl_test.go | 6 +++--- tests/defaults/ctlsock_test.go | 4 ++-- tests/defaults/diriv_test.go | 2 +- tests/defaults/main_test.go | 4 ++-- tests/defaults/performance_test.go | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) (limited to 'tests/defaults') diff --git a/tests/defaults/acl_test.go b/tests/defaults/acl_test.go index f3c707e..94d3c38 100644 --- a/tests/defaults/acl_test.go +++ b/tests/defaults/acl_test.go @@ -14,10 +14,10 @@ import ( "github.com/pkg/xattr" - "github.com/rfjakob/gocryptfs/tests/test_helpers" + "github.com/rfjakob/gocryptfs/v2/tests/test_helpers" ) -// https://github.com/rfjakob/gocryptfs/issues/543 +// https://github.com/rfjakob/gocryptfs/v2/issues/543 func TestCpA(t *testing.T) { fn1 := filepath.Join(test_helpers.TmpDir, t.Name()) fn2 := filepath.Join(test_helpers.DefaultPlainDir, t.Name()) @@ -77,7 +77,7 @@ func getfacl(fn string) (string, error) { return string(out), err } -// https://github.com/rfjakob/gocryptfs/issues/543 +// https://github.com/rfjakob/gocryptfs/v2/issues/543 func TestAcl543(t *testing.T) { fn1 := test_helpers.TmpDir + "/TestAcl543" fn2 := test_helpers.DefaultPlainDir + "/TestAcl543" diff --git a/tests/defaults/ctlsock_test.go b/tests/defaults/ctlsock_test.go index ac64f42..78841b9 100644 --- a/tests/defaults/ctlsock_test.go +++ b/tests/defaults/ctlsock_test.go @@ -5,8 +5,8 @@ import ( "syscall" "testing" - "github.com/rfjakob/gocryptfs/ctlsock" - "github.com/rfjakob/gocryptfs/tests/test_helpers" + "github.com/rfjakob/gocryptfs/v2/ctlsock" + "github.com/rfjakob/gocryptfs/v2/tests/test_helpers" ) func TestCtlSock(t *testing.T) { diff --git a/tests/defaults/diriv_test.go b/tests/defaults/diriv_test.go index bf8f233..639b33d 100644 --- a/tests/defaults/diriv_test.go +++ b/tests/defaults/diriv_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/rfjakob/gocryptfs/tests/test_helpers" + "github.com/rfjakob/gocryptfs/v2/tests/test_helpers" ) func TestDirIVRace(t *testing.T) { diff --git a/tests/defaults/main_test.go b/tests/defaults/main_test.go index ddaca68..0acab2d 100644 --- a/tests/defaults/main_test.go +++ b/tests/defaults/main_test.go @@ -14,7 +14,7 @@ import ( "syscall" "testing" - "github.com/rfjakob/gocryptfs/tests/test_helpers" + "github.com/rfjakob/gocryptfs/v2/tests/test_helpers" ) func TestMain(m *testing.M) { @@ -239,7 +239,7 @@ func TestMvWarningSymlink(t *testing.T) { if err != nil { t.Log(string(out)) if runtime.GOOS == "darwin" { - t.Skip("mv on darwin chokes on broken symlinks, see https://github.com/rfjakob/gocryptfs/issues/349") + t.Skip("mv on darwin chokes on broken symlinks, see https://github.com/rfjakob/gocryptfs/v2/issues/349") } t.Fatal(err) } diff --git a/tests/defaults/performance_test.go b/tests/defaults/performance_test.go index a2ecf8c..11d827f 100644 --- a/tests/defaults/performance_test.go +++ b/tests/defaults/performance_test.go @@ -8,7 +8,7 @@ import ( "os" "testing" - "github.com/rfjakob/gocryptfs/tests/test_helpers" + "github.com/rfjakob/gocryptfs/v2/tests/test_helpers" ) // Benchmarks -- cgit v1.2.3