make the go module a v1

This commit is contained in:
Michael Muré
2024-08-30 23:11:51 +02:00
parent 7ab73a8317
commit 4b24eef195
7 changed files with 10 additions and 9 deletions

View File

@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/ucan-wg/go-ucan/capability/command"
"github.com/ucan-wg/go-ucan/v1/capability/command"
)
func TestTop(t *testing.T) {

View File

@@ -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/capability/policy/selector"
"github.com/ucan-wg/go-ucan/v1/capability/policy/selector"
)
// Match determines if the IPLD node matches the policy document.

View File

@@ -11,8 +11,8 @@ import (
"github.com/ipld/go-ipld-prime/node/basicnode"
"github.com/stretchr/testify/require"
"github.com/ucan-wg/go-ucan/capability/policy/literal"
"github.com/ucan-wg/go-ucan/capability/policy/selector"
"github.com/ucan-wg/go-ucan/v1/capability/policy/literal"
"github.com/ucan-wg/go-ucan/v1/capability/policy/selector"
)
func TestMatch(t *testing.T) {

View File

@@ -6,7 +6,7 @@ import (
"github.com/gobwas/glob"
"github.com/ipld/go-ipld-prime"
"github.com/ucan-wg/go-ucan/capability/policy/selector"
"github.com/ucan-wg/go-ucan/v1/capability/policy/selector"
)
const (

View File

@@ -16,7 +16,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/wI2L/jsondiff"
"github.com/ucan-wg/go-ucan/capability/policy/selector"
"github.com/ucan-wg/go-ucan/v1/capability/policy/selector"
)
//go:embed supported.json

View File

@@ -6,8 +6,8 @@ import (
"github.com/ipld/go-ipld-prime/datamodel"
"github.com/ucan-wg/go-ucan/capability/policy"
"github.com/ucan-wg/go-ucan/did"
"github.com/ucan-wg/go-ucan/v1/capability/policy"
"github.com/ucan-wg/go-ucan/v1/did"
)
type View struct {
@@ -90,6 +90,7 @@ func (view *View) Capability() *Capability {
}
// Capability is a subset of a delegation formed by the triple (subject, command, policy).
// TODO: useful?
type Capability struct {
// Principal that the chain is about (the Subject)
Subject did.DID

2
go.mod
View File

@@ -1,4 +1,4 @@
module github.com/ucan-wg/go-ucan
module github.com/ucan-wg/go-ucan/v1
go 1.22.1