Commit Graph

9011 Commits

Author SHA1 Message Date
deannagarcia
6cc68c5c59
Update include directories
Add /usr/local/include to cpp builtin include directories.
2021-11-16 16:01:15 -08:00
deannagarcia
840a4f721d
Merge pull request #9226 from protocolbuffers/deannagarcia-patch-2
Update BUILD
2021-11-16 15:18:20 -08:00
deannagarcia
25c818e3f1
Update BUILD
Change sysroot to be specific to the folder where all the include files are.
2021-11-16 15:15:46 -08:00
deannagarcia
be9fba9fd1
Merge pull request #9224 from protocolbuffers/deannagarcia-patch-2
Update BUILD paths
2021-11-16 13:08:00 -08:00
deannagarcia
a162273515
Update BUILD paths
Update paths for apple sdks
2021-11-16 11:38:16 -08:00
Jan Tattermusch
845db63ced
Fix dotnet aarch64 (#9222)
* fix C# aarch64 test after .NET SDK upgrade

* simplify C# aarch64 tests (net60 can build under emulator)

* Revert "simplify C# aarch64 tests (net60 can build under emulator)"

This reverts commit 6b2aa5f006.
2021-11-16 09:26:30 -08:00
Jan Tattermusch
83641bd36e
Merge pull request #8466 from JamesNK/jamesnk/nuget-package-update
Fix .NET SourceLink and warnings in NuGet package
2021-11-15 09:52:42 +01:00
deannagarcia
cc411dcdf8
Merge pull request #9217 from protocolbuffers/deannagarcia-patch-2
Update BUILD paths
2021-11-12 16:08:26 -08:00
deannagarcia
76f57fd6df
Update BUILD paths
Prefix all tools paths with /root/
2021-11-12 16:06:54 -08:00
deannagarcia
e75207f009
Merge pull request #9214 from protocolbuffers/fixCppVersion
Changing cpp version back to 8
2021-11-12 12:55:43 -08:00
James Newton-King
4c09e43f74
Fix .NET SourceLink and warnings in NuGet package 2021-11-13 07:46:20 +13:00
Jan Tattermusch
0ca4c1a768
Merge pull request #9205 from JamesNK/jamesnk/dotnet-sdk-update
[C#] Update .NET SDKs to LTS versions
2021-11-12 14:20:47 +01:00
Jan Tattermusch
7569df0f58 add NuGet.config to Makefile.am 2021-11-12 11:22:19 +01:00
James Newton-King
c685d79368
Fix test 2021-11-12 12:57:47 +13:00
James Newton-King
90afe0cfc6
Add nuget.config 2021-11-12 12:38:05 +13:00
Deanna Garcia
627bb4b60e Changing cpp version back to 8 2021-11-11 19:30:49 +00:00
tomerv
47e05427e3
Fix typo in docstring (#9208) 2021-11-10 17:03:55 -08:00
Rose
ef1c9fd907
[C++] Fix missing #ifdef for undefined identifiers (#9201)
* Fix #if for undefined identifiers

* port_undef.inc
2021-11-10 16:37:03 -08:00
deannagarcia
d5b7f705f3
Merge pull request #9210 from protocolbuffers/osxToolchain
Creating bazel toolchains to compile for macOS.
2021-11-10 13:54:30 -08:00
Deanna Garcia
97c901cfb6 Fixing formatting 2021-11-10 21:27:20 +00:00
Deanna Garcia
a5fa4fb019 Creating bazel toolchains to compile for macOS. 2021-11-10 21:12:44 +00:00
James Newton-King
0f33dc4380
Fix tests 2021-11-10 09:02:28 +13:00
James Newton-King
aa15931050
Update .NET SDKs to LTS versions 2021-11-10 08:49:53 +13:00
Oliver Eikemeier
d37dcf9e34
remove unnecessary dependency (#9195)
Signed-off-by: Oliver Eikemeier <eikemeier@fillmore-labs.com>
2021-11-09 05:20:11 -08:00
Adam Cozzette
13d559beb6
Update our build script to publish Mac aarch_64 binaries (#9203)
These are still x86-64 binaries at the moment (see #8557), but should be
usable on M1 Macs in the Rosetta compatibility mode. Let's start
publishing them on our GitHub release page and then eventually we can
make them into true aarch_64 binaries.

This fixes #9200.
2021-11-08 13:40:52 -08:00
Derek Perez
3a4d9316aa
Creates a protoc release zip (#9188)
* Creates a protoc release zip

Mimics what we're doing manually today but powered by Bazel.

* don't special case this.

* Addressing feedback.

* adding comment about _cc_toolchain
2021-11-04 15:57:29 -07:00
Xùdōng Yáng
11de748d66
Use repo-relative labels wherever possible (#9187)
* Use repo-relative labels wherever possible

The label `@com_google_protobuf//:foo` within the protobuf repo is often synonymous with just `//:foo`. We should prefer the latter as it allows us to use a shorter name for the module in the Bazel Central Registry (so just "protobuf" instead of "com_google_protobuf").

Note that the semantics can be subtle: in a macro, plain strings are anchored to the *calling* repo, so if we just use `//:foo` as the default value of a macro argument, it will be resolved to `@myrepo//:foo` if the macro is called from the repo `@myrepo`. In this case, it's necessary to directly call the `Label()` constructor to anchor the string label to the repo where the .bzl file lives.

See https://github.com/bazelbuild/bazel-central-registry/pull/28#issuecomment-954741081 for a bit more context.

* fix protobuf_deps.bzl
2021-11-04 07:56:32 -07:00
Kent Ross
d88c8d5d4b
Implement unambiguous comparisons for RepeatedPtrIterator in C++20 (#9139) 2021-11-04 07:16:02 -07:00
Adam Cozzette
7ccf4d8f67
Merge pull request #9169 from protocolbuffers/3.19.x
Merge 3.19.x into master
2021-11-02 10:10:47 -07:00
JongChan Choi
c4c7e2b8f9
Add pbkit to third_party.md (#9177) 2021-11-01 13:53:04 -07:00
Adam Cozzette
31dd7b71cc
Fix benchmark by making sure we use Python 3 (#9170) (#9176)
The benchmark runs have been failing since we started requiring Python
3, so this changes fixes the benchmarks by ensuring we always use Python
3.
2021-11-01 11:44:58 -07:00
Adam Cozzette
6a9cf18cba
Fix benchmark by making sure we use Python 3 (#9170)
The benchmark runs have been failing since we started requiring Python
3, so this changes fixes the benchmarks by ensuring we always use Python
3.
2021-11-01 09:00:31 -07:00
Thomas Hisch
26603a1466
Remove unittest2 imports (#9171)
They were only needed for python versions <= 2.6

Related: #6658
2021-10-30 11:56:40 -07:00
Elliotte Rusty Harold
201c1fc918
Merge pull request #9162 from belugabehr/ArrayList-copyof
Standardize on Array copyOf
2021-10-29 11:51:56 +00:00
Adam Cozzette
7c40b2df1f
Update protobuf version (#9167) 2021-10-28 14:07:53 -07:00
Adam Cozzette
42ff92a4d1
Merge pull request #9166 from acozzette/cherry-pick-fixes
Cherry-pick fixes for 3.19.1 and update change log
2021-10-28 13:07:03 -07:00
Adam Cozzette
1c8ae24595 Update changelog for 3.19.1
I also updated CHANGES.txt to include a couple things I forgot to add
for 3.19.0.
2021-10-28 18:09:06 +00:00
Peter Zhu
b2ac7ced50 Fix memory leak in MessageClass.encode
If the line above raises an exception, the upb_arena is lost and memory
is leaked.
2021-10-28 17:47:53 +00:00
Marnix Bouhuis
e58469bdbe JS: Fixed ReferenceError: window is not defined when getting the global object (#9156) 2021-10-28 17:46:36 +00:00
Adam Cozzette
c7dfd0d6b9
Align dependency handling with Bazel best practices (#9165)
This commit removes the use of bind() since that function goes against
Bazel best practices:
https://docs.bazel.build/versions/main/external.html#repository-rules-1
The bind() function basically maps a dependency into //external, but
there is no good reason to do this. By mapping dependencies into
//external and relying on this in our own BUILD files, we're forcing
projects that depend on us to do the same. The one bind() call that I
did leave in place was //:python_headers. This one seems to be doing
something complicated I don't fully understand, and I don't want to risk
breaking it.

This change also moves our list of required Maven artifacts into a
constant in protobuf_deps.bzl. This way, projects that depend on us can
refer to this list when they invoke maven_install() and automatically
pull in all the necesary dependencies.

This fixes #9132.
2021-10-28 10:34:54 -07:00
deannagarcia
85c4bc4205
Merge pull request #8254 from jufemaiz/feature/ruby-better-from_-support-well_known_types
Improvement: better ruby from_* support in well_known_types.rb
2021-10-27 14:13:27 -07:00
Joel Courtney
bbdcea8547
Remove lib from require 2021-10-28 07:09:11 +11:00
Chris Bainbridge
65852d6e9c
Fix comment syntax in any.proto (#8792)
* Fix comment syntax in any.proto

Remove extra spaces which cause incorrect indentation in godoc.
Remove the "====" style title which is not rendered by godoc.

* Run ./generate_descriptor_proto.sh
2021-10-27 11:28:21 -07:00
appledragon
1d2e8d9302
for old clang build issue, related with https://reviews.llvm.org/D12375 (#9159)
This seems wrong: given [[foo]] [[bar]], we'll now parse the second one as an MS attribute in a context where both are allowed.
2021-10-27 09:45:42 -07:00
David Mollitor
935d099ad9 Standardize on Array copyOf 2021-10-27 11:08:33 -04:00
Joel Courtney
4d94a7cd93 Fixed: incorrect tests 2021-10-27 22:20:45 +11:00
Adam Cozzette
9c3af64ae4
Update checked-in C# generated code (#9158)
This change fixes the test that verifies that the checked-in generated
code for descriptor.proto is up to date.
2021-10-26 14:31:46 -07:00
deannagarcia
247649cdb0
Merge pull request #9150 from Shopify/pz-message-encode-mem-leak
[Ruby] Fix memory leak in MessageClass.encode
2021-10-26 13:01:52 -07:00
Marnix Bouhuis
e350ef8c20
JS: Fixed ReferenceError: window is not defined when getting the global object (#9156) 2021-10-26 09:48:47 -07:00
Joel Courtney
947a51a464 Test coverage: .from_ruby / #from_ruby 2021-10-26 12:43:57 +11:00