Fix gazelle for packages that contain a "build" directory/file

This commit is contained in:
Mustafa Gezen 2023-08-22 18:50:46 +02:00
parent e7aad0c52f
commit 483bdaa50d
7 changed files with 48 additions and 4 deletions

2
BUILD
View File

@ -22,7 +22,7 @@ npm_link_all_packages(name = "node_modules")
exports_files(["tsconfig.json"])
# gazelle:prefix go.resf.org/peridot
# gazelle:build_file_name BUILD
# gazelle:build_file_name BUILD,BUILD.bazel
# gazelle:go_visibility //third_party:__subpackages__
# gazelle:exclude third_party/googleapis
# gazelle:exclude vendor/go.resf.org/peridot

View File

@ -11,4 +11,3 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

View File

@ -5,5 +5,11 @@ go mod tidy -e
go mod vendor -e
find vendor -name "BUILD.bazel" -delete
find vendor -name "BUILD" -delete
# if the vendor package has a build/BUILD directory/file, then force BUILD.bazel
for d in $(find vendor -iname build); do
echo '' > $(dirname $d)/BUILD.bazel
done
bazel run //:gazelle
bazel run //:gazelle-update-repos

View File

@ -11,4 +11,3 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

View File

@ -11,4 +11,3 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

41
vendor/go.temporal.io/server/common/BUILD.bazel generated vendored Normal file
View File

@ -0,0 +1,41 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "common",
srcs = [
"clientCache.go",
"constants.go",
"daemon.go",
"defaultRetrySettings.go",
"protoTaskTokenSerializer.go",
"rpc.go",
"taskTokenSerializerInterfaces.go",
"util.go",
],
importmap = "go.resf.org/peridot/vendor/go.temporal.io/server/common",
importpath = "go.temporal.io/server/common",
visibility = ["//visibility:public"],
deps = [
"//vendor/github.com/dgryski/go-farm",
"//vendor/github.com/gogo/protobuf/proto",
"//vendor/go.temporal.io/api/common/v1:common",
"//vendor/go.temporal.io/api/enums/v1:enums",
"//vendor/go.temporal.io/api/history/v1:history",
"//vendor/go.temporal.io/api/serviceerror",
"//vendor/go.temporal.io/api/workflowservice/v1:workflowservice",
"//vendor/go.temporal.io/server/api/historyservice/v1:historyservice",
"//vendor/go.temporal.io/server/api/matchingservice/v1:matchingservice",
"//vendor/go.temporal.io/server/api/token/v1:token",
"//vendor/go.temporal.io/server/api/workflow/v1:workflow",
"//vendor/go.temporal.io/server/common/backoff",
"//vendor/go.temporal.io/server/common/dynamicconfig",
"//vendor/go.temporal.io/server/common/log",
"//vendor/go.temporal.io/server/common/log/tag",
"//vendor/go.temporal.io/server/common/metrics",
"//vendor/go.temporal.io/server/common/number",
"//vendor/go.temporal.io/server/common/primitives/timestamp",
"//vendor/go.temporal.io/server/common/serviceerror",
"//vendor/go.temporal.io/server/common/util",
"@org_golang_google_grpc//:go_default_library",
],
)