Skip to content

Commit

Permalink
move stardoc to remote callers
Browse files Browse the repository at this point in the history
  • Loading branch information
5h4d0w4rt committed Oct 30, 2021
1 parent a84718d commit e032cbb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: CI
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
branches: [ main, pull_request ]
pull_request:
branches: [ main ]
branches: [ main, pull_request ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
16 changes: 4 additions & 12 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
workspace(name = "io_bazel_rules_prometheus")

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

http_archive(
name = "platforms",
Expand All @@ -21,21 +20,14 @@ http_archive(
],
)

git_repository(
name = "io_bazel_stardoc",
commit = "4378e9b6bb2831de7143580594782f538f461180",
remote = "https://github.com/bazelbuild/stardoc.git",
shallow_since = "1570829166 -0400",
)

load("@io_bazel_stardoc//:setup.bzl", "stardoc_repositories")

stardoc_repositories()

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

bazel_skylib_workspace()

load("@io_bazel_rules_prometheus//:deps.bzl", "prometheus_repositories")

prometheus_repositories()

load("@io_bazel_stardoc//:setup.bzl", "stardoc_repositories")

stardoc_repositories()
9 changes: 9 additions & 0 deletions prometheus/internal/repositories.bzl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
load(":toolchain.bzl", "build_toolchains", "prometheus_register_toolchains")
load(":platforms.bzl", "PLATFORMS")

Expand Down Expand Up @@ -193,6 +194,14 @@ def prometheus_repositories(
_platforms_info: pre-built PrometheusPlatformInfo provider with info on all available os+architectures
"""

# required to build docs on downstream callers
git_repository(
name = "io_bazel_stardoc",
commit = "4378e9b6bb2831de7143580594782f538f461180",
remote = "https://github.com/bazelbuild/stardoc.git",
shallow_since = "1570829166 -0400",
)

# TODO(5h4d0w4rt) add custom version support
prometheus_package_info = PrometheusPackageInfo(
platforms_info = _platforms_info,
Expand Down

0 comments on commit e032cbb

Please # to comment.