-
Notifications
You must be signed in to change notification settings - Fork 612
[email protected] #6594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pcj
wants to merge
1
commit into
bazelbuild:main
Choose a base branch
from
stackb:stackb_rules_closure-v1.0.0
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+270
−0
Open
[email protected] #6594
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,202 @@ | ||
| module( | ||
| name = "stackb_rules_closure", | ||
| version = "1.0.0", | ||
| compatibility_level = 1, | ||
| ) | ||
|
|
||
| # ------------------------------------------------------------------- | ||
| # Direct Dependencies | ||
| # ------------------------------------------------------------------- | ||
|
|
||
| bazel_dep(name = "bazel_skylib", version = "1.8.2") | ||
| bazel_dep(name = "build_stack_rules_proto", version = "4.1.1") | ||
| bazel_dep(name = "closure-templates", version = "1.0.1") | ||
| bazel_dep(name = "google_bazel_common", version = "0.0.1") | ||
| bazel_dep(name = "platforms", version = "1.0.0") | ||
| bazel_dep(name = "protobuf_javascript", version = "0.0.0") | ||
| bazel_dep(name = "protobuf", version = "32.1", repo_name = "com_google_protobuf") | ||
| bazel_dep(name = "rules_java", version = "8.16.1") | ||
| bazel_dep(name = "rules_shell", version = "0.6.1") | ||
| bazel_dep(name = "rules_jvm_external", version = "6.8") | ||
| bazel_dep(name = "rules_proto", version = "7.1.0") | ||
| bazel_dep(name = "rules_python", version = "1.5.3") | ||
| bazel_dep(name = "rules_tsickle", version = "1.1.0") | ||
| bazel_dep(name = "rules_web_testing_java", version = "0.4.1") | ||
| bazel_dep(name = "rules_webtesting", version = "0.4.1") | ||
|
|
||
| # google_bazel_common override is needed for @closure-compiler | ||
| git_override( | ||
| module_name = "google_bazel_common", | ||
| # Pin to newer version to fix b/408030907 | ||
| commit = "2cab52929507935aa43d460a3976d3bedc814d3a", | ||
| remote = "https://github.com/google/bazel-common", | ||
| ) | ||
|
|
||
| # ------------------------------------------------------------------- | ||
| # Overrides | ||
| # ------------------------------------------------------------------- | ||
|
|
||
| # NOTE: cannot upgrade past protobuf editions... | ||
| # | ||
| # Commit: 263ee701cba6b75e1f8eddad5adcdf74718318b1 | ||
| # Date: 2025-10-08 21:32:22 +0000 UTC | ||
| # URL: https://github.com/protocolbuffers/protobuf-javascript/commit/263ee701cba6b75e1f8eddad5adcdf74718318b1 | ||
| # | ||
| # remove writeZigzagVarint64BigInt | ||
| # Size: 401599 (402 kB) | ||
| archive_override( | ||
| module_name = "protobuf_javascript", | ||
| sha256 = "8a50071fbca5e4a26361e6c9d81dd842207f0005f7cc1720226f20c25a231805", | ||
| strip_prefix = "protobuf-javascript-263ee701cba6b75e1f8eddad5adcdf74718318b1", | ||
| urls = ["https://github.com/protocolbuffers/protobuf-javascript/archive/263ee701cba6b75e1f8eddad5adcdf74718318b1.tar.gz"], | ||
| patches = ["protobuf_javascript.patch"], | ||
| patch_strip = 1, | ||
| ) | ||
|
|
||
| # Commit: 04fc63fb40bf30d2e5e0b3786028eb41218de979 | ||
| # Date: 2025-10-09 04:43:15 +0000 UTC | ||
| # URL: https://github.com/stackb/rules_proto/commit/04fc63fb40bf30d2e5e0b3786028eb41218de979 | ||
| # | ||
| # Remove lock file for @maven | ||
| # | ||
| # It is shared by multiple workspaces and seems to cause problems when locked | ||
| # Size: 4088796 (4.1 MB) | ||
| archive_override( | ||
| module_name = "build_stack_rules_proto", | ||
| sha256 = "aff21579deef91316c726582bec71c621dde2ae2ec74099a55b637bda8997333", | ||
| strip_prefix = "rules_proto-04fc63fb40bf30d2e5e0b3786028eb41218de979", | ||
| urls = ["https://github.com/stackb/rules_proto/archive/04fc63fb40bf30d2e5e0b3786028eb41218de979.tar.gz"], | ||
| ) | ||
|
|
||
| # ------------------------------------------------------------------- | ||
| # additional http dependencies | ||
| # ------------------------------------------------------------------- | ||
|
|
||
| http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file") | ||
|
|
||
| http_file( | ||
| name = "fonts_noto_mono_deb", | ||
| sha256 = "71ff715cf50a74a8cc11b02e7c906b69a242d3d677e739e0b2d18cd23b7de375", | ||
| urls = [ | ||
| "https://mirror.bazel.build/http.us.debian.org/debian/pool/main/f/fonts-noto/fonts-noto-mono_20161116-1_all.deb", | ||
| "http://http.us.debian.org/debian/pool/main/f/fonts-noto/fonts-noto-mono_20161116-1_all.deb", | ||
| ], | ||
| ) | ||
|
|
||
| http_file( | ||
| name = "libexpat_amd64_deb", | ||
| sha256 = "682d2321297c56dec327770efa986d4bef43a5acb1a5528b3098e05652998fae", | ||
| urls = [ | ||
| "https://mirror.bazel.build/http.us.debian.org/debian/pool/main/e/expat/libexpat1_2.1.0-6+deb8u3_amd64.deb", | ||
| "http://http.us.debian.org/debian/pool/main/e/expat/libexpat1_2.1.0-6+deb8u3_amd64.deb", | ||
| ], | ||
| ) | ||
|
|
||
| http_file( | ||
| name = "libpng_amd64_deb", | ||
| sha256 = "a57b6d53169c67a7754719f4b742c96554a18f931ca5b9e0408fb6502bb77e80", | ||
| urls = [ | ||
| "https://mirror.bazel.build/http.us.debian.org/debian/pool/main/libp/libpng/libpng12-0_1.2.50-2+deb8u2_amd64.deb", | ||
| "http://http.us.debian.org/debian/pool/main/libp/libpng/libpng12-0_1.2.50-2+deb8u2_amd64.deb", | ||
| ], | ||
| ) | ||
|
|
||
| http_file( | ||
| name = "libfontconfig_amd64_deb", | ||
| sha256 = "0bb54d61c13aa5b5253cb5e08aaca0dfc4c626a05ee30f51d0e3002cda166fec", | ||
| urls = [ | ||
| "https://mirror.bazel.build/http.us.debian.org/debian/pool/main/f/fontconfig/libfontconfig1_2.11.0-6.3+deb8u1_amd64.deb", | ||
| "http://http.us.debian.org/debian/pool/main/f/fontconfig/libfontconfig1_2.11.0-6.3+deb8u1_amd64.deb", | ||
| ], | ||
| ) | ||
|
|
||
| http_file( | ||
| name = "libfreetype_amd64_deb", | ||
| sha256 = "80184d932f9b0acc130af081c60a2da114c7b1e7531c18c63174498fae47d862", | ||
| urls = [ | ||
| "https://mirror.bazel.build/http.us.debian.org/debian/pool/main/f/freetype/libfreetype6_2.5.2-3+deb8u1_amd64.deb", | ||
| "http://http.us.debian.org/debian/pool/main/f/freetype/libfreetype6_2.5.2-3+deb8u1_amd64.deb", | ||
| ], | ||
| ) | ||
|
|
||
| http_file( | ||
| name = "fonts_noto_hinted_deb", | ||
| sha256 = "a71fcee2bc7820fc4e0c780bb9c7c6db8364fd2c5bac20867c5c33eed470dc51", | ||
| urls = [ | ||
| "https://mirror.bazel.build/http.us.debian.org/debian/pool/main/f/fonts-noto/fonts-noto-hinted_20161116-1_all.deb", | ||
| "http://http.us.debian.org/debian/pool/main/f/fonts-noto/fonts-noto-hinted_20161116-1_all.deb", | ||
| ], | ||
| ) | ||
|
|
||
| platform_http_file = use_repo_rule("//closure/private:platform_http_file.bzl", "platform_http_file") | ||
|
|
||
| platform_http_file( | ||
| name = "phantomjs", | ||
| amd64_sha256 = "86dd9a4bf4aee45f1a84c9f61cf1947c1d6dce9b9e8d2a907105da7852460d2f", | ||
| amd64_urls = [ | ||
| "https://mirror.bazel.build/bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2", | ||
| "https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2", | ||
| ], | ||
| macos_sha256 = "538cf488219ab27e309eafc629e2bcee9976990fe90b1ec334f541779150f8c1", | ||
| macos_urls = [ | ||
| "https://mirror.bazel.build/bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-macosx.zip", | ||
| "https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-macosx.zip", | ||
| ], | ||
| ) | ||
|
|
||
| # ------------------------------------------------------------------- | ||
| # java configuration | ||
| # ------------------------------------------------------------------- | ||
|
|
||
| # Compatibility layer | ||
| compat = use_extension("@rules_java//java:rules_java_deps.bzl", "compatibility_proxy") | ||
| use_repo(compat, "compatibility_proxy") | ||
|
|
||
| # ------------------------------------------------------------------- | ||
| # maven configuration | ||
| # ------------------------------------------------------------------- | ||
|
|
||
| maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") | ||
|
|
||
| # NOTE: even though we isolate OUR maven deps into a separate namespace, we | ||
| # still need the ones from other contributing modules. That is why this | ||
| # maven.install() declaration exists, and I am surprised bzlmod / | ||
| # rules_jvm_external works this way. | ||
| maven.install( | ||
| name = "maven", | ||
| known_contributing_modules = [ | ||
| "build_stack_rules_proto", | ||
| "grpc-java", | ||
| "stackb_rules_closure", | ||
| "protobuf", | ||
| "rules_web_testing_java", | ||
| ], | ||
| ) | ||
| maven.install( | ||
| name = "maven_rules_closure", | ||
| artifacts = [ | ||
| "args4j:args4j:2.33", | ||
| "com.google.closure-stylesheets:closure-stylesheets:1.5.0", | ||
| "com.google.dagger:dagger-producers:2.43.2", | ||
| "com.google.jimfs:jimfs:1.1", | ||
| "net.java.dev.javacc:javacc:7.0.13", | ||
| "org.jsoup:jsoup:1.16.1", | ||
| "org.seleniumhq.selenium:selenium-remote-driver:4.27.0", | ||
| "org.seleniumhq.selenium:selenium-api:4.27.0", | ||
| "org.seleniumhq.selenium:selenium-support:4.27.0", | ||
| ], | ||
| lock_file = "//:maven_rules_closure_install.json", | ||
| ) | ||
| maven.artifact( | ||
| name = "maven_rules_closure", | ||
| artifact = "closure-compiler", | ||
| group = "com.google.javascript", | ||
| # version = "v20250402", # Using maven.artifact here because the version number vxxxxx cannot parsed correctly. | ||
| version = "v20250820", # Using maven.artifact here because the version number vxxxxx cannot parsed correctly. | ||
| ) | ||
| maven.override( | ||
| name = "maven_rules_closure", | ||
| coordinates = "javacc:javacc", | ||
| target = "@maven_rules_closure//:net_java_dev_javacc_javacc", # javacc:javacc was not updated since 2008 and relocated to net.java.dev.javacc | ||
| ) | ||
| use_repo(maven, "maven_rules_closure") | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "mediaType": "application/vnd.build.bazel.registry.attestation+json;version=1.0.0", | ||
| "attestations": { | ||
| "source.json": { | ||
| "url": "https://github.com/stackb/rules_closure/releases/download/v1.0.0/source.json.intoto.jsonl", | ||
| "integrity": "sha256-pjy7Aj/EiS3HAnYDN85oIW6mXreX3fYT2E1z2xjXhq4=" | ||
| }, | ||
| "MODULE.bazel": { | ||
| "url": "https://github.com/stackb/rules_closure/releases/download/v1.0.0/MODULE.bazel.intoto.jsonl", | ||
| "integrity": "sha256-reHbkJtCe6vRBRShZ7TQwZlJxcDb+GjYd+keGarh/5I=" | ||
| }, | ||
| "rules_closure-v1.0.0.tar.gz": { | ||
| "url": "https://github.com/stackb/rules_closure/releases/download/v1.0.0/rules_closure-v1.0.0.tar.gz.intoto.jsonl", | ||
| "integrity": "sha256-zc9D6TZ56veazY18kw7CBrBcDaiIm/ImiCcTsML8sYY=" | ||
| } | ||
| } | ||
| } |
12 changes: 12 additions & 0 deletions
12
modules/stackb_rules_closure/1.0.0/patches/module_dot_bazel_version.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| =================================================================== | ||
| --- a/MODULE.bazel | ||
| +++ b/MODULE.bazel | ||
| @@ -1,7 +1,7 @@ | ||
| module( | ||
| name = "stackb_rules_closure", | ||
| - version = "0.0.0", | ||
| + version = "1.0.0", | ||
| compatibility_level = 1, | ||
| ) | ||
|
|
||
| # ------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| bcr_test_module: | ||
| module_path: "." | ||
| matrix: | ||
| platform: ["debian11", "ubuntu2404", "macos"] | ||
| bazel: [7.x, 8.x] | ||
| tasks: | ||
| run_tests: | ||
| name: "Build module" | ||
| platform: ${{ platform }} | ||
| bazel: ${{ bazel }} | ||
| test_targets: | ||
| - "//..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "integrity": "sha256-PoS6lvZ6Pn5V70aECg+UoEAFO/iLoQXGsGjiT+YMD1Q=", | ||
| "strip_prefix": "rules_closure-v1.0.0", | ||
| "url": "https://github.com/stackb/rules_closure/releases/download/v1.0.0/rules_closure-v1.0.0.tar.gz", | ||
| "patches": { | ||
| "module_dot_bazel_version.patch": "sha256-KjbCzHdL/WACVEem07r8LcNF0I0yFyF+z2YFPsH6Iq0=" | ||
| }, | ||
| "patch_strip": 1 | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "homepage": "https://github.com/stackb/rules_closure", | ||
| "maintainers": [ | ||
| { | ||
| "name": "Paul Cody", | ||
| "email": "[email protected]", | ||
| "github": "pcj", | ||
| "github_user_id": 50580 | ||
| } | ||
| ], | ||
| "repository": [ | ||
| "github:stackb/rules_closure" | ||
| ], | ||
| "versions": [ | ||
| "1.0.0" | ||
| ], | ||
| "yanked_versions": {} | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.