Skip to content

Commit 7b5684e

Browse files
authored
Migrate importpaths to use v4 (#413)
Fixes #407
1 parent 2d0394b commit 7b5684e

File tree

147 files changed

+210
-210
lines changed

Some content is hidden

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

147 files changed

+210
-210
lines changed

BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ exports_files([
1010
# ----------------------------------------------------
1111
# Gazelle
1212
# ----------------------------------------------------
13-
# gazelle:prefix github.com/stackb/rules_proto
13+
# gazelle:prefix github.com/stackb/rules_proto/v4
1414
# gazelle:exclude vendor
1515
# gazelle:exclude node_modules
1616
# gazelle:go_generate_proto false

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `rules_proto (v4)`
22

3-
![build-status](https://github.com/stackb/rules_proto/actions/workflows/ci.yaml/badge.svg)
3+
![build-status](https://github.com/stackb/rules_proto/v4/actions/workflows/ci.yaml/badge.svg)
44
[![Go Reference](https://pkg.go.dev/badge/github.com/stackb/rules_proto.svg)](https://pkg.go.dev/github.com/stackb/rules_proto)
55

66
Bazel starlark rules for building protocol buffers +/- gRPC :sparkles:.

cmd/examplegen/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ go_library(
88
"generator.go",
99
"template.go",
1010
],
11-
importpath = "github.com/stackb/rules_proto/cmd/examplegen",
11+
importpath = "github.com/stackb/rules_proto/v4/cmd/examplegen",
1212
visibility = ["//visibility:private"],
1313
)
1414

cmd/gazelle/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ go_library(
2323
"profiler.go",
2424
"update-repos.go",
2525
],
26-
importpath = "github.com/stackb/rules_proto/cmd/gazelle",
26+
importpath = "github.com/stackb/rules_proto/v4/cmd/gazelle",
2727
visibility = ["//visibility:public"],
2828
deps = [
2929
"//cmd/gazelle/internal/wspace",

cmd/gazelle/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ To upgrade gazelle, one must:
66

77
- Compare changes in the source repo@version to the files here. It's easiest to
88
just copy over each file and see where the diffs are. Make sure `langs.go`
9-
includes `github.com/stackb/rules_proto/language/protobuf`.
9+
includes `github.com/stackb/rules_proto/v4/language/protobuf`.
1010
- Since the `proto_gazelle.bzl` rule uses
1111
`@bazel_gazelle//internal:gazelle.bash.in`, changes there must remain
1212
compatible with proto_gazelle. Look at the diff there and make sure the

cmd/gazelle/fix-update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import (
3939
"github.com/bazelbuild/bazel-gazelle/resolve"
4040
"github.com/bazelbuild/bazel-gazelle/rule"
4141
"github.com/bazelbuild/bazel-gazelle/walk"
42-
"github.com/stackb/rules_proto/cmd/gazelle/internal/wspace"
42+
"github.com/stackb/rules_proto/v4/cmd/gazelle/internal/wspace"
4343
)
4444

4545
// updateConfig holds configuration information needed to run the fix and

cmd/gazelle/integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
"github.com/bazelbuild/bazel-gazelle/config"
3232
"github.com/bazelbuild/bazel-gazelle/testtools"
3333
"github.com/google/go-cmp/cmp"
34-
"github.com/stackb/rules_proto/cmd/gazelle/internal/wspace"
34+
"github.com/stackb/rules_proto/v4/cmd/gazelle/internal/wspace"
3535
)
3636

3737
// skipIfWorkspaceVisible skips the test if the WORKSPACE file for the

cmd/gazelle/internal/wspace/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
33
go_library(
44
name = "wspace",
55
srcs = ["finder.go"],
6-
importpath = "github.com/stackb/rules_proto/cmd/gazelle/internal/wspace",
6+
importpath = "github.com/stackb/rules_proto/v4/cmd/gazelle/internal/wspace",
77
visibility = ["//visibility:public"],
88
)
99

cmd/gazelle/langs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import (
1919
"github.com/bazelbuild/bazel-gazelle/language"
2020
golang "github.com/bazelbuild/bazel-gazelle/language/go"
2121
"github.com/bazelbuild/bazel-gazelle/language/proto"
22-
"github.com/stackb/rules_proto/language/proto_go_modules"
23-
"github.com/stackb/rules_proto/language/protobuf"
22+
"github.com/stackb/rules_proto/v4/language/proto_go_modules"
23+
"github.com/stackb/rules_proto/v4/language/protobuf"
2424
)
2525

2626
var languages = []language.Language{

cmd/gazelle/update-repos.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import (
3232
"github.com/bazelbuild/bazel-gazelle/merger"
3333
"github.com/bazelbuild/bazel-gazelle/repo"
3434
"github.com/bazelbuild/bazel-gazelle/rule"
35-
"github.com/stackb/rules_proto/cmd/gazelle/internal/wspace"
35+
"github.com/stackb/rules_proto/v4/cmd/gazelle/internal/wspace"
3636
)
3737

3838
type updateReposConfig struct {

0 commit comments

Comments
 (0)