Skip to content

Commit cd41a7b

Browse files
committed
Change import path to buf.build/go/bufplugin
1 parent 12671f8 commit cd41a7b

File tree

30 files changed

+60
-58
lines changed

30 files changed

+60
-58
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ GOLANGCI_LINT_VERSION := v1.60.1
1818
# https://github.com/golangci/golangci-lint/issues/4837
1919
GOLANGCI_LINT_GOTOOLCHAIN := $(GO_MOD_GOTOOLCHAIN)
2020
# Remove when we want to upgrade past Go 1.21
21-
GO_GET_PKGS := github.com/antlr4-go/antlr/[email protected]
21+
GO_GET_PKGS := github.com/antlr4-go/antlr/[email protected] golang.org/x/[email protected]
2222

2323
.PHONY: help
2424
help: ## Describe useful make targets

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@ bufplugin-go
22
==============
33

44
[![Build](https://github.com/bufbuild/bufplugin-go/actions/workflows/ci.yaml/badge.svg?branch=main)](https://github.com/bufbuild/bufplugin-go/actions/workflows/ci.yaml)
5-
[![Report Card](https://goreportcard.com/badge/github.com/bufbuild/bufplugin-go)](https://goreportcard.com/report/github.com/bufbuild/bufplugin-go)
6-
[![GoDoc](https://pkg.go.dev/badge/github.com/bufbuild/bufplugin-go.svg)](https://pkg.go.dev/github.com/bufbuild/bufplugin-go)
5+
[![Report Card](https://goreportcard.com/badge/buf.build/go/bufplugin)](https://goreportcard.com/report/buf.build/go/bufplugin)
6+
[![GoDoc](https://pkg.go.dev/badge/buf.build/go/bufplugin.svg)](https://pkg.go.dev/buf.build/go/bufplugin)
77
[![Slack](https://img.shields.io/badge/slack-buf-%23e01563)](https://buf.build/links/slack)
88

99
This is the Golang SDK for [bufplugin](https://github.com/bufbuild/bufplugin).
1010

11+
```go
12+
import "buf.build/go/bufplugin/check"
13+
```
14+
1115
This is very early, but see the [example](check/internal/example) for how this works in practice.
1216

1317
## Status: Alpha

check/category.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"sort"
2222

2323
checkv1 "buf.build/gen/go/bufbuild/bufplugin/protocolbuffers/go/buf/plugin/check/v1"
24-
"github.com/bufbuild/bufplugin-go/internal/pkg/xslices"
24+
"buf.build/go/bufplugin/internal/pkg/xslices"
2525
)
2626

2727
// Category is rule category.

check/category_spec.go

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

20-
"github.com/bufbuild/bufplugin-go/internal/pkg/xslices"
20+
"buf.build/go/bufplugin/internal/pkg/xslices"
2121
)
2222

2323
// CategorySpec is the spec for a Category.

check/check.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
// limitations under the License.
1414

1515
// Package check implements the SDK for custom lint and breaking change plugins.
16-
package check
16+
package check // import "buf.build/go/bufplugin/check"

check/check_server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
package check
1616

1717
import (
18-
"github.com/bufbuild/bufplugin-go/internal/gen/buf/plugin/check/v1/v1pluginrpc"
18+
"buf.build/go/bufplugin/internal/gen/buf/plugin/check/v1/v1pluginrpc"
1919
"pluginrpc.com/pluginrpc"
2020
)
2121

check/check_service_handler.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import (
2020
"slices"
2121

2222
checkv1 "buf.build/gen/go/bufbuild/bufplugin/protocolbuffers/go/buf/plugin/check/v1"
23-
"github.com/bufbuild/bufplugin-go/internal/gen/buf/plugin/check/v1/v1pluginrpc"
24-
"github.com/bufbuild/bufplugin-go/internal/pkg/thread"
25-
"github.com/bufbuild/bufplugin-go/internal/pkg/xslices"
23+
"buf.build/go/bufplugin/internal/gen/buf/plugin/check/v1/v1pluginrpc"
24+
"buf.build/go/bufplugin/internal/pkg/thread"
25+
"buf.build/go/bufplugin/internal/pkg/xslices"
2626
"github.com/bufbuild/protovalidate-go"
2727
"pluginrpc.com/pluginrpc"
2828
)

check/checktest/checktest.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import (
2626
"testing"
2727

2828
checkv1 "buf.build/gen/go/bufbuild/bufplugin/protocolbuffers/go/buf/plugin/check/v1"
29-
"github.com/bufbuild/bufplugin-go/check"
30-
"github.com/bufbuild/bufplugin-go/internal/pkg/xslices"
29+
"buf.build/go/bufplugin/check"
30+
"buf.build/go/bufplugin/internal/pkg/xslices"
3131
"github.com/bufbuild/protocompile"
3232
"github.com/bufbuild/protocompile/linker"
3333
"github.com/bufbuild/protocompile/parser"

check/checkutil/breaking.go

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

20-
"github.com/bufbuild/bufplugin-go/check"
20+
"buf.build/go/bufplugin/check"
2121
"google.golang.org/protobuf/reflect/protoreflect"
2222
)
2323

check/checkutil/lint.go

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

20-
"github.com/bufbuild/bufplugin-go/check"
20+
"buf.build/go/bufplugin/check"
2121
"google.golang.org/protobuf/reflect/protoreflect"
2222
)
2323

0 commit comments

Comments
 (0)