From 6a17270545d8c19a0b39fd8c37942b0d5276d937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Thu, 5 Sep 2024 18:49:01 +0200 Subject: [PATCH] fix import paths --- capability/command/command_test.go | 2 +- capability/policy/ipld.go | 2 +- capability/policy/match.go | 2 +- capability/policy/match_test.go | 4 ++-- capability/policy/policy.go | 2 +- capability/policy/selector/supported_test.go | 2 +- delegation/view.go | 6 +++--- internal/varsig/varsig_test.go | 3 ++- 8 files changed, 12 insertions(+), 11 deletions(-) diff --git a/capability/command/command_test.go b/capability/command/command_test.go index 7c18f42..cd35d69 100644 --- a/capability/command/command_test.go +++ b/capability/command/command_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/ucan-wg/go-ucan/v1/capability/command" + "github.com/ucan-wg/go-ucan/capability/command" ) func TestTop(t *testing.T) { diff --git a/capability/policy/ipld.go b/capability/policy/ipld.go index 1417afc..36f1519 100644 --- a/capability/policy/ipld.go +++ b/capability/policy/ipld.go @@ -9,7 +9,7 @@ import ( "github.com/ipld/go-ipld-prime/must" "github.com/ipld/go-ipld-prime/node/basicnode" - "github.com/ucan-wg/go-ucan/v1/capability/policy/selector" + "github.com/ucan-wg/go-ucan/capability/policy/selector" ) func FromIPLD(node datamodel.Node) (Policy, error) { diff --git a/capability/policy/match.go b/capability/policy/match.go index 61f72c4..b00d3af 100644 --- a/capability/policy/match.go +++ b/capability/policy/match.go @@ -8,7 +8,7 @@ import ( "github.com/ipld/go-ipld-prime/datamodel" "github.com/ipld/go-ipld-prime/must" - "github.com/ucan-wg/go-ucan/v1/capability/policy/selector" + "github.com/ucan-wg/go-ucan/capability/policy/selector" ) // Match determines if the IPLD node matches the policy document. diff --git a/capability/policy/match_test.go b/capability/policy/match_test.go index 2323272..b18aee9 100644 --- a/capability/policy/match_test.go +++ b/capability/policy/match_test.go @@ -11,8 +11,8 @@ import ( "github.com/ipld/go-ipld-prime/node/basicnode" "github.com/stretchr/testify/require" - "github.com/ucan-wg/go-ucan/v1/capability/policy/literal" - "github.com/ucan-wg/go-ucan/v1/capability/policy/selector" + "github.com/ucan-wg/go-ucan/capability/policy/literal" + "github.com/ucan-wg/go-ucan/capability/policy/selector" ) func TestMatch(t *testing.T) { diff --git a/capability/policy/policy.go b/capability/policy/policy.go index 111b350..73bdb12 100644 --- a/capability/policy/policy.go +++ b/capability/policy/policy.go @@ -6,7 +6,7 @@ import ( "github.com/gobwas/glob" "github.com/ipld/go-ipld-prime" - "github.com/ucan-wg/go-ucan/v1/capability/policy/selector" + "github.com/ucan-wg/go-ucan/capability/policy/selector" ) const ( diff --git a/capability/policy/selector/supported_test.go b/capability/policy/selector/supported_test.go index 70d1bec..6a6013a 100644 --- a/capability/policy/selector/supported_test.go +++ b/capability/policy/selector/supported_test.go @@ -12,7 +12,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/ucan-wg/go-ucan/v1/capability/policy/selector" + "github.com/ucan-wg/go-ucan/capability/policy/selector" ) // TestSupported Forms runs tests against the Selector according to the diff --git a/delegation/view.go b/delegation/view.go index 0c6dcd5..61f629d 100644 --- a/delegation/view.go +++ b/delegation/view.go @@ -6,9 +6,9 @@ import ( "github.com/ipld/go-ipld-prime/datamodel" - "github.com/ucan-wg/go-ucan/v1/capability/command" - "github.com/ucan-wg/go-ucan/v1/capability/policy" - "github.com/ucan-wg/go-ucan/v1/did" + "github.com/ucan-wg/go-ucan/capability/command" + "github.com/ucan-wg/go-ucan/capability/policy" + "github.com/ucan-wg/go-ucan/did" ) type View struct { diff --git a/internal/varsig/varsig_test.go b/internal/varsig/varsig_test.go index 21e8292..eb13ed1 100644 --- a/internal/varsig/varsig_test.go +++ b/internal/varsig/varsig_test.go @@ -7,7 +7,8 @@ import ( "github.com/libp2p/go-libp2p/core/crypto/pb" "github.com/stretchr/testify/assert" - "github.com/ucan-wg/go-ucan/v1/internal/varsig" + + "github.com/ucan-wg/go-ucan/internal/varsig" ) func TestDecode(t *testing.T) {