Skip to content

Commit 82fefbf

Browse files
authored
Remove Bazel WORKSPACE setup. (#8509)
1 parent 65e49fa commit 82fefbf

File tree

12 files changed

+2
-324
lines changed

12 files changed

+2
-324
lines changed

.bazelci/presubmit.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
buildifier: latest
33
matrix:
44
bazel:
5-
- 6.x
65
- 7.x
76
- 8.x
87
tasks:

BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ filegroup(
3232
".npmrc",
3333
"BUILD.bazel",
3434
"MODULE.bazel",
35-
"WORKSPACE",
3635
"build_defs.bzl",
3736
"package.json",
3837
"pnpm-lock.yaml",

WORKSPACE

Lines changed: 0 additions & 189 deletions
This file was deleted.

WORKSPACE.bzlmod

Lines changed: 0 additions & 3 deletions
This file was deleted.

build_defs.bzl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,21 @@ Rules for building C++ flatbuffers with Bazel.
77

88
load("@rules_cc//cc:defs.bzl", "cc_library")
99

10-
def repo_name(label):
11-
if hasattr(label, "repo_name"): # Added in Bazel 7.1
12-
return label.repo_name
13-
else:
14-
return "com_github_google_flatbuffers"
15-
1610
TRUE_FLATC_PATH = Label("//:flatc")
1711

1812
DEFAULT_INCLUDE_PATHS = [
1913
"./",
2014
"$(GENDIR)",
2115
"$(BINDIR)",
22-
"$(execpath %s).runfiles/%s" % (TRUE_FLATC_PATH, repo_name(TRUE_FLATC_PATH)),
16+
"$(execpath %s).runfiles/%s" % (TRUE_FLATC_PATH, TRUE_FLATC_PATH.repo_name),
2317
]
2418

2519
def default_include_paths(flatc_path):
2620
return [
2721
"./",
2822
"$(GENDIR)",
2923
"$(BINDIR)",
30-
"$(execpath %s).runfiles/%s" % (flatc_path, repo_name(flatc_path)),
24+
"$(execpath %s).runfiles/%s" % (flatc_path, flatc_path.repo_name),
3125
]
3226

3327
DEFAULT_FLATC_ARGS = [
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
This directory is not intended to be used independently of the flatbuffers
22
repository. Instead, this whole directory serves as a unit test for the
33
C++ integration in the flatbuffers repo.
4-
5-
Run this test from the top-level of the flatbuffers repo.
6-
```console
7-
$ bazel test //tests:bazel_repository_test
8-
```

tests/bazel_repository_test_dir/WORKSPACE

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/bazel_repository_test_dir/WORKSPACE.bzlmod

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/ts/bazel_repository_test_dir/WORKSPACE

Lines changed: 0 additions & 82 deletions
This file was deleted.

tests/ts/bazel_repository_test_dir/WORKSPACE.bzlmod

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)