Skip to content

Commit a8f34ac

Browse files
authored
chore: upgrade go-ucanto to v0.7.0 (#273)
storacha/go-ucanto#78 in go-ucanto changes the signature of `validator.NewClaimContext` and `validator.NewValidationContext`. This is a breaking API change that impacts the indexing-service, so I proactively upgraded to the latest version and adapted existing code to the new API.
1 parent b180b81 commit a8f34ac

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ require (
3232
github.com/redis/go-redis/extra/redisotel/v9 v9.10.0
3333
github.com/redis/go-redis/v9 v9.10.0
3434
github.com/storacha/go-libstoracha v0.3.3
35-
github.com/storacha/go-ucanto v0.6.5
35+
github.com/storacha/go-ucanto v0.7.0
3636
github.com/stretchr/testify v1.10.0
3737
github.com/testcontainers/testcontainers-go v0.39.0
3838
github.com/testcontainers/testcontainers-go/modules/dynamodb v0.39.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,8 +680,8 @@ github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An
680680
github.com/spf13/viper v1.8.1/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH9Ns=
681681
github.com/storacha/go-libstoracha v0.3.3 h1:pirKpZjjueTgyAnfB0/wW2koVpHO3OypHoprx9hMhUM=
682682
github.com/storacha/go-libstoracha v0.3.3/go.mod h1:UF4t2uPwq7vhqqoRWVPnsTsvnWghd8uTJ5WW6QekjVA=
683-
github.com/storacha/go-ucanto v0.6.5 h1:mxy1UkJDqszAGe6SkoT0N2SG9YJ62YX7fzU1Pg9lxnA=
684-
github.com/storacha/go-ucanto v0.6.5/go.mod h1:O35Ze4x18EWtz3ftRXXd/mTZ+b8OQVjYYrnadJ/xNjg=
683+
github.com/storacha/go-ucanto v0.7.0 h1:Vm9fMTW+Y3Q0grUHiHs19uzT3xiotDlbHV3udL52Y0Q=
684+
github.com/storacha/go-ucanto v0.7.0/go.mod h1:O35Ze4x18EWtz3ftRXXd/mTZ+b8OQVjYYrnadJ/xNjg=
685685
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
686686
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
687687
github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=

pkg/service/service.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,7 @@ func validateLocationCommitment(ctx context.Context, claim delegation.Delegation
735735
validator.ProofUnavailable, // probably don't want to resolve proofs...
736736
verifier.Parse, // TODO: support verifiers for other key types?
737737
validator.FailDIDKeyResolution, // probably don't want to resolve DID methods either
738+
validator.NotExpiredNotTooEarly,
738739
)
739740

740741
auth, err := validator.Access(ctx, claim, vctx)

0 commit comments

Comments
 (0)