Skip to content

Commit 807d97e

Browse files
gmottajrJr
and
Jr
authored
feat: remove --enable_workspace flag from bazel workflow (#1041)
* Remove --enable_workspace flag from bazel workflow * ## Migration to Bzlmod ### Changes: - Migrated all dependencies to Bzlmod. - Updated `MODULE.bazel` to use the latest versions of dependencies: - `rules_foreign_cc` updated to `0.13.0` - `googletest` updated to `1.14.0.bcr.1` - `rules_cc` updated to `0.1.0` - Removed `WORKSPACE.bazel` as it is no longer needed in the Bzlmod workflow. - Backed up `WORKSPACE.bazel` and placed it in the `workspace-backup` folder for reference. - Cleaned up the `MODULE.bazel` file to ensure minimal and correct dependencies. - Ran `bazel test` to validate the build and ensure all dependencies are correctly set up. ### Next Steps: - Ensure all team members are using Bzlmod and its dependencies. - Consider removing any unused dependencies or conflicting versions in the future. --------- Co-authored-by: Jr <[email protected]>
1 parent 7b61883 commit 807d97e

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/linux-bazel-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ jobs:
4040
${{ runner.os }}-
4141
4242
- name: Build faker-cxx library
43-
run: bazel build //:faker-cxx --enable_workspace
43+
run: bazel build //:faker-cxx
4444

4545
- name: Build and run faker-cxx tests
4646
run: |
47-
bazel build //tests:faker-cxx-ut --enable_workspace
47+
bazel build //tests:faker-cxx-ut
4848
bazel-bin/tests/faker-cxx-ut

MODULE.bazel

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# Define dependencies using Bzlmod.
2+
23
bazel_dep(
3-
name = "rules_foreign_cc",
4-
version = "0.10.1"
4+
name = "rules_foreign_cc",
5+
version = "0.13.0"
56
)
67

78
bazel_dep(
89
name = "googletest",
9-
version = "1.14.0.bcr.1"
10+
version = "1.15.0"
1011
)
1112

1213
bazel_dep(
1314
name = "rules_cc",
14-
version = "0.0.16"
15+
version = "0.1.0"
1516
)

deps.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)