From 4c1ae3a0be5a64ad5f9fe7dafd6c3bb77d200484 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Thu, 8 Jan 2026 15:46:00 -0500 Subject: [PATCH] refactor(pkg): Migrate package imports to use new code.sonr.org/go/ucan module path --- pkg/policy/ipld.go | 4 ++-- pkg/policy/literal/literal.go | 2 +- pkg/policy/literal/literal_test.go | 2 +- pkg/policy/match_test.go | 2 +- pkg/policy/policy.go | 2 +- pkg/policy/policy_test.go | 4 ++-- pkg/policy/policytest/spec.go | 6 +++--- pkg/policy/selector/parsing.go | 2 +- pkg/policy/selector/parsing_test.go | 2 +- pkg/policy/selector/supported_test.go | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/pkg/policy/ipld.go b/pkg/policy/ipld.go index 8642035..516bd36 100644 --- a/pkg/policy/ipld.go +++ b/pkg/policy/ipld.go @@ -9,8 +9,8 @@ import ( "github.com/ipld/go-ipld-prime/must" "github.com/ipld/go-ipld-prime/node/basicnode" - "github.com/ucan-wg/go-ucan/pkg/policy/limits" - "github.com/ucan-wg/go-ucan/pkg/policy/selector" + "code.sonr.org/go/ucan/pkg/policy/limits" + "code.sonr.org/go/ucan/pkg/policy/selector" ) func FromIPLD(node datamodel.Node) (Policy, error) { diff --git a/pkg/policy/literal/literal.go b/pkg/policy/literal/literal.go index fa11116..5bbe443 100644 --- a/pkg/policy/literal/literal.go +++ b/pkg/policy/literal/literal.go @@ -13,7 +13,7 @@ import ( cidlink "github.com/ipld/go-ipld-prime/linking/cid" "github.com/ipld/go-ipld-prime/node/basicnode" - "github.com/ucan-wg/go-ucan/pkg/policy/limits" + "code.sonr.org/go/ucan/pkg/policy/limits" ) var Bool = basicnode.NewBool diff --git a/pkg/policy/literal/literal_test.go b/pkg/policy/literal/literal_test.go index 9f7e1f2..92f229e 100644 --- a/pkg/policy/literal/literal_test.go +++ b/pkg/policy/literal/literal_test.go @@ -9,7 +9,7 @@ import ( "github.com/ipld/go-ipld-prime/printer" "github.com/stretchr/testify/require" - "github.com/ucan-wg/go-ucan/pkg/policy/limits" + "code.sonr.org/go/ucan/pkg/policy/limits" ) func TestList(t *testing.T) { diff --git a/pkg/policy/match_test.go b/pkg/policy/match_test.go index cf63c1d..cb19c9a 100644 --- a/pkg/policy/match_test.go +++ b/pkg/policy/match_test.go @@ -11,7 +11,7 @@ import ( "github.com/ipld/go-ipld-prime/node/basicnode" "github.com/stretchr/testify/require" - "github.com/ucan-wg/go-ucan/pkg/policy/literal" + "code.sonr.org/go/ucan/pkg/policy/literal" ) func TestMatch(t *testing.T) { diff --git a/pkg/policy/policy.go b/pkg/policy/policy.go index aada2d8..15efcba 100644 --- a/pkg/policy/policy.go +++ b/pkg/policy/policy.go @@ -9,7 +9,7 @@ import ( "github.com/ipld/go-ipld-prime" "github.com/ipld/go-ipld-prime/codec/dagjson" - selpkg "github.com/ucan-wg/go-ucan/pkg/policy/selector" + selpkg "code.sonr.org/go/ucan/pkg/policy/selector" ) const ( diff --git a/pkg/policy/policy_test.go b/pkg/policy/policy_test.go index f46f5c9..7a1649d 100644 --- a/pkg/policy/policy_test.go +++ b/pkg/policy/policy_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/ucan-wg/go-ucan/pkg/policy" - "github.com/ucan-wg/go-ucan/pkg/policy/literal" + "code.sonr.org/go/ucan/pkg/policy" + "code.sonr.org/go/ucan/pkg/policy/literal" ) func ExamplePolicy() { diff --git a/pkg/policy/policytest/spec.go b/pkg/policy/policytest/spec.go index 914f3f5..3556ef7 100644 --- a/pkg/policy/policytest/spec.go +++ b/pkg/policy/policytest/spec.go @@ -3,9 +3,9 @@ package policytest import ( "github.com/ipld/go-ipld-prime" - "github.com/ucan-wg/go-ucan/pkg/args" - "github.com/ucan-wg/go-ucan/pkg/policy" - "github.com/ucan-wg/go-ucan/pkg/policy/literal" + "code.sonr.org/go/ucan/pkg/args" + "code.sonr.org/go/ucan/pkg/policy" + "code.sonr.org/go/ucan/pkg/policy/literal" ) // EmptyPolicy provides a Policy with no statements. diff --git a/pkg/policy/selector/parsing.go b/pkg/policy/selector/parsing.go index 6b31941..f7a21fc 100644 --- a/pkg/policy/selector/parsing.go +++ b/pkg/policy/selector/parsing.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" - "github.com/ucan-wg/go-ucan/pkg/policy/limits" + "code.sonr.org/go/ucan/pkg/policy/limits" ) var ( diff --git a/pkg/policy/selector/parsing_test.go b/pkg/policy/selector/parsing_test.go index 6c8caf4..4a99e10 100644 --- a/pkg/policy/selector/parsing_test.go +++ b/pkg/policy/selector/parsing_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/ucan-wg/go-ucan/pkg/policy/limits" + "code.sonr.org/go/ucan/pkg/policy/limits" ) func TestParse(t *testing.T) { diff --git a/pkg/policy/selector/supported_test.go b/pkg/policy/selector/supported_test.go index 44ec241..0eee428 100644 --- a/pkg/policy/selector/supported_test.go +++ b/pkg/policy/selector/supported_test.go @@ -9,7 +9,7 @@ import ( basicnode "github.com/ipld/go-ipld-prime/node/basic" "github.com/stretchr/testify/require" - "github.com/ucan-wg/go-ucan/pkg/policy/selector" + "code.sonr.org/go/ucan/pkg/policy/selector" ) // TestSupported Forms runs tests against the Selector according to the