Skip to content

Commit

Permalink
Make sure to rename the importpath in bazel rules for go api
Browse files Browse the repository at this point in the history
Summary: This updates the importpath rules too.

Test Plan: Run manually?

Reviewers: zasgar

Reviewed By: zasgar

Differential Revision: https://phab.corp.pixielabs.ai/D8335

GitOrigin-RevId: 3bd7dbbfb3cbe075ca61ac27973d7e32bd38a432
  • Loading branch information
vihangm authored and copybaranaut committed Apr 22, 2021
1 parent 04a65de commit c2dfa90
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ go_library(
"uuid.go",
"vizier.go",
],
importpath = "px.dev/pixie/src/api/go/pxapi",
importpath = "px.dev/pxapi",
visibility = ["//src:__subpackages__"],
deps = [
"//src/api/go/pxapi/errdefs",
Expand Down
2 changes: 1 addition & 1 deletion errdefs/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ go_library(
"err.go",
"parsers.go",
],
importpath = "px.dev/pixie/src/api/go/pxapi/errdefs",
importpath = "px.dev/pxapi/errdefs",
visibility = ["//src:__subpackages__"],
deps = [
"//src/api/public/vizierapipb:public_vizier_pl_go_proto",
Expand Down
2 changes: 1 addition & 1 deletion errdefs/formatters/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ go_library(
"json.go",
"table.go",
],
importpath = "px.dev/pixie/src/api/go/pxapi/errdefs/formatters",
importpath = "px.dev/pxapi/errdefs/formatters",
visibility = ["//src:__subpackages__"],
deps = [
"//src/api/go/pxapi/errdefs",
Expand Down
2 changes: 1 addition & 1 deletion examples/basic_example/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "basic_example_lib",
srcs = ["example.go"],
importpath = "px.dev/pixie/src/api/go/pxapi/examples/basic_example",
importpath = "px.dev/pxapi/examples/basic_example",
visibility = ["//visibility:private"],
deps = [
"//src/api/go/pxapi",
Expand Down
2 changes: 1 addition & 1 deletion examples/example_mux/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "example_mux_lib",
srcs = ["example.go"],
importpath = "px.dev/pixie/src/api/go/pxapi/examples/example_mux",
importpath = "px.dev/pxapi/examples/example_mux",
visibility = ["//visibility:private"],
deps = [
"//src/api/go/pxapi",
Expand Down
2 changes: 1 addition & 1 deletion muxes/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ go_library(
"doc.go",
"regex.go",
],
importpath = "px.dev/pixie/src/api/go/pxapi/muxes",
importpath = "px.dev/pxapi/muxes",
visibility = ["//src:__subpackages__"],
deps = [
"//src/api/go/pxapi",
Expand Down
2 changes: 1 addition & 1 deletion pxpb/cloudapipb/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pl_proto_library(

pl_go_proto_library(
name = "public_cloudapi_pl_go_proto",
importpath = "px.dev/pixie/src/api/public/cloudapipb",
importpath = "px.dev/pxapi/pxpb/cloudapipb",
proto = ":cloudapi_pl_proto",
visibility = ["//src:__subpackages__"],
deps = [
Expand Down
2 changes: 1 addition & 1 deletion pxpb/cloudapipb/mock/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "mock",
srcs = ["cloudapi_mock.gen.go"],
importpath = "px.dev/pixie/src/api/public/cloudapipb/mock",
importpath = "px.dev/pxapi/pxpb/cloudapipb/mock",
visibility = ["//visibility:public"],
deps = [
"//src/api/public/cloudapipb:public_cloudapi_pl_go_proto",
Expand Down
2 changes: 1 addition & 1 deletion pxpb/uuidpb/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pl_cc_proto_library(

pl_go_proto_library(
name = "uuid_pl_go_proto",
importpath = "px.dev/pixie/src/api/public/uuidpb",
importpath = "px.dev/pxapi/pxpb/uuidpb",
proto = ":uuid_pl_proto",
visibility = ["//src:__subpackages__"],
)
Expand Down
2 changes: 1 addition & 1 deletion pxpb/vizierapipb/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pl_cc_proto_library(

pl_go_proto_library(
name = "public_vizier_pl_go_proto",
importpath = "px.dev/pixie/src/api/public/vizierapipb",
importpath = "px.dev/pxapi/pxpb/vizierapipb",
proto = ":vizier_pl_proto",
visibility = ["//src:__subpackages__"],
)
Expand Down
2 changes: 1 addition & 1 deletion pxpb/vizierapipb/mock/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "mock",
srcs = ["vizier_mock.gen.go"],
importpath = "px.dev/pixie/src/api/public/vizierapipb/mock",
importpath = "px.dev/pxapi/pxpb/vizierapipb/mock",
visibility = ["//src:__subpackages__"],
deps = [
"//src/api/public/vizierapipb:public_vizier_pl_go_proto",
Expand Down
2 changes: 1 addition & 1 deletion types/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ go_library(
"schema.go",
"types.go",
],
importpath = "px.dev/pixie/src/api/go/pxapi/types",
importpath = "px.dev/pxapi/types",
visibility = ["//src:__subpackages__"],
deps = [
"//src/api/public/vizierapipb:public_vizier_pl_go_proto",
Expand Down

0 comments on commit c2dfa90

Please sign in to comment.