Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions DEPS.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -10473,6 +10473,16 @@ def go_deps():
"https://storage.googleapis.com/cockroach-godeps/gomod/gopkg.in/yaml.v3/in_gopkg_yaml_v3-v3.0.1.zip",
],
)
go_repository(
name = "in_yaml_go_yaml_v4",
build_file_proto_mode = "disable_global",
importpath = "go.yaml.in/yaml/v4",
sha256 = "d5ca6a029979bc52760f17ed1a9393637a46095b9e0e8f504f1dc5d70ece46ac",
strip_prefix = "go.yaml.in/yaml/[email protected]",
urls = [
"https://storage.googleapis.com/cockroach-godeps/gomod/go.yaml.in/yaml/v4/in_yaml_go_yaml_v4-v4.0.0-rc.3.zip",
],
)
go_repository(
name = "io_etcd_go_bbolt",
build_file_proto_mode = "disable_global",
Expand Down
1 change: 1 addition & 0 deletions build/bazelutil/distdir_files.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,7 @@ DISTDIR_FILES = {
"https://storage.googleapis.com/cockroach-godeps/gomod/go.uber.org/multierr/org_uber_go_multierr-v1.7.0.zip": "abee21bbd1cb62b0721680430ef8e098717299d10b4382876b9aa40664e6556c",
"https://storage.googleapis.com/cockroach-godeps/gomod/go.uber.org/tools/org_uber_go_tools-v0.0.0-20190618225709-2cfd321de3ee.zip": "988dba9c5074080240d33d98e8ce511532f728698db7a9a4ac316c02c94030d6",
"https://storage.googleapis.com/cockroach-godeps/gomod/go.uber.org/zap/org_uber_go_zap-v1.19.0.zip": "6437824258873fed421b7975b8e4cafd1be80cdc15e553beaa887b499dd01420",
"https://storage.googleapis.com/cockroach-godeps/gomod/go.yaml.in/yaml/v4/in_yaml_go_yaml_v4-v4.0.0-rc.3.zip": "d5ca6a029979bc52760f17ed1a9393637a46095b9e0e8f504f1dc5d70ece46ac",
"https://storage.googleapis.com/cockroach-godeps/gomod/goji.io/io_goji-v2.0.2+incompatible.zip": "1ea69b28e356cb91381ce2339004fcf144ad1b268c9e3497c9ef304751ae0bb3",
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/arch/org_golang_x_arch-v0.0.0-20180920145803-b19384d3c130.zip": "9f67b677a3fefc503111d9aa7df8bacd2677411b0fcb982eb1654aa6d14cc3f8",
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/crypto/org_golang_x_crypto-v0.44.0.zip": "31a0dbb663b78708159bc1cbdb09a6a8370cbf507d742f96dc78b4ad023498ec",
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,12 @@ require (
go.opentelemetry.io/otel/sdk v1.17.0
go.opentelemetry.io/otel/trace v1.17.0
go.opentelemetry.io/proto/otlp v0.11.0
go.yaml.in/yaml/v4 v4.0.0-rc.3
golang.org/x/perf v0.0.0-20251112180420-cfbd823f7301
golang.org/x/term v0.37.0
gonum.org/v1/gonum v0.15.1
google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.1
honnef.co/go/tools v0.6.1
)

Expand Down Expand Up @@ -467,6 +467,7 @@ require (
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto/googleapis/bytestream v0.0.0-20230530153820-e85fd2cbaebc // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

require (
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2404,6 +2404,8 @@ go.uber.org/zap v1.14.1/go.mod h1:Mb2vm2krFEG5DV0W9qcHBYFtp/Wku1cvYaqPsS/WYfc=
go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo=
go.uber.org/zap v1.19.0 h1:mZQZefskPPCMIBCSEH0v2/iUqqLrYtaeqwD6FUGUnFE=
go.uber.org/zap v1.19.0/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI=
go.yaml.in/yaml/v4 v4.0.0-rc.3 h1:3h1fjsh1CTAPjW7q/EMe+C8shx5d8ctzZTrLcs/j8Go=
go.yaml.in/yaml/v4 v4.0.0-rc.3/go.mod h1:aZqd9kCMsGL7AuUv/m/PvWLdg5sjJsZ4oHDEnfPPfY0=
goji.io v2.0.2+incompatible/go.mod h1:sbqFwrtqZACxLBTQcdgVjFh54yGVCvwq8+w49MVMMIk=
golang.org/x/arch v0.0.0-20180920145803-b19384d3c130/go.mod h1:cYlCBUl1MsqxdiKgmc4uh7TxZfWSFLOGSRR090WDxt8=
golang.org/x/crypto v0.0.0-20171113213409-9f005a07e0d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
Expand Down
2 changes: 1 addition & 1 deletion pkg/ccl/sqlproxyccl/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ go_test(
"@com_github_pires_go_proxyproto//tlvparse",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@in_gopkg_yaml_v3//:yaml_v3",
"@in_yaml_go_yaml_v4//:yaml",
"@org_golang_google_grpc//codes",
"@org_golang_google_grpc//status",
],
Expand Down
2 changes: 1 addition & 1 deletion pkg/ccl/sqlproxyccl/proxy_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import (
"github.com/pires/go-proxyproto/tlvparse"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
)

const frontendError = "Frontend error!"
Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ go_library(
"@com_github_spf13_pflag//:pflag",
"@com_google_cloud_go_storage//:storage",
"@in_gopkg_yaml_v2//:yaml_v2",
"@in_gopkg_yaml_v3//:yaml_v3",
"@in_yaml_go_yaml_v4//:yaml",
"@io_storj_drpc//:drpc",
"@org_golang_google_api//option",
"@org_golang_google_grpc//:grpc",
Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/tsdump_upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/util/syncutil"
"github.com/cockroachdb/cockroach/pkg/util/timeutil"
"github.com/cockroachdb/errors"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/mirror/npm/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ go_library(
visibility = ["//visibility:private"],
deps = [
"@com_google_cloud_go_storage//:storage",
"@in_gopkg_yaml_v3//:yaml_v3",
"@in_yaml_go_yaml_v4//:yaml",
"@org_golang_google_api//googleapi",
"@org_golang_google_api//iterator",
"@org_golang_x_sync//errgroup",
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/mirror/npm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import (
"strings"

"cloud.google.com/go/storage"
"go.yaml.in/yaml/v4"
"golang.org/x/sync/errgroup"
"google.golang.org/api/googleapi"
"google.golang.org/api/iterator"
yaml "gopkg.in/yaml.v3"
)

// getUnmirroredUrls finds packages in each provided pnpm-lock.yaml (each of
Expand Down
4 changes: 2 additions & 2 deletions pkg/roachprod/install/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ go_library(
"@com_github_alessio_shellescape//:shellescape",
"@com_github_cockroachdb_errors//:errors",
"@com_github_cockroachdb_version//:version",
"@in_gopkg_yaml_v3//:yaml_v3",
"@in_yaml_go_yaml_v4//:yaml",
"@org_golang_x_exp//maps",
"@org_golang_x_sync//errgroup",
"@org_golang_x_sys//unix",
Expand Down Expand Up @@ -89,7 +89,7 @@ go_test(
"@com_github_cockroachdb_datadriven//:datadriven",
"@com_github_cockroachdb_errors//:errors",
"@com_github_stretchr_testify//require",
"@in_gopkg_yaml_v3//:yaml_v3",
"@in_yaml_go_yaml_v4//:yaml",
],
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/roachprod/install/cluster_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/roachprod/roachprodutil/codec"
"github.com/cockroachdb/cockroach/pkg/roachprod/vm/gce"
"github.com/cockroachdb/errors"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
)

// ClusterSettings contains various knobs that affect operations on a cluster.
Expand Down
2 changes: 1 addition & 1 deletion pkg/roachprod/install/cluster_settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/cockroachdb/cockroach/pkg/util/yamlutil"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
)

func TestClusterSettingOptionListCodec(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/roachprod/roachprodutil/codec/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go_library(
srcs = ["types.go"],
importpath = "github.com/cockroachdb/cockroach/pkg/roachprod/roachprodutil/codec",
visibility = ["//visibility:public"],
deps = ["@in_gopkg_yaml_v3//:yaml_v3"],
deps = ["@in_yaml_go_yaml_v4//:yaml"],
)

go_test(
Expand All @@ -18,6 +18,6 @@ go_test(
deps = [
"//pkg/util/yamlutil",
"@com_github_stretchr_testify//require",
"@in_gopkg_yaml_v3//:yaml_v3",
"@in_yaml_go_yaml_v4//:yaml",
],
)
2 changes: 1 addition & 1 deletion pkg/roachprod/roachprodutil/codec/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"reflect"
"strings"

"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion pkg/roachprod/roachprodutil/codec/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/cockroachdb/cockroach/pkg/util/yamlutil"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion pkg/sql/schemachanger/rel/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ go_library(
"@com_github_cockroachdb_errors//:errors",
"@com_github_google_btree//:btree",
"@in_gopkg_yaml_v2//:yaml_v2",
"@in_gopkg_yaml_v3//:yaml_v3",
"@in_yaml_go_yaml_v4//:yaml",
],
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ go_library(
deps = [
"//pkg/sql/schemachanger/rel",
"//pkg/sql/schemachanger/rel/reltest",
"@in_gopkg_yaml_v3//:yaml_v3",
"@in_yaml_go_yaml_v4//:yaml",
],
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"github.com/cockroachdb/cockroach/pkg/sql/schemachanger/rel"
"github.com/cockroachdb/cockroach/pkg/sql/schemachanger/rel/reltest"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
)

// testAttr is a rel.Attr used for testing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ go_library(
deps = [
"//pkg/sql/schemachanger/rel",
"//pkg/sql/schemachanger/rel/reltest",
"@in_gopkg_yaml_v3//:yaml_v3",
"@in_yaml_go_yaml_v4//:yaml",
],
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"github.com/cockroachdb/cockroach/pkg/sql/schemachanger/rel"
"github.com/cockroachdb/cockroach/pkg/sql/schemachanger/rel/reltest"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
)

type entity struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/sql/schemachanger/rel/query_lang_clauses.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package rel

import (
"github.com/cockroachdb/errors"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
)

// Clauses exists to handle flattening of a slice of clauses before marshaling.
Expand Down
2 changes: 1 addition & 1 deletion pkg/sql/schemachanger/rel/query_lang_yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"strings"

"github.com/cockroachdb/errors"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
)

func valueForYAML(v interface{}) interface{} {
Expand Down
2 changes: 1 addition & 1 deletion pkg/sql/schemachanger/rel/reltest/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ go_library(
"//pkg/util/intsets",
"@com_github_cockroachdb_errors//:errors",
"@com_github_stretchr_testify//require",
"@in_gopkg_yaml_v3//:yaml_v3",
"@in_yaml_go_yaml_v4//:yaml",
],
)
2 changes: 1 addition & 1 deletion pkg/sql/schemachanger/rel/reltest/attribute.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/cockroachdb/cockroach/pkg/sql/schemachanger/rel"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
)

// AttributeTestCases exercise the mappings of fields to attribute values.
Expand Down
2 changes: 1 addition & 1 deletion pkg/sql/schemachanger/rel/reltest/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"github.com/cockroachdb/cockroach/pkg/sql/schemachanger/rel"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
)

// ComparisonTests exercise the comparison logic of the rel package.
Expand Down
2 changes: 1 addition & 1 deletion pkg/sql/schemachanger/rel/reltest/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/testutils"
"github.com/cockroachdb/cockroach/pkg/util/intsets"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
)

// DatabaseTest tests a set of queries in the context of a database which
Expand Down
2 changes: 1 addition & 1 deletion pkg/sql/schemachanger/rel/reltest/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"github.com/cockroachdb/errors"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
)

// Registry stores entities by name. It helps to serialize things in an
Expand Down
2 changes: 1 addition & 1 deletion pkg/sql/schemachanger/rel/reltest/reltest.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/sql/schemachanger/rel"
"github.com/cockroachdb/cockroach/pkg/testutils/datapathutils"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
)

var rewrite bool
Expand Down
2 changes: 1 addition & 1 deletion pkg/sql/schemachanger/scbuild/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,6 @@ go_test(
"//pkg/util/yamlutil",
"@com_github_cockroachdb_datadriven//:datadriven",
"@com_github_stretchr_testify//require",
"@in_gopkg_yaml_v3//:yaml_v3",
"@in_yaml_go_yaml_v4//:yaml",
],
)
2 changes: 1 addition & 1 deletion pkg/sql/schemachanger/scbuild/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/util/yamlutil"
"github.com/cockroachdb/datadriven"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
)

func TestBuildDataDrivenWithSQLDependencies(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/sql/schemachanger/scplan/internal/rules/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ go_library(
"//pkg/util/log",
"//pkg/util/timeutil",
"@com_github_cockroachdb_errors//:errors",
"@in_gopkg_yaml_v3//:yaml_v3",
"@in_yaml_go_yaml_v4//:yaml",
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ go_test(
"@com_github_cockroachdb_datadriven//:datadriven",
"@com_github_cockroachdb_errors//:errors",
"@com_github_stretchr_testify//require",
"@in_gopkg_yaml_v3//:yaml_v3",
"@in_yaml_go_yaml_v4//:yaml",
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/testutils/datapathutils"
"github.com/cockroachdb/datadriven"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
)

// TestRulesYAML outputs the rules to yaml as a way to visualize changes.
Expand Down
2 changes: 1 addition & 1 deletion pkg/sql/schemachanger/scplan/internal/rules/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/util/log"
"github.com/cockroachdb/cockroach/pkg/util/timeutil"
"github.com/cockroachdb/errors"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
)

// ApplyDepRules adds dependency edges to the graph according to the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ go_test(
"@com_github_cockroachdb_datadriven//:datadriven",
"@com_github_cockroachdb_errors//:errors",
"@com_github_stretchr_testify//require",
"@in_gopkg_yaml_v3//:yaml_v3",
"@in_yaml_go_yaml_v4//:yaml",
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/testutils/datapathutils"
"github.com/cockroachdb/datadriven"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
)

// TestRulesYAML outputs the rules to yaml as a way to visualize changes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ go_test(
"@com_github_cockroachdb_datadriven//:datadriven",
"@com_github_cockroachdb_errors//:errors",
"@com_github_stretchr_testify//require",
"@in_gopkg_yaml_v3//:yaml_v3",
"@in_yaml_go_yaml_v4//:yaml",
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/testutils/datapathutils"
"github.com/cockroachdb/datadriven"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
)

// TestRulesYAML outputs the rules to yaml as a way to visualize changes.
Expand Down
Loading
Loading