Skip to content

Commit aaf7cb4

Browse files
committed
chore(vcr): bump /dnaeon/go-vcr.v4 to v4.0.6 + fix vcr-compressor
1 parent b6c5956 commit aaf7cb4

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ require (
3131
github.com/nats-io/jwt/v2 v2.8.0
3232
github.com/nats-io/nats.go v1.47.0
3333
github.com/robfig/cron/v3 v3.0.1
34-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251125140454-267e13d60597
34+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251205121344-1391925443ff
3535
github.com/stretchr/testify v1.11.1
36+
go.yaml.in/yaml/v4 v4.0.0-rc.3
3637
golang.org/x/crypto v0.45.0
3738
golang.org/x/sync v0.18.0
3839
gopkg.in/dnaeon/go-vcr.v3 v3.2.0
@@ -161,7 +162,6 @@ require (
161162
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.38.0 // indirect
162163
go.opentelemetry.io/otel/metric v1.38.0 // indirect
163164
go.opentelemetry.io/otel/trace v1.38.0 // indirect
164-
go.yaml.in/yaml/v4 v4.0.0-rc.3 // indirect
165165
golang.org/x/exp v0.0.0-20251009144603-d2f985daa21b // indirect
166166
golang.org/x/mod v0.29.0 // indirect
167167
golang.org/x/net v0.47.0 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,8 @@ github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR
457457
github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=
458458
github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=
459459
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
460-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251125140454-267e13d60597 h1:PfrwuNnzQ7H8nB+qUkDBgB7wsX9fL3yUjO/kjc8WCg8=
461-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251125140454-267e13d60597/go.mod h1:BBENv1W9QH4COViJkDJB/0D1T6CweMAkDP7XehRsHQ8=
460+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251205121344-1391925443ff h1:2O5oFQg4pjdypWhPN1/T1mFSk4xF91hc9nz37awPR/g=
461+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251205121344-1391925443ff/go.mod h1:h/elW4JdNo225GP5FZHJ/RPyCNz79lxaeub3PyGzE9o=
462462
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8=
463463
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4=
464464
github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=

internal/acctest/vcr_compress.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"github.com/scaleway/scaleway-sdk-go/api/rdb/v1"
1919
"github.com/scaleway/scaleway-sdk-go/api/redis/v1"
2020
tem "github.com/scaleway/scaleway-sdk-go/api/tem/v1alpha1"
21+
"go.yaml.in/yaml/v4"
2122
cassetteV3 "gopkg.in/dnaeon/go-vcr.v3/cassette"
2223
cassetteV4 "gopkg.in/dnaeon/go-vcr.v4/pkg/cassette"
2324
)
@@ -209,6 +210,7 @@ func CompressCassetteV4(path string) (CompressReport, error) {
209210
}
210211

211212
outputCassette := cassetteV4.New(path)
213+
outputCassette.MarshalFunc = yaml.Marshal
212214
transitioning := false
213215

214216
report := CompressReport{

0 commit comments

Comments
 (0)