Skip to content

Commit 2063e32

Browse files
authored
Bump witness dependency and migrate to new config package path (#1030)
1 parent f5e2f94 commit 2063e32

3 files changed

Lines changed: 8 additions & 13 deletions

File tree

cmd/mtc/mirror/posix/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
"github.com/transparency-dev/tessera/cmd/mtc/mirror/internal/config"
3232
"github.com/transparency-dev/tessera/cmd/mtc/mirror/internal/handler"
3333
"github.com/transparency-dev/tessera/storage/posix"
34-
"github.com/transparency-dev/witness/omniwitness"
34+
witnessConfig "github.com/transparency-dev/witness/config"
3535
"github.com/transparency-dev/witness/persistence/sqlite"
3636
"github.com/transparency-dev/witness/witness"
3737
"golang.org/x/mod/sumdb/note"
@@ -88,7 +88,7 @@ func main() {
8888
}
8989

9090
// Ensure log is known by the witness
91-
if err := wp.AddLogs(ctx, []omniwitness.Log{
91+
if err := wp.AddLogs(ctx, []witnessConfig.Log{
9292
{Origin: origin, VKey: l.VKey},
9393
}); err != nil {
9494
slog.ErrorContext(ctx, "Failed to add target log to witness", slog.String("origin", origin), slog.Any("error", err))

go.mod

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ require (
2727
github.com/hashicorp/golang-lru/v2 v2.0.7
2828
github.com/muesli/termenv v0.16.0
2929
github.com/rivo/tview v0.42.0
30-
github.com/transparency-dev/formats v0.1.1
30+
github.com/transparency-dev/formats v0.1.2-0.20260629100010-fa283eb7462a
3131
github.com/transparency-dev/merkle v0.0.3-0.20260629095233-a1adddb6323b
32-
github.com/transparency-dev/witness v0.0.0-20260617164027-9332986a94a4
32+
github.com/transparency-dev/witness v0.0.0-20260701145555-54dbcdd14f82
3333
go.opentelemetry.io/contrib/detectors/aws/ec2/v2 v2.5.1
3434
go.opentelemetry.io/contrib/detectors/aws/ecs v1.44.0
3535
go.opentelemetry.io/contrib/detectors/gcp v1.44.0
@@ -91,7 +91,6 @@ require (
9191
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.68.0 // indirect
9292
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.44.0 // indirect
9393
go.opentelemetry.io/proto/otlp v1.10.0 // indirect
94-
gopkg.in/yaml.v3 v3.0.1 // indirect
9594
k8s.io/klog/v2 v2.140.0 // indirect
9695
modernc.org/libc v1.72.3 // indirect
9796
modernc.org/mathutil v1.7.1 // indirect

go.sum

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,6 @@ github.com/googleapis/enterprise-certificate-proxy v0.3.16 h1:F/VPrx0YPBdksZJQdC
191191
github.com/googleapis/enterprise-certificate-proxy v0.3.16/go.mod h1:9Yb0eAkH/Xqhvv3zbeKf/+wMJqCeocWc6KIhDvEAuYE=
192192
github.com/googleapis/gax-go/v2 v2.22.0 h1:PjIWBpgGIVKGoCXuiCoP64altEJCj3/Ei+kSU5vlZD4=
193193
github.com/googleapis/gax-go/v2 v2.22.0/go.mod h1:irWBbALSr0Sk3qlqb9SyJ1h68WjgeFuiOzI4Rqw5+aY=
194-
github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
195-
github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ=
196194
github.com/grpc-ecosystem/grpc-gateway/v2 v2.29.0 h1:5VipnvEpbqr2gA2VbM+nYVbkIF28c5ZQfqCBQ5g2xfk=
197195
github.com/grpc-ecosystem/grpc-gateway/v2 v2.29.0/go.mod h1:Hyl3n6Twe1hvtd9XUXDec4pTvgMSEixRuQKPTMH2bNs=
198196
github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k=
@@ -250,12 +248,12 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
250248
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
251249
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
252250
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
253-
github.com/transparency-dev/formats v0.1.1 h1:4bVHJc+KdBgpA1OJD1yjI+g0i5Z1graCppTMH8lWKJI=
254-
github.com/transparency-dev/formats v0.1.1/go.mod h1:qtZ8goRuJ8FTBG9c9+Bj0rn2rUG7eG/AUTkr+Aw3jFw=
251+
github.com/transparency-dev/formats v0.1.2-0.20260629100010-fa283eb7462a h1:xpTogZtf8jrUmeob4cGJ6qVZHXE1KlHxX+/WM3im9SQ=
252+
github.com/transparency-dev/formats v0.1.2-0.20260629100010-fa283eb7462a/go.mod h1:8vp6vMDg/v+6K7aAbF4ccndYCcbAO/627+yYfX2UNnM=
255253
github.com/transparency-dev/merkle v0.0.3-0.20260629095233-a1adddb6323b h1:0nbx2whxWqEycj3JKCMezPXiV6z5Q+L2tdZjLDP6AbE=
256254
github.com/transparency-dev/merkle v0.0.3-0.20260629095233-a1adddb6323b/go.mod h1:E+iHk6bS+tIgIJGD4TMeAjSjhQ9wPfL/ST4pXyITjdU=
257-
github.com/transparency-dev/witness v0.0.0-20260617164027-9332986a94a4 h1:fcZnSVJlnE3GCiqoxvTaiHNfj7iBWMs09ow6edxIKFo=
258-
github.com/transparency-dev/witness v0.0.0-20260617164027-9332986a94a4/go.mod h1:x7LGvt50B3F6lTIg1/R3q5RjjVHkHiaKB5GFB2p3+ms=
255+
github.com/transparency-dev/witness v0.0.0-20260701145555-54dbcdd14f82 h1:Z123XTeN4zW70woiwbYeJCvWbgI3fLrf+7F06E1tqsg=
256+
github.com/transparency-dev/witness v0.0.0-20260701145555-54dbcdd14f82/go.mod h1:bK08RpnJ+toQGDQlWnHs4xa8xzDjaeELjwHA7nW310k=
259257
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
260258
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
261259
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
@@ -409,8 +407,6 @@ google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlba
409407
google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE=
410408
google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco=
411409
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
412-
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
413-
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
414410
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
415411
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
416412
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

0 commit comments

Comments
 (0)