Skip to content

Commit

Permalink
Use maybe in bazel_features_repo macro (#47)
Browse files Browse the repository at this point in the history
Makes it easier to include `bazel_features` in `WORKSPACE` projects.
  • Loading branch information
fmeum committed Mar 4, 2024
1 parent 716b6e4 commit 4b4f65e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions private/repos.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@
load(":globals.bzl", "GLOBALS")
load(":globals_repo.bzl", "globals_repo")
load(":version_repo.bzl", "version_repo")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")

def bazel_features_repos():
version_repo(name = "bazel_features_version")
globals_repo(
maybe(
version_repo,
name = "bazel_features_version"
)
maybe(
globals_repo,
name = "bazel_features_globals",
globals = GLOBALS,
)

0 comments on commit 4b4f65e

Please sign in to comment.