Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bazelignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
target/
node_modules/
examples/rules_js
examples/
gen/
3 changes: 0 additions & 3 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ build:release --@rules_rust//rust/settings:lto=fat
common --per_file_copt=external/.*protobuf.*@--PROTOBUF_WAS_NOT_SUPPOSED_TO_BE_BUILT
common --host_per_file_copt=external/.*protobuf.*@--PROTOBUF_WAS_NOT_SUPPOSED_TO_BE_BUILT

# Stardoc needs a jdk; give a hermetic one
common --java_runtime_version=remotejdk_11

# Load any settings specific to the current user.
# .bazelrc.user should appear in .gitignore so that settings are not shared with team members
# This needs to be last statement in this
Expand Down
8 changes: 1 addition & 7 deletions .bazelversion
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
latest
# The first line of this file is used by Bazelisk and Bazel to be sure
# the right version of Bazel is used to build and test this repo.
# This also defines which version is used on CI.
#
# Note that you should also run integration_tests against other Bazel
# versions you support.
8.x
1 change: 1 addition & 0 deletions .bcr/source.template.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"integrity": "**leave this alone**",
"strip_prefix": "{REPO}-{VERSION}",
"docs_url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.docs.tar.gz",
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.tar.gz"
}
3 changes: 0 additions & 3 deletions .gitattributes

This file was deleted.

9 changes: 9 additions & 0 deletions .github/workflows/release_prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ ARCHIVE="rules_playwright-$TAG.tar.gz"
git archive --format=tar --prefix=${PREFIX}/ ${TAG} | gzip > $ARCHIVE
SHA=$(shasum -a 256 $ARCHIVE | awk '{print $1}')

# Add generated API docs to the release
# See https://github.com/bazelbuild/bazel-central-registry/blob/main/docs/stardoc.md
docs="$(mktemp -d)"; targets="$(mktemp)"
bazel --output_base="$docs" query --output=label --output_file="$targets" 'kind("starlark_doc_extract rule", //...)'
bazel --output_base="$docs" build --target_pattern_file="$targets"
tar --create --auto-compress \
--directory "$(bazel --output_base="$docs" info bazel-bin)" \
--file "$GITHUB_WORKSPACE/${ARCHIVE%.tar.gz}.docs.tar.gz" .

cat << EOF
## Using Bzlmod with Bazel 6 or greater

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
- name: Install Playwright system dependencies
run: npx playwright install-deps

- name: Build and Test rules_playwright
run: bazelisk test //...

- name: Build and Test WORKSPACE example
working-directory: examples/workspace
run: bazelisk test //...
Expand Down
14 changes: 3 additions & 11 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ module(

bazel_dep(name = "bazel_skylib", version = "1.4.1")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "aspect_bazel_lib", version = "2.11.0")
bazel_dep(name = "aspect_bazel_lib", version = "2.22.5")

bazel_dep(name = "toolchains_musl", version = "0.1.20", dev_dependency = True)
bazel_dep(name = "toolchains_musl", version = "0.1.27", dev_dependency = True)

toolchains_musl = use_extension(
"@toolchains_musl//:toolchains_musl.bzl",
Expand All @@ -21,7 +21,7 @@ toolchains_musl.config(
extra_target_compatible_with = ["@//tools/linkers:musl"],
)

bazel_dep(name = "toolchains_llvm", version = "1.2.0", dev_dependency = True)
bazel_dep(name = "toolchains_llvm", version = "1.6.0", dev_dependency = True)

# Configure and register the toolchain.
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm", dev_dependency = True)
Expand Down Expand Up @@ -105,11 +105,3 @@ crate.from_cargo(
],
)
use_repo(crate, "crate_index")

http_jar = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_jar")

http_jar(
name = "stardoc-prebuilt",
integrity = "sha256-jDi5ITmziwwiHCsfd8v0UOoraWXIAfICIll+wbpg/vE=",
urls = ["https://github.com/alexeagle/stardoc-prebuilt/releases/download/v0.7.1/renderer_deploy.jar"],
)
25 changes: 0 additions & 25 deletions docs/BUILD.bazel

This file was deleted.

42 changes: 0 additions & 42 deletions docs/extensions.md

This file was deleted.

60 changes: 0 additions & 60 deletions docs/integrity_map.md

This file was deleted.

56 changes: 0 additions & 56 deletions docs/repositories.md

This file was deleted.

2 changes: 1 addition & 1 deletion examples/rules_js/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ playwright.repo(
)
use_repo(playwright, "playwright")

bazel_dep(name = "aspect_rules_js", version = "2.1.2")
bazel_dep(name = "aspect_rules_js", version = "2.9.2")

npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True)
npm.npm_translate_lock(
Expand Down
22 changes: 22 additions & 0 deletions playwright/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ bzl_library(
],
)

starlark_doc_extract(
name = "defs.doc_extract",
src = "defs.bzl",
symbol_names = [
"playwright_integrity_map",
"playwright_browser_matrix",
],
deps = [":defs"],
)

bzl_library(
name = "extensions",
srcs = ["extensions.bzl"],
Expand All @@ -32,6 +42,12 @@ bzl_library(
],
)

starlark_doc_extract(
name = "extensions.doc_extract",
src = "extensions.bzl",
deps = [":extensions"],
)

bzl_library(
name = "repositories",
srcs = ["repositories.bzl"],
Expand All @@ -46,3 +62,9 @@ bzl_library(
"@bazel_tools//tools/build_defs/repo:utils.bzl",
],
)

starlark_doc_extract(
name = "repositories.doc_extract",
src = "repositories.bzl",
deps = [":repositories"],
)
7 changes: 0 additions & 7 deletions tools/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
package(default_visibility = ["//visibility:public"])

java_binary(
name = "stardoc_renderer",
main_class = "com/google/devtools/build/stardoc/renderer/RendererMain",
runtime_deps = ["@stardoc-prebuilt//jar"],
)
Loading