Skip to content

Commit

Permalink
fix: compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
filmil committed Dec 22, 2024
1 parent 2e0e6b9 commit 80c925d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 22 deletions.
14 changes: 8 additions & 6 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,26 @@ http_archive(
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
gazelle_dependencies()

load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()


load("//build:repositories.bzl", "bazel_ebook_repositories")
bazel_ebook_repositories()


load("@gotopt2//build:deps.bzl", "gotopt2_dependencies")
gotopt2_dependencies()


load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
#load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
#rules_pkg_dependencies()


git_repository(
name = "bazel_rules_bid",
remote = "https://github.com/filmil/bazel-rules-bid.git",
commit = "04b599ec790fe4572dfb851e145c791cb5022c15",
shallow_since = "1676537869 -0800"
commit = "c856ef432eebd4ef5c86eaca1752d55fe7d9c93d",
shallow_since = "1734828303 -0800",
)
load("@bazel_rules_bid//build:repositories.bzl", "bazel_bid_repositories")
bazel_bid_repositories()

28 changes: 14 additions & 14 deletions build/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")

def bazel_ebook_repositories():
excludes = native.existing_rules().keys()

if "bazel_bats" not in excludes:
git_repository(
name = "bazel_bats",
remote = "https://github.com/filmil/bazel-bats",
commit = "535f03ff9effd12694ff80d252375813e7ba9ae1",
shallow_since = "1667200603 -0700",
)
maybe(
git_repository,
name = "bazel_bats",
remote = "https://github.com/filmil/bazel-bats",
commit = "535f03ff9effd12694ff80d252375813e7ba9ae1",
shallow_since = "1667200603 -0700",
)

if "gotopt2" not in excludes:
git_repository(
name = "gotopt2",
remote = "https://github.com/filmil/gotopt2",
commit = "50751ce0722cc2ccc4066ccb287675d8875d685e",
)
maybe(
git_repository,
name = "gotopt2",
remote = "https://github.com/filmil/gotopt2",
commit = "21c007a22bc51ec580510e5bed4f997f84362e0b",
)

3 changes: 1 addition & 2 deletions ebook-example/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ local_repository(
git_repository(
name = "bazel_rules_bid",
remote = "https://github.com/filmil/bazel-rules-bid.git",
commit = "04b599ec790fe4572dfb851e145c791cb5022c15",
shallow_since = "1676537869 -0800"
commit = "794d3c63d8d4a36888b873f307f20ef285b79f0d",
)
load("@bazel_rules_bid//build:repositories.bzl", "bazel_bid_repositories")
bazel_bid_repositories()
Expand Down

0 comments on commit 80c925d

Please sign in to comment.