Skip to content

Commit 0080105

Browse files
authored
Move to buf.build/go/standard (#3839)
1 parent 3fbc038 commit 0080105

File tree

203 files changed

+206
-2675
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

203 files changed

+206
-2675
lines changed

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ require (
1414
buf.build/go/protovalidate v0.12.0
1515
buf.build/go/protoyaml v0.6.0
1616
buf.build/go/spdx v0.2.0
17+
buf.build/go/standard v0.1.0
1718
connectrpc.com/connect v1.18.1
1819
connectrpc.com/otelconnect v0.7.2
1920
github.com/bufbuild/protocompile v0.14.1

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ buf.build/go/protoyaml v0.6.0 h1:Nzz1lvcXF8YgNZXk+voPPwdU8FjDPTUV4ndNTXN0n2w=
2020
buf.build/go/protoyaml v0.6.0/go.mod h1:RgUOsBu/GYKLDSIRgQXniXbNgFlGEZnQpRAUdLAFV2Q=
2121
buf.build/go/spdx v0.2.0 h1:IItqM0/cMxvFJJumcBuP8NrsIzMs/UYjp/6WSpq8LTw=
2222
buf.build/go/spdx v0.2.0/go.mod h1:bXdwQFem9Si3nsbNy8aJKGPoaPi5DKwdeEp5/ArZ6w8=
23+
buf.build/go/standard v0.1.0 h1:g98T9IyvAl0vS3Pq8iVk6Cvj2ZiFvoUJRtfyGa0120U=
24+
buf.build/go/standard v0.1.0/go.mod h1:PiqpHz/7ZFq+kqvYhc/SK3lxFIB9N/aiH2CFC2JHIQg=
2325
cel.dev/expr v0.24.0 h1:56OvJKSH3hDGL0ml5uSxZmz3/3Pq4tJ+fb1unVLAFcY=
2426
cel.dev/expr v0.24.0/go.mod h1:hLPLo1W4QUmuYdA72RBX06QTs6MXw941piREPl3Yfiw=
2527
connectrpc.com/connect v1.18.1 h1:PAg7CjSAGvscaf6YZKUefjoih5Z/qYkyaTrBW8xvYPw=

private/buf/bufcli/flags_args.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import (
2323
pluginv1beta1 "buf.build/gen/go/bufbuild/registry/protocolbuffers/go/buf/registry/plugin/v1beta1"
2424
"buf.build/go/app"
2525
"buf.build/go/app/appcmd"
26+
"buf.build/go/standard/xstrings"
2627
"github.com/bufbuild/buf/private/buf/buffetch"
27-
"github.com/bufbuild/buf/private/pkg/standard/xstrings"
2828
"github.com/spf13/pflag"
2929
)
3030

private/buf/bufctl/controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ import (
2929
"buf.build/go/app/appcmd"
3030
"buf.build/go/protovalidate"
3131
"buf.build/go/protoyaml"
32+
"buf.build/go/standard/xio"
33+
"buf.build/go/standard/xslices"
3234
"github.com/bufbuild/buf/private/buf/buffetch"
3335
"github.com/bufbuild/buf/private/buf/bufwkt/bufwktstore"
3436
"github.com/bufbuild/buf/private/buf/bufworkspace"
@@ -47,8 +49,6 @@ import (
4749
"github.com/bufbuild/buf/private/pkg/httpauth"
4850
"github.com/bufbuild/buf/private/pkg/normalpath"
4951
"github.com/bufbuild/buf/private/pkg/protoencoding"
50-
"github.com/bufbuild/buf/private/pkg/standard/xio"
51-
"github.com/bufbuild/buf/private/pkg/standard/xslices"
5252
"github.com/bufbuild/buf/private/pkg/storage/storageos"
5353
"github.com/bufbuild/buf/private/pkg/syserror"
5454
"github.com/bufbuild/buf/private/pkg/wasm"

private/buf/buffetch/buffetch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ import (
2323
"net/http"
2424

2525
"buf.build/go/app"
26+
"buf.build/go/standard/xstrings"
2627
"github.com/bufbuild/buf/private/buf/buffetch/internal"
2728
"github.com/bufbuild/buf/private/buf/buftarget"
2829
"github.com/bufbuild/buf/private/bufpkg/bufconfig"
2930
"github.com/bufbuild/buf/private/bufpkg/bufmodule"
3031
"github.com/bufbuild/buf/private/pkg/git"
3132
"github.com/bufbuild/buf/private/pkg/httpauth"
32-
"github.com/bufbuild/buf/private/pkg/standard/xstrings"
3333
"github.com/bufbuild/buf/private/pkg/storage/storageos"
3434
)
3535

private/buf/buffetch/internal/dir_ref.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818
"strings"
1919

2020
"buf.build/go/app"
21+
"buf.build/go/standard/xpath/xfilepath"
2122
"github.com/bufbuild/buf/private/pkg/normalpath"
22-
"github.com/bufbuild/buf/private/pkg/standard/xpath/xfilepath"
2323
)
2424

2525
var (

private/buf/buffetch/internal/proto_file_writer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import (
2323
"os"
2424

2525
"buf.build/go/app"
26+
"buf.build/go/standard/xio"
2627
"github.com/bufbuild/buf/private/pkg/normalpath"
27-
"github.com/bufbuild/buf/private/pkg/standard/xio"
2828
)
2929

3030
type protoFileWriter struct {

private/buf/buffetch/internal/reader.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ import (
2727
"path/filepath"
2828

2929
"buf.build/go/app"
30+
"buf.build/go/standard/xio"
31+
"buf.build/go/standard/xslices"
3032
"github.com/bufbuild/buf/private/buf/buftarget"
3133
"github.com/bufbuild/buf/private/bufpkg/bufmodule"
3234
"github.com/bufbuild/buf/private/bufpkg/bufparse"
3335
"github.com/bufbuild/buf/private/pkg/git"
3436
"github.com/bufbuild/buf/private/pkg/httpauth"
3537
"github.com/bufbuild/buf/private/pkg/normalpath"
3638
"github.com/bufbuild/buf/private/pkg/osext"
37-
"github.com/bufbuild/buf/private/pkg/standard/xio"
38-
"github.com/bufbuild/buf/private/pkg/standard/xslices"
3939
"github.com/bufbuild/buf/private/pkg/storage"
4040
"github.com/bufbuild/buf/private/pkg/storage/storagearchive"
4141
"github.com/bufbuild/buf/private/pkg/storage/storagemem"

private/buf/buffetch/internal/writer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"os"
2525

2626
"buf.build/go/app"
27-
"github.com/bufbuild/buf/private/pkg/standard/xio"
27+
"buf.build/go/standard/xio"
2828
"github.com/klauspost/compress/zstd"
2929
)
3030

private/buf/bufgen/features.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import (
2121
"slices"
2222
"strings"
2323

24+
"buf.build/go/standard/xslices"
2425
"github.com/bufbuild/buf/private/bufpkg/bufconfig"
2526
"github.com/bufbuild/buf/private/bufpkg/bufimage"
26-
"github.com/bufbuild/buf/private/pkg/standard/xslices"
2727
"google.golang.org/protobuf/reflect/protoreflect"
2828
"google.golang.org/protobuf/types/descriptorpb"
2929
"google.golang.org/protobuf/types/pluginpb"

0 commit comments

Comments
 (0)