Skip to content

Commit

Permalink
Add gonzojive_protobuf_javascript module. (bazelbuild#2853)
Browse files Browse the repository at this point in the history
Checked with `python3 tools/bcr_validation.py
--check=protobuf_javascript_esm`.

The module in question is my fork of the protobuf-javascript repo. The
changes in the fork are unlikely to be accepted upstream (see
protocolbuffers/protobuf-javascript#156).
  • Loading branch information
gonzojive authored and asa committed Sep 30, 2024
1 parent 3d898b7 commit 90a7a1d
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
24 changes: 24 additions & 0 deletions modules/gonzojive_protobuf_javascript/3.21.5.esm/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module(
name = "gonzojive_protobuf_javascript",
version = "3.21.5.esm",
compatibility_level = 3,
)

bazel_dep(name = "protobuf", version = "27.1", repo_name = "com_google_protobuf")
bazel_dep(name = "abseil-cpp", version = "20211102.0")
bazel_dep(name = "rules_pkg", version = "0.7.0")

# For VS Code autocompletion:
# https://github.com/hedronvision/bazel-compile-commands-extractor#usage
#
# Run bazel run @hedron_compile_commands//:refresh_all to get autocomplete
# working in VS Code and other editors.
# Not currently working due to https://github.com/hedronvision/bazel-compile-commands-extractor/issues/199
bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
git_override(
module_name = "hedron_compile_commands",
commit = "0e990032f3c5a866e72615cf67e5ce22186dcb97",
remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git",
# Replace the commit hash (above) with the latest (https://github.com/hedronvision/bazel-compile-commands-extractor/commits/main).
# Even better, set up Renovate and let it do the work for you (see "Suggestion: Updates" in the README).
)
19 changes: 19 additions & 0 deletions modules/gonzojive_protobuf_javascript/3.21.5.esm/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
matrix:
platform:
- ubuntu2004
- macos
- macos_arm64
- windows
bazel:
- 7.x
- 6.x
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_flags:
- '--host_cxxopt=-std=c++14'
- '--cxxopt=-std=c++14'
build_targets:
- '@gonzojive_protobuf_javascript//generator:protoc-gen-js'
6 changes: 6 additions & 0 deletions modules/gonzojive_protobuf_javascript/3.21.5.esm/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"url": "https://github.com/gonzojive/protobuf-javascript/releases/download/3.21.5.esm/protobuf-javascript-3.21.5.esm.zip",
"integrity": "sha256-1t90ZutCUzvd6CLzC/ZEezEHTngUuETff6a+3/zSRwU=",
"strip_prefix": "protobuf-javascript-3.21.5.esm",
"patch_strip": 0
}
17 changes: 17 additions & 0 deletions modules/gonzojive_protobuf_javascript/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"homepage": "https://github.com/gonzojive/protobuf-javascript",
"maintainers": [
{
"email": "[email protected]",
"github": "gonzojive",
"name": "Red Daly"
}
],
"repository": [
"github:gonzojive/protobuf-javascript"
],
"versions": [
"3.21.5.esm"
],
"yanked_versions": {}
}

0 comments on commit 90a7a1d

Please sign in to comment.