From 1525aaa13972b611fa77118545d295f1595bfcd8 Mon Sep 17 00:00:00 2001 From: Steve Moyer Date: Mon, 9 Sep 2024 09:27:04 -0400 Subject: [PATCH] chore: fix module imports --- delegate.go | 12 ++++++------ delegate_test.go | 8 ++++---- delegation/delegatiom_options.go | 2 +- delegation/delegation.go | 12 ++++++------ delegation/delegation_test.go | 4 ++-- did/crypto_test.go | 2 +- internal/envelope/envelope.go | 4 ++-- internal/envelope/envelope_test.go | 6 +++--- internal/token/converter.go | 6 +++--- issue/issue.go | 4 ++-- 10 files changed, 30 insertions(+), 30 deletions(-) diff --git a/delegate.go b/delegate.go index 8f67007..b9dc288 100644 --- a/delegate.go +++ b/delegate.go @@ -5,12 +5,12 @@ import ( "time" "github.com/libp2p/go-libp2p/core/crypto" - "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/delegation" - "github.com/ucan-wg/go-ucan/v1/did" - "github.com/ucan-wg/go-ucan/v1/internal/envelope" - "github.com/ucan-wg/go-ucan/v1/issue" + "github.com/ucan-wg/go-ucan/capability/command" + "github.com/ucan-wg/go-ucan/capability/policy" + "github.com/ucan-wg/go-ucan/delegation" + "github.com/ucan-wg/go-ucan/did" + "github.com/ucan-wg/go-ucan/internal/envelope" + "github.com/ucan-wg/go-ucan/issue" ) const ( diff --git a/delegate_test.go b/delegate_test.go index 1a6305f..03bb37a 100644 --- a/delegate_test.go +++ b/delegate_test.go @@ -12,10 +12,10 @@ import ( "github.com/libp2p/go-libp2p/core/crypto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/ucan-wg/go-ucan/v1" - "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" + "github.com/ucan-wg/go-ucan/capability/command" + "github.com/ucan-wg/go-ucan/capability/policy" + "github.com/ucan-wg/go-ucan/did" ) const ( diff --git a/delegation/delegatiom_options.go b/delegation/delegatiom_options.go index 7ac5d47..c3aebad 100644 --- a/delegation/delegatiom_options.go +++ b/delegation/delegatiom_options.go @@ -5,7 +5,7 @@ package delegation import "fmt" import ( - "github.com/ucan-wg/go-ucan/v1/did" + "github.com/ucan-wg/go-ucan/did" "time" ) diff --git a/delegation/delegation.go b/delegation/delegation.go index 1666076..5884991 100644 --- a/delegation/delegation.go +++ b/delegation/delegation.go @@ -6,11 +6,11 @@ import ( "github.com/ipld/go-ipld-prime/datamodel" "github.com/ipld/go-ipld-prime/node/bindnode" "github.com/ipld/go-ipld-prime/schema" - "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/v1/internal/envelope" - "github.com/ucan-wg/go-ucan/v1/internal/token" + "github.com/ucan-wg/go-ucan/capability/command" + "github.com/ucan-wg/go-ucan/capability/policy" + "github.com/ucan-wg/go-ucan/did" + "github.com/ucan-wg/go-ucan/internal/envelope" + "github.com/ucan-wg/go-ucan/internal/token" ) const ( @@ -18,7 +18,7 @@ const ( ) //go:generate -command options go run github.com/launchdarkly/go-options -//go:generate options -type=config -prefix=With -output=delegatiom_options.go -cmp=false -imports=time,github.com/ucan-wg/go-ucan/v1/did +//go:generate options -type=config -prefix=With -output=delegatiom_options.go -cmp=false -imports=time,github.com/ucan-wg/go-ucan/did type config struct { Expiration *time.Time diff --git a/delegation/delegation_test.go b/delegation/delegation_test.go index 32c5b4f..3f3c5dc 100644 --- a/delegation/delegation_test.go +++ b/delegation/delegation_test.go @@ -8,8 +8,8 @@ import ( "github.com/ipld/go-ipld-prime/node/bindnode" "github.com/ipld/go-ipld-prime/schema" "github.com/stretchr/testify/require" - "github.com/ucan-wg/go-ucan/v1/delegation" - "github.com/ucan-wg/go-ucan/v1/internal/token" + "github.com/ucan-wg/go-ucan/delegation" + "github.com/ucan-wg/go-ucan/internal/token" ) func TestToken_Proto(t *testing.T) { diff --git a/did/crypto_test.go b/did/crypto_test.go index 98e38a9..d49657a 100644 --- a/did/crypto_test.go +++ b/did/crypto_test.go @@ -8,7 +8,7 @@ import ( "github.com/libp2p/go-libp2p/core/crypto" "github.com/multiformats/go-multicodec" "github.com/stretchr/testify/require" - "github.com/ucan-wg/go-ucan/v1/did" + "github.com/ucan-wg/go-ucan/did" ) func TestFromPubKey(t *testing.T) { diff --git a/internal/envelope/envelope.go b/internal/envelope/envelope.go index 998908c..9d3498d 100644 --- a/internal/envelope/envelope.go +++ b/internal/envelope/envelope.go @@ -11,8 +11,8 @@ import ( "github.com/ipld/go-ipld-prime/schema" crypto "github.com/libp2p/go-libp2p/core/crypto" "github.com/libp2p/go-libp2p/core/crypto/pb" - "github.com/ucan-wg/go-ucan/v1/internal/token" - "github.com/ucan-wg/go-ucan/v1/internal/varsig" + "github.com/ucan-wg/go-ucan/internal/token" + "github.com/ucan-wg/go-ucan/internal/varsig" ) // Tokener represents a type that can be wrapped in a UCAN Envelope. diff --git a/internal/envelope/envelope_test.go b/internal/envelope/envelope_test.go index 72e1afc..3ba3458 100644 --- a/internal/envelope/envelope_test.go +++ b/internal/envelope/envelope_test.go @@ -16,9 +16,9 @@ import ( "github.com/libp2p/go-libp2p/core/crypto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/ucan-wg/go-ucan/v1/did" - "github.com/ucan-wg/go-ucan/v1/internal/envelope" - "github.com/ucan-wg/go-ucan/v1/internal/token" + "github.com/ucan-wg/go-ucan/did" + "github.com/ucan-wg/go-ucan/internal/envelope" + "github.com/ucan-wg/go-ucan/internal/token" "gotest.tools/v3/golden" ) diff --git a/internal/token/converter.go b/internal/token/converter.go index 959628e..6c264a1 100644 --- a/internal/token/converter.go +++ b/internal/token/converter.go @@ -7,9 +7,9 @@ import ( "github.com/ipld/go-ipld-prime/datamodel" "github.com/ipld/go-ipld-prime/node/bindnode" - "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" ) func BindnodeOptions() []bindnode.Option { diff --git a/issue/issue.go b/issue/issue.go index bca4c37..0a87b51 100644 --- a/issue/issue.go +++ b/issue/issue.go @@ -3,8 +3,8 @@ package issue import ( "time" - "github.com/ucan-wg/go-ucan/v1/delegation" - "github.com/ucan-wg/go-ucan/v1/did" + "github.com/ucan-wg/go-ucan/delegation" + "github.com/ucan-wg/go-ucan/did" ) //go:generate -command options go run github.com/launchdarkly/go-options