Skip to content

Commit 9e09343

Browse files
committed
Sync from Piper @441896533
PROTOBUF_SYNC_PIPER
2 parents a29e0e3 + 9bf0aca commit 9e09343

File tree

159 files changed

+1625
-727
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+1625
-727
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Stack Overflow is also a useful if unofficial resource https://stackoverflow.com
1616
-->
1717

1818
**What version of protobuf and what language are you using?**
19-
Version: master/v3.6.0/v3.5.0 etc.
19+
Version: main/v3.6.0/v3.5.0 etc.
2020
Language: C++/Java/Python/C#/Ruby/PHP/Objective-C/Javascript
2121

2222
**What operating system (Linux, Windows, ...) and version?**

.github/workflows/php-ext.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: PHP extension
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
build-php:
9+
name: Build PHP extension
10+
runs-on: ubuntu-latest
11+
container: ${{ matrix.php-image }}
12+
strategy:
13+
matrix:
14+
php-image:
15+
- php:7.4-cli
16+
- php:8.1-cli
17+
steps:
18+
- name: Install git
19+
run: |
20+
apt-get update -q
21+
apt-get install -qy --no-install-recommends git
22+
- name: Checkout
23+
uses: actions/checkout@v3
24+
with:
25+
submodules: recursive
26+
- name: Prepare source code
27+
run: |
28+
rm -rf "$GITHUB_WORKSPACE/php/ext/google/protobuf/third_party"
29+
cp -r "$GITHUB_WORKSPACE/third_party" "$GITHUB_WORKSPACE/php/ext/google/protobuf"
30+
cp "$GITHUB_WORKSPACE/LICENSE" "$GITHUB_WORKSPACE/php/ext/google/protobuf"
31+
- name: Create package
32+
run: |
33+
cd /tmp
34+
rm -rf protobuf-*.tgz
35+
pecl package "$GITHUB_WORKSPACE/php/ext/google/protobuf/package.xml"
36+
- name: Compile extension
37+
run: |
38+
cd /tmp
39+
MAKE="make -j$(nproc)" pecl install protobuf-*.tgz
40+
- name: Enable extension
41+
run: docker-php-ext-enable protobuf
42+
- name: Inspect extension
43+
run: php --ri protobuf

CHANGES.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2022-04-05 version 3.20.1 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
2+
3+
PHP
4+
* Fix building packaged PHP extension (#9727)
5+
6+
Other
7+
* Fix versioning issues in 3.20.0
8+
19
Unreleased Changes
210

311
C++

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ conforming.
5353

5454
## Contributing Process
5555

56-
Most pull requests should go to the master branch and the change will be
56+
Most pull requests should go to the main branch and the change will be
5757
included in the next major/minor version release (e.g., 3.6.0 release). If you
5858
need to include a bug fix in a patch release (e.g., 3.5.2), make sure it’s
59-
already merged to master, and then create a pull request cherry-picking the
60-
commits from master branch to the release branch (e.g., branch 3.5.x).
59+
already merged to main, and then create a pull request cherry-picking the
60+
commits from main branch to the release branch (e.g., branch 3.5.x).
6161

6262
For each pull request, a protobuf team member will be assigned to review the
6363
pull request. For minor cleanups, the pull request may be merged right away
@@ -96,9 +96,9 @@ the final release.
9696
of inactivity.
9797
* Maintain clean commit history and use meaningful commit messages. PRs with
9898
messy commit history are difficult to review and won't be merged. Use rebase
99-
-i upstream/master to curate your commit history and/or to bring in latest
100-
changes from master (but avoid rebasing in the middle of a code review).
101-
* Keep your PR up to date with upstream/master (if there are merge conflicts,
99+
-i upstream/main to curate your commit history and/or to bring in latest
100+
changes from main (but avoid rebasing in the middle of a code review).
101+
* Keep your PR up to date with upstream/main (if there are merge conflicts,
102102
we can't really merge your change).
103103
* All tests need to be passing before your change can be merged. We recommend
104104
you run tests locally before creating your PR to catch breakages early on.

Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ pkgconfig_DATA = protobuf.pc protobuf-lite.pc
5050

5151
csharp_EXTRA_DIST= \
5252
global.json \
53+
csharp/.editorconfig \
5354
csharp/.gitignore \
5455
csharp/CHANGES.txt \
5556
csharp/Google.Protobuf.Tools.targets \

Protobuf-C++.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'Protobuf-C++'
3-
s.version = '3.20.0-rc1'
3+
s.version = '3.20.1-rc1'
44
s.summary = 'Protocol Buffers v3 runtime library for C++.'
55
s.homepage = 'https://github.com/google/protobuf'
66
s.license = 'BSD-3-Clause'

Protobuf.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# dependent projects use the :git notation to refer to the library.
66
Pod::Spec.new do |s|
77
s.name = 'Protobuf'
8-
s.version = '3.20.0'
8+
s.version = '3.20.1-rc1'
99
s.summary = 'Protocol Buffers v.3 runtime library for Objective-C.'
1010
s.homepage = 'https://github.com/protocolbuffers/protobuf'
1111
s.license = 'BSD-3-Clause'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ page, check out the maven repo here:
3838
[https://repo1.maven.org/maven2/com/google/protobuf/protoc/](https://repo1.maven.org/maven2/com/google/protobuf/protoc/)
3939

4040
These pre-built binaries are only provided for released versions. If you want
41-
to use the github master version at HEAD, or you need to modify protobuf code,
41+
to use the github main version at HEAD, or you need to modify protobuf code,
4242
or you are using C++, it's recommended to build your own protoc binary from
4343
source.
4444

0 commit comments

Comments
 (0)