Skip to content

Commit

Permalink
Use new host platform constraints in test/bzlmod
Browse files Browse the repository at this point in the history
Fixes the Stardoc part of bazelbuild/bazel#21877.
  • Loading branch information
Wyverald committed Apr 25, 2024
1 parent ec43802 commit 2e742e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/bzlmod/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ stardoc(
out = "docs.md",
input = "def.bzl",
deps = [
"@local_config_platform//:constraints.bzl",
"@my_skylib//rules:write_file",
"@platforms//host:constraints_lib",
],
)

Expand Down
7 changes: 2 additions & 5 deletions test/bzlmod/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@ local_path_override(
path = "../..",
)

bazel_dep(
name = "bazel_skylib",
version = "1.4.0",
repo_name = "my_skylib",
)
bazel_dep(name = "bazel_skylib", version = "1.6.1", repo_name = "my_skylib")
bazel_dep(name = "platforms", version = "0.0.10")
2 changes: 1 addition & 1 deletion test/bzlmod/def.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

"""A simple macro used to test stardoc."""

load("@local_config_platform//:constraints.bzl", "HOST_CONSTRAINTS")
load("@my_skylib//rules:write_file.bzl", "write_file")
load("@platforms//host:constraints.bzl", "HOST_CONSTRAINTS")

def write_host_constraints(name):
"""Emits the constraints of the host platform to a file.
Expand Down

0 comments on commit 2e742e2

Please sign in to comment.