chore: fix module imports

This commit is contained in:
Steve Moyer
2024-09-09 09:27:04 -04:00
parent ab4018d218
commit 1525aaa139
10 changed files with 30 additions and 30 deletions

View File

@@ -5,12 +5,12 @@ import (
"time" "time"
"github.com/libp2p/go-libp2p/core/crypto" "github.com/libp2p/go-libp2p/core/crypto"
"github.com/ucan-wg/go-ucan/v1/capability/command" "github.com/ucan-wg/go-ucan/capability/command"
"github.com/ucan-wg/go-ucan/v1/capability/policy" "github.com/ucan-wg/go-ucan/capability/policy"
"github.com/ucan-wg/go-ucan/v1/delegation" "github.com/ucan-wg/go-ucan/delegation"
"github.com/ucan-wg/go-ucan/v1/did" "github.com/ucan-wg/go-ucan/did"
"github.com/ucan-wg/go-ucan/v1/internal/envelope" "github.com/ucan-wg/go-ucan/internal/envelope"
"github.com/ucan-wg/go-ucan/v1/issue" "github.com/ucan-wg/go-ucan/issue"
) )
const ( const (

View File

@@ -12,10 +12,10 @@ import (
"github.com/libp2p/go-libp2p/core/crypto" "github.com/libp2p/go-libp2p/core/crypto"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/ucan-wg/go-ucan/v1" "github.com/ucan-wg/go-ucan"
"github.com/ucan-wg/go-ucan/v1/capability/command" "github.com/ucan-wg/go-ucan/capability/command"
"github.com/ucan-wg/go-ucan/v1/capability/policy" "github.com/ucan-wg/go-ucan/capability/policy"
"github.com/ucan-wg/go-ucan/v1/did" "github.com/ucan-wg/go-ucan/did"
) )
const ( const (

View File

@@ -5,7 +5,7 @@ package delegation
import "fmt" import "fmt"
import ( import (
"github.com/ucan-wg/go-ucan/v1/did" "github.com/ucan-wg/go-ucan/did"
"time" "time"
) )

View File

@@ -6,11 +6,11 @@ import (
"github.com/ipld/go-ipld-prime/datamodel" "github.com/ipld/go-ipld-prime/datamodel"
"github.com/ipld/go-ipld-prime/node/bindnode" "github.com/ipld/go-ipld-prime/node/bindnode"
"github.com/ipld/go-ipld-prime/schema" "github.com/ipld/go-ipld-prime/schema"
"github.com/ucan-wg/go-ucan/v1/capability/command" "github.com/ucan-wg/go-ucan/capability/command"
"github.com/ucan-wg/go-ucan/v1/capability/policy" "github.com/ucan-wg/go-ucan/capability/policy"
"github.com/ucan-wg/go-ucan/v1/did" "github.com/ucan-wg/go-ucan/did"
"github.com/ucan-wg/go-ucan/v1/internal/envelope" "github.com/ucan-wg/go-ucan/internal/envelope"
"github.com/ucan-wg/go-ucan/v1/internal/token" "github.com/ucan-wg/go-ucan/internal/token"
) )
const ( const (
@@ -18,7 +18,7 @@ const (
) )
//go:generate -command options go run github.com/launchdarkly/go-options //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 { type config struct {
Expiration *time.Time Expiration *time.Time

View File

@@ -8,8 +8,8 @@ import (
"github.com/ipld/go-ipld-prime/node/bindnode" "github.com/ipld/go-ipld-prime/node/bindnode"
"github.com/ipld/go-ipld-prime/schema" "github.com/ipld/go-ipld-prime/schema"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/ucan-wg/go-ucan/v1/delegation" "github.com/ucan-wg/go-ucan/delegation"
"github.com/ucan-wg/go-ucan/v1/internal/token" "github.com/ucan-wg/go-ucan/internal/token"
) )
func TestToken_Proto(t *testing.T) { func TestToken_Proto(t *testing.T) {

View File

@@ -8,7 +8,7 @@ import (
"github.com/libp2p/go-libp2p/core/crypto" "github.com/libp2p/go-libp2p/core/crypto"
"github.com/multiformats/go-multicodec" "github.com/multiformats/go-multicodec"
"github.com/stretchr/testify/require" "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) { func TestFromPubKey(t *testing.T) {

View File

@@ -11,8 +11,8 @@ import (
"github.com/ipld/go-ipld-prime/schema" "github.com/ipld/go-ipld-prime/schema"
crypto "github.com/libp2p/go-libp2p/core/crypto" crypto "github.com/libp2p/go-libp2p/core/crypto"
"github.com/libp2p/go-libp2p/core/crypto/pb" "github.com/libp2p/go-libp2p/core/crypto/pb"
"github.com/ucan-wg/go-ucan/v1/internal/token" "github.com/ucan-wg/go-ucan/internal/token"
"github.com/ucan-wg/go-ucan/v1/internal/varsig" "github.com/ucan-wg/go-ucan/internal/varsig"
) )
// Tokener represents a type that can be wrapped in a UCAN Envelope. // Tokener represents a type that can be wrapped in a UCAN Envelope.

View File

@@ -16,9 +16,9 @@ import (
"github.com/libp2p/go-libp2p/core/crypto" "github.com/libp2p/go-libp2p/core/crypto"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/ucan-wg/go-ucan/v1/did" "github.com/ucan-wg/go-ucan/did"
"github.com/ucan-wg/go-ucan/v1/internal/envelope" "github.com/ucan-wg/go-ucan/internal/envelope"
"github.com/ucan-wg/go-ucan/v1/internal/token" "github.com/ucan-wg/go-ucan/internal/token"
"gotest.tools/v3/golden" "gotest.tools/v3/golden"
) )

View File

@@ -7,9 +7,9 @@ import (
"github.com/ipld/go-ipld-prime/datamodel" "github.com/ipld/go-ipld-prime/datamodel"
"github.com/ipld/go-ipld-prime/node/bindnode" "github.com/ipld/go-ipld-prime/node/bindnode"
"github.com/ucan-wg/go-ucan/v1/capability/command" "github.com/ucan-wg/go-ucan/capability/command"
"github.com/ucan-wg/go-ucan/v1/capability/policy" "github.com/ucan-wg/go-ucan/capability/policy"
"github.com/ucan-wg/go-ucan/v1/did" "github.com/ucan-wg/go-ucan/did"
) )
func BindnodeOptions() []bindnode.Option { func BindnodeOptions() []bindnode.Option {

View File

@@ -3,8 +3,8 @@ package issue
import ( import (
"time" "time"
"github.com/ucan-wg/go-ucan/v1/delegation" "github.com/ucan-wg/go-ucan/delegation"
"github.com/ucan-wg/go-ucan/v1/did" "github.com/ucan-wg/go-ucan/did"
) )
//go:generate -command options go run github.com/launchdarkly/go-options //go:generate -command options go run github.com/launchdarkly/go-options