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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .github/workflows/hermetic_library_generation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# downstream client libraries before they are released.
name: Hermetic library generation upon generation config change through pull requests
on:
pull_request:
#pull_request:

env:
REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2492,6 +2492,15 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnforceNamingStyle",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType",
"queryAllDeclaredConstructors": true,
Expand Down Expand Up @@ -2546,6 +2555,33 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$DefaultSymbolVisibility",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults",
"queryAllDeclaredConstructors": true,
Expand Down Expand Up @@ -2663,6 +2699,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.protobuf.DescriptorProtos$FieldOptions$FeatureSupport",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.protobuf.DescriptorProtos$FieldOptions$FeatureSupport$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType",
"queryAllDeclaredConstructors": true,
Expand Down Expand Up @@ -2969,6 +3023,15 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.protobuf.DescriptorProtos$SymbolVisibility",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.protobuf.DescriptorProtos$UninterpretedOption",
"queryAllDeclaredConstructors": true,
Expand Down
715 changes: 715 additions & 0 deletions out

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions output/.bazelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.bcr/
2 changes: 2 additions & 0 deletions output/.bazeliskrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# See https://github.com/bazelbuild/bazelisk
USE_BAZEL_VERSION=6.3.0
26 changes: 26 additions & 0 deletions output/.bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# To make proto_library rules to include source info in the descriptor
build --protocopt=--include_source_info
build --protocopt=--experimental_allow_proto3_optional
# New boringssl requires C++14
build --repo_env=BAZEL_CXXOPTS="-std=c++14"

# This is to avoid JVM SIGBUS crashes on highly parallel builds,
# see https://github.com/bazelbuild/bazel/issues/3236 for more details
build --enable_platform_specific_config
build:linux --sandbox_tmpfs_path=/tmp

# Do not create bazel-* symlinks in the workspace directory
build:linux --experimental_convenience_symlinks=ignore
test:linux --experimental_convenience_symlinks=ignore
run:linux --experimental_convenience_symlinks=ignore

### Required Typecheck Performance Selection
# passes an argument `--skipLibCheck` to *every* spawn of tsc
# Bazel 6.4 or greater: 'common' means 'any command that supports this flag'
common --@aspect_rules_ts//ts:skipLibCheck=honor_tsconfig

# Between Bazel 6.0 and 6.3, you need all of this, to avoid discarding the analysis cache:
build --@aspect_rules_ts//ts:skipLibCheck=honor_tsconfig
fetch --@aspect_rules_ts//ts:skipLibCheck=honor_tsconfig
query --@aspect_rules_ts//ts:skipLibCheck=honor_tsconfig
### END Required Typecheck Performance Selection
56 changes: 56 additions & 0 deletions output/.bcr/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# BCR Publisher

This document explains how to use the `publish-to-bcr.sh` script to publish `googleapis` to the Bazel Central Registry (BCR).

## Usage

The `publish-to-bcr.sh` script is used to automate the process of creating a new version of the `googleapis` module in the BCR.

### Arguments

The script accepts the following arguments:

* `-r`, `--ref`: **(Required)** The git ref (commit SHA, tag, or branch) of `googleapis` to be published.
* `-t`, `--templates_ref`: The git ref to use for the templates. Defaults to the value of `--ref`.
* `-o`, `--org`: The GitHub organization. Defaults to `googleapis`.
* `-p`, `--protobuf_version`: The version of protobuf to use. Defaults to `21.7`.
* `-b`, `--bcr_organization`: The GitHub organization for the Bazel Central Registry. Defaults to `bazelbuild`.
* `-f`, `--bcr_folder`: The local path to a fork of the `bazel-central-registry` repository. If not provided, the script will clone it from `https://github.com/{bcr_organization}/bazel-central-registry`.

### Example

```bash
./publish-to-bcr.sh --ref <your-commit-sha>
```

### After running the script

After the script is executed, it will perform the following actions:

1. A new branch will be created in your local fork of `bazel-central-registry`.
2. The script will prompt you to create a Pull Request. If you agree, a new PR will be created in the `bazelbuild/bazel-central-registry` repository.
3. The script will automatically add a comment to the PR with the content: `@bazel-io skip_check unstable_url`. This is necessary to bypass the URL stability check.

Once the Pull Request has been created and all Continuous Integration (CI) checks are passing, a maintainer of the Bazel Central Registry will review and merge it.

#### Note on re-running the script

During development, you may need to run the script several times.
Between each call, it's strongly recommended to reset your local fork of bazel-central-registry.
For this, you can run the following command:

```bash
pushd "${fork_location}"
git reset --hard
git checkout main
git clean -d -f
popd
```

## Testing

To run the unit tests for the script, use the following command:

```bash
./publish-to-bcr_test.sh
```
Loading
Loading