Skip to content

Commit

Permalink
Enable bzlmod, update README, fix Swift build
Browse files Browse the repository at this point in the history
Rather than mess with the WORKSPACE rules, the shortest path to fixing
`blaze build //swift:tests` appeared to be introducing MODULE.bazel.

MODULE.bazel, a.k.a. bzlmod, appears to be the new hotness, so I'll also
try updating the other builds to use it as well.

- https://bazel.build/external/migration
- https://bazel.build/external/overview#workspace-shortcomings
- bazelbuild/bazel#18958
  • Loading branch information
mbland committed Apr 11, 2024
1 parent abfc7d4 commit 2363940
Show file tree
Hide file tree
Showing 6 changed files with 2,029 additions and 53 deletions.
1 change: 0 additions & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Options common for all EngFlow remote configurations.
common --@aspect_rules_ts//ts:skipLibCheck=honor_tsconfig
common --@aspect_rules_ts//ts:default_to_tsc_transpiler
common --noenable_bzlmod
common --noincompatible_check_sharding_support

build:engflow_common --jobs=40
Expand Down
15 changes: 15 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""EngFlow example project"""

module(name = "engflow-example", version = "0.0.0")

bazel_dep(
name = "apple_support",
version = "1.15.1",
repo_name = "build_bazel_apple_support",
)

bazel_dep(
name = "rules_swift",
version = "1.18.0",
repo_name = "build_bazel_rules_swift"
)
Loading

0 comments on commit 2363940

Please sign in to comment.