Skip to content
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

Bump google.golang.org/protobuf from 1.25.0 to 1.26.0 #8823

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 1, 2021

Bumps google.golang.org/protobuf from 1.25.0 to 1.26.0.

Release notes

Sourced from google.golang.org/protobuf's releases.

v1.26.0

Overview

This release reduces dependencies on other modules, enforces strict behavior with generated Go packages and name conflicts, expands support for aberrant message types, and provides minor new features in protobuf reflection.

Notable changes

New features:

  • CL/242377: proto: add MessageName helper
  • CL/236777: reflect/protoreflect: add MessageFieldTypes
  • CL/239838: reflect/protoreflect: add FieldDescriptor.TextName
  • CL/238000: reflect/protoreflect: improve source information usability

Behavior changes:

  • CL/240017: internal/impl: introduce instability to protoreflect.Message.Range order
  • CL/262681: internal/encoding/text: escape \x7f (DEL) in strings
  • CL/262682: internal/encoding/text: escape Unicode control characters in strings
  • CL/259900: internal/filedesc: remove ProtoLegacyRawDesc method
  • CL/286132: internal/descfmt: always include type name in FormatList
  • CL/302330: cmd/protoc-gen-go: support --help flag
  • CL/301952: cmd/protoc-gen-go: print version to stdout
  • CL/244297: all: return less-specific, but more informative wire unmarshal errors

Bug fixes:

  • CL/247458: testing/protocmp: fix representation of empty bytes
  • CL/241658: testing/prototest: fix suggestion for field name
  • CL/259899: reflect/protodesc: fix round-tripping for package field
  • CL/247737: encoding/protojson: restrict valid values for google.protobuf.Value.number_value
  • CL/246097: types/known/fieldmaskpb: repeated and map fields are only valid in the last position of a path
  • CL/244718: internal/impl: make errInvalidUTF8 be a proto.Error

Performance optimizations:

  • CL/253100: proto/equal: reduce equal scalar value allocation
  • CL/240378: reflect/protoregistry: avoid checking for '/' in FindMessageByName

Reduced dependencies

  • CL/259901: cmd/protoc-gen-go: remove reference to legacy ProtoPackageIsVersion4
  • CL/262679: all: rely on dynamic dependency check for genproto
  • CL/262683: all: remove weak dependency on github.com/golang/protobuf
  • CL/262684: all: add weak dependency on github.com/golang/protobuf
  • CL/235283: all: update protobuf toolchain dependency

... (truncated)

Changelog

Sourced from google.golang.org/protobuf's changelog.

#!/bin/bash

Copyright 2019 The Go Authors. All rights reserved.

Use of this source code is governed by a BSD-style

license that can be found in the LICENSE file.

cd "$(git rev-parse --show-toplevel)"

read -p "What is the next release version (e.g., 'v1.26.0')? " VERSION SEMVER_REGEX='^v([0-9])[.]([0-9])[.]([0-9])([.a-zA-Z0-9A-Z-])$' if ! [[ -z $(echo $VERSION | sed -e "s/$SEMVER_REGEX//") ]]; then echo; echo "invalid: must be a semver string"; exit 1 fi VERSION_MAJOR=$(echo $VERSION | sed -e "s/$SEMVER_REGEX/\1/") VERSION_MINOR=$(echo $VERSION | sed -e "s/$SEMVER_REGEX/\2/") VERSION_PATCH=$(echo $VERSION | sed -e "s/$SEMVER_REGEX/\3/") VERSION_PRERELEASE=$(echo $VERSION | sed -e "s/$SEMVER_REGEX/\4/") if ! [[ "$VERSION_MAJOR" =~ ^1$ ]]; then echo; echo "invalid: major version must be 1"; exit 1 fi if ! [[ -z $VERSION_PRERELEASE ]] && ! [[ "$VERSION_PRERELEASE" =~ ^-rc[.][0-9]+$ ]]; then echo; echo "invalid: pre-release suffix must be empty or '-rc.X'"; exit 1 fi VERSION_PRERELEASE=${VERSION_PRERELEASE#"-"} # trim possible leading dash

function version_string() { VERSION_STRING="v${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}" if ! [[ -z $VERSION_PRERELEASE ]]; then VERSION_STRING="${VERSION_STRING}-${VERSION_PRERELEASE}" fi echo $VERSION_STRING }

read -p "Were there any changes to the generator that relies on new runtime functionality? " YN case $YN in [Yy]* ) read -p " What minor version of the runtime is required now? " GEN_VERSION if ! [[ "$GEN_VERSION" =~ ^[0-9]+$ ]]; then echo; echo "invalid: must be an integer"; exit 1; fi;; [Nn]* ) ;;

  • ) echo; echo "invalid: must be 'yes' or 'no'"; exit 1;; esac

read -p "Were there any dropped functionality in the runtime for old generated code? " YN case $YN in [Yy]* ) read -p " What minor version of the runtime is required now? " MIN_VERSION if ! [[ "$MIN_VERSION" =~ ^[0-9]+$ ]]; then echo; echo "invalid: must be an integer"; exit 1; fi;; [Nn]* ) ;;

  • ) echo; echo "invalid: must be 'yes' or 'no'"; exit 1;; esac

... (truncated)

Commits
  • f2d1f6c all: release v1.26.0
  • 41ef85a all: add weak dependency on github.com/golang/protobuf
  • bdf6e19 all: start v1.26.0-rc.1.devel
  • 1c57cac all: release v1.26.0-rc.1
  • b7197c1 all: remove weak dependency on github.com/golang/protobuf
  • e471641 cmd/protoc-gen-go: support --help flag
  • 174b9ec all: document that Unmarshal must be a mutable message
  • 8b366e8 compiler/protogen: require that the import path be specified
  • 23ccb35 internal/impl: add runtime support for aberrant messages
  • e31c6dd cmd/protoc-gen-go: print version to stdout
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@melinath
Copy link
Collaborator

melinath commented Apr 2, 2021

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/go_modules/google.golang.org/protobuf-1.26.0 branch from 96e7925 to a6e044d Compare April 2, 2021 21:41
@ghost ghost added size/xs and removed size/l labels Apr 2, 2021
@dependabot dependabot bot force-pushed the dependabot/go_modules/google.golang.org/protobuf-1.26.0 branch from a6e044d to f9b8223 Compare April 2, 2021 21:48
Copy link
Collaborator

@melinath melinath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@melinath melinath merged commit 533b8ef into master Apr 2, 2021
@dependabot dependabot bot deleted the dependabot/go_modules/google.golang.org/protobuf-1.26.0 branch April 2, 2021 21:55
@ghost
Copy link

ghost commented May 3, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators May 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant