Skip to content

Commit c7b0c70

Browse files
author
jchadwick-buf
authored
Rewrite import path to buf.build/go/protovalidate (#235)
Should be straight-forward enough. You can validate that this works by running something like: ```shell $ go run buf.build/go/protovalidate/internal/cmd/protovalidate-conformance-go@90995783ab7ab3fc0c67f3336349eaae3aac8ed8 </dev/null ``` ...since Go can see commits inside of non-default branches.
1 parent 9c709f9 commit c7b0c70

File tree

98 files changed

+195
-199
lines changed

Some content is hidden

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

98 files changed

+195
-199
lines changed

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
# Notice
2-
3-
**The import path for protovalidate-go has changed!** Please change your import path(s) from `github.com/bufbuild/protovalidate-go` to `buf.build/go/protovalidate`.
4-
51
[![The Buf logo](.github/buf-logo.svg)][buf]
62

73
# protovalidate-go
84

95
[![CI](https://github.com/bufbuild/protovalidate-go/actions/workflows/ci.yaml/badge.svg)](https://github.com/bufbuild/protovalidate-go/actions/workflows/ci.yaml)
106
[![Conformance](https://github.com/bufbuild/protovalidate-go/actions/workflows/conformance.yaml/badge.svg)](https://github.com/bufbuild/protovalidate-go/actions/workflows/conformance.yaml)
11-
[![Report Card](https://goreportcard.com/badge/github.com/bufbuild/protovalidate-go)](https://goreportcard.com/report/github.com/bufbuild/protovalidate-go)
12-
[![GoDoc](https://pkg.go.dev/badge/github.com/bufbuild/protovalidate-go.svg)](https://pkg.go.dev/github.com/bufbuild/protovalidate-go)
7+
[![Report Card](https://goreportcard.com/badge/buf.build/go/protovalidate)](https://goreportcard.com/report/buf.build/go/protovalidate)
8+
[![GoDoc](https://pkg.go.dev/badge/buf.build/go/protovalidate.svg)](https://pkg.go.dev/buf.build/go/protovalidate)
139
[![BSR](https://img.shields.io/badge/BSR-Module-0C65EC)][buf-mod]
1410

1511
[Protovalidate][protovalidate] provides standard annotations to validate common rules on messages and fields, as well as the ability to use [CEL][cel] to write custom rules. It's the next generation of [protoc-gen-validate][protoc-gen-validate], the only widely used validation library for Protobuf.
@@ -127,7 +123,7 @@ Offered under the [Apache 2 license][license].
127123
[grpc-python]: https://buf.build/docs/protovalidate/quickstart/grpc-python/
128124
[migration-guide]: https://buf.build/docs/migration-guides/migrate-from-protoc-gen-validate/
129125
[conformance-executable]: ./internal/cmd/protovalidate-conformance-go/README.md
130-
[pkg-go]: https://pkg.go.dev/github.com/bufbuild/protovalidate-go
126+
[pkg-go]: https://pkg.go.dev/buf.build/go/protovalidate
131127

132128
[validate-proto]: https://buf.build/bufbuild/protovalidate/docs/main:buf.validate
133129
[conformance]: https://github.com/bufbuild/protovalidate/blob/main/docs/conformance.md

ast.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"slices"
2020

2121
"buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
22-
pvcel "github.com/bufbuild/protovalidate-go/cel"
22+
pvcel "buf.build/go/protovalidate/cel"
2323
"github.com/google/cel-go/cel"
2424
"github.com/google/cel-go/interpreter"
2525
"google.golang.org/protobuf/reflect/protoreflect"

ast_test.go

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

2020
"buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
21-
pvcel "github.com/bufbuild/protovalidate-go/cel"
21+
pvcel "buf.build/go/protovalidate/cel"
2222
"github.com/google/cel-go/cel"
2323
"github.com/stretchr/testify/assert"
2424
"github.com/stretchr/testify/require"

buf.gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ managed:
88
module: buf.build/bufbuild/protovalidate
99
override:
1010
- file_option: go_package_prefix
11-
value: github.com/bufbuild/protovalidate-go/internal/gen
11+
value: buf.build/go/protovalidate/internal/gen
1212
plugins:
1313
- remote: buf.build/protocolbuffers/go:v1.36.6
1414
out: internal/gen

builder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
"sync/atomic"
2222

2323
"buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
24-
pvcel "github.com/bufbuild/protovalidate-go/cel"
25-
"github.com/bufbuild/protovalidate-go/resolve"
24+
pvcel "buf.build/go/protovalidate/cel"
25+
"buf.build/go/protovalidate/resolve"
2626
"github.com/google/cel-go/cel"
2727
"google.golang.org/protobuf/proto"
2828
"google.golang.org/protobuf/reflect/protoreflect"

builder_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818
"sync"
1919
"testing"
2020

21-
pvcel "github.com/bufbuild/protovalidate-go/cel"
22-
pb "github.com/bufbuild/protovalidate-go/internal/gen/tests/example/v1"
21+
pvcel "buf.build/go/protovalidate/cel"
22+
pb "buf.build/go/protovalidate/internal/gen/tests/example/v1"
2323
"github.com/google/cel-go/cel"
2424
"github.com/stretchr/testify/assert"
2525
"github.com/stretchr/testify/require"

cache.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818
"fmt"
1919

2020
"buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
21-
pvcel "github.com/bufbuild/protovalidate-go/cel"
22-
"github.com/bufbuild/protovalidate-go/resolve"
21+
pvcel "buf.build/go/protovalidate/cel"
22+
"buf.build/go/protovalidate/resolve"
2323
"github.com/google/cel-go/cel"
2424
"google.golang.org/protobuf/proto"
2525
"google.golang.org/protobuf/reflect/protoreflect"

cache_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818
"testing"
1919

2020
"buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
21-
pvcel "github.com/bufbuild/protovalidate-go/cel"
22-
"github.com/bufbuild/protovalidate-go/internal/gen/buf/validate/conformance/cases"
21+
pvcel "buf.build/go/protovalidate/cel"
22+
"buf.build/go/protovalidate/internal/gen/buf/validate/conformance/cases"
2323
"github.com/google/cel-go/cel"
2424
"github.com/stretchr/testify/assert"
2525
"github.com/stretchr/testify/require"

cel/library_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ package cel
1717
import (
1818
"testing"
1919

20-
"github.com/bufbuild/protovalidate-go/internal/gen/buf/validate/conformance/cases"
20+
"buf.build/go/protovalidate/internal/gen/buf/validate/conformance/cases"
2121
"github.com/google/cel-go/cel"
2222
"github.com/google/cel-go/common/types"
2323
"github.com/google/cel-go/common/types/ref"

cel/lookups_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ package cel
1717
import (
1818
"testing"
1919

20-
"github.com/bufbuild/protovalidate-go/internal/gen/buf/validate/conformance/cases"
20+
"buf.build/go/protovalidate/internal/gen/buf/validate/conformance/cases"
2121
"github.com/google/cel-go/cel"
2222
"github.com/stretchr/testify/assert"
2323
"github.com/stretchr/testify/require"

0 commit comments

Comments
 (0)