From a10252e98769289d6748ad0265620e944f22ebe5 Mon Sep 17 00:00:00 2001 From: xhe Date: Tue, 7 May 2024 14:31:40 +0800 Subject: [PATCH] fix bazel Signed-off-by: xhe --- BUILD.bazel | 12 ++++++++++++ DEPS.bzl | 6 ++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index f80d4432ef040..4106c3f2734bd 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,3 +1,4 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") load("@bazel_gazelle//:def.bzl", "gazelle") # gazelle:proto disable_global @@ -13,3 +14,14 @@ xcode_version( name = "xcode_version", version = "10.0", ) + +go_library( + name = "tidb_lib", + srcs = ["a.go"], + importpath = "github.com/pingcap/tidb", +) + +go_binary( + name = "tidb", + embed = [":tidb_lib"], +) diff --git a/DEPS.bzl b/DEPS.bzl index 89a6507ea5ec4..4efd223ec43ad 100644 --- a/DEPS.bzl +++ b/DEPS.bzl @@ -4897,14 +4897,16 @@ def go_deps(): name = "com_sourcegraph_sourcegraph_appdash", build_file_proto_mode = "disable_global", importpath = "sourcegraph.com/sourcegraph/appdash", - sum = "h1:ucqkfpjg9WzSUubAO62csmucvxl4/JeW3F4I4909XkM=", + replace = "github.com/sourcegraph/appdash", + sum = "h1:IJ3DuWHPTJrsqtIqjfdmPTELdTFGefvrOa2eTeRBleQ=", version = "v0.0.0-20190731080439-ebfcffb1b5c0", ) go_repository( name = "com_sourcegraph_sourcegraph_appdash_data", build_file_proto_mode = "disable_global", importpath = "sourcegraph.com/sourcegraph/appdash-data", - sum = "h1:e1sMhtVq9AfcEy8AXNb8eSg6gbzfdpYhoNqnPJa+GzI=", + replace = "github.com/sourcegraph/appdash-data", + sum = "h1:8ZnTA26bBOoPkAbbitKPgNlpw0Bwt7ZlpYgZWHWJR/w=", version = "v0.0.0-20151005221446-73f23eafcf67", ) go_repository(