Skip to content

Commit

Permalink
feat: add MODULE to hack
Browse files Browse the repository at this point in the history
  • Loading branch information
opicaud committed Oct 27, 2023
1 parent 809156c commit 9782709
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 2 deletions.
6 changes: 6 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ local_path_override(
module_name = "rules_pact",
path = "rules_pact",
)
bazel_dep(name = "hack", version = "")
local_path_override(
module_name = "hack",
path = "hack",
)

bazel_dep(name = "stardoc", version = "0.6.2")

rules_pact = use_extension("@rules_pact//:extensions.bzl", "rules_pact")
Expand Down
21 changes: 21 additions & 0 deletions hack/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module(
name="hack",
version=""
)

bazel_dep(name = "rules_build_secrets", version = "0.0.0", repo_name = "environment_secrets")
bazel_dep(name = "aspect_bazel_lib", version = "1.34.0")

git_override(
module_name = "rules_build_secrets",
commit = "c7a0d784a73c369e9932270bfb859a3b2c653716",
remote = "https://github.com/opicaud/rules_build_secrets/"
)
rules_build_secrets = use_extension("@environment_secrets//lib:extensions.bzl", "rules_build_secrets")
rules_build_secrets.options(
name = "env",
entries = {
"GH_TOKEN": "default",
},
)
use_repo(rules_build_secrets, "env")
Empty file added hack/WORKSPACE
Empty file.
2 changes: 1 addition & 1 deletion rules_pact/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("@rules_pact//:defs.bzl", "pact_protobuf_plugin_toolchain", "pact_reference_toolchain")
load("@bazel_skylib//rules:diff_test.bzl", "diff_test")
load("@@//hack:release.bzl", "release_me")
load("@hack//:release.bzl", "release_me")

release_me()

Expand Down
6 changes: 5 additions & 1 deletion rules_pact/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ module(
bazel_dep(name = "platforms", version = "0.0.7")
bazel_dep(name = "stardoc", version = "0.6.2")
bazel_dep(name = "bazel_skylib", version = "1.4.2")

bazel_dep(name = "hack", version = "")
local_path_override(
module_name = "hack",
path = "../hack",
)
rules_pact = use_extension("@rules_pact//:extensions.bzl", "rules_pact")
rules_pact.options()
use_repo(
Expand Down

0 comments on commit 9782709

Please sign in to comment.