chore: fix module imports
This commit is contained in:
12
delegate.go
12
delegate.go
@@ -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 (
|
||||||
|
|||||||
@@ -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 (
|
||||||
|
|||||||
@@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user