Skip to content

Commit

Permalink
Fix buildkite_config
Browse files Browse the repository at this point in the history
  • Loading branch information
Bencodes committed Aug 11, 2023
1 parent 8d5a9d7 commit a23dd05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ bazel_dep(name = "rules_android", version = "0.1.1", repo_name = "build_bazel_ru
bazel_dep(name = "rules_python", version = "0.24.0")

kt = use_extension("//src/main/starlark/core/repositories:bzlmod_setup.bzl", "kt_bzlmod_ext")
use_repo(kt, "com_github_google_ksp", "com_github_jetbrains_kotlin", "com_github_pinterest_ktlint", "kt_java_stub_template")
use_repo(kt, "com_github_google_ksp", "com_github_jetbrains_kotlin", "com_github_pinterest_ktlint", "kt_java_stub_template", "buildkite_config")

register_toolchains("//kotlin/internal:default_toolchain")

Expand Down
7 changes: 7 additions & 0 deletions src/main/starlark/core/repositories/bzlmod_setup.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ def _kt_configure_impl(_module_ctx):
executable = True,
)

# This tarball intentionally does not have a SHA256 because the upstream URL can change without notice
# For more context: https://github.com/bazelbuild/bazel-toolchains/blob/0c1f7c3c5f9e63f1e0ee91738b964937eea2d3e0/WORKSPACE#L28-L32
http_file(
name = "buildkite_config",
urls = versions.RBE.URLS,
)

kt_bzlmod_ext = module_extension(
implementation = _kt_configure_impl,
)

0 comments on commit a23dd05

Please sign in to comment.