function-sdk-go
function-sdk-go copied to clipboard
Update module github.com/bufbuild/buf to v1.37.0
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| github.com/bufbuild/buf | v1.30.0 -> v1.37.0 |
Release Notes
bufbuild/buf (github.com/bufbuild/buf)
v1.37.0
- Add
STABLE_PACKAGE_NO_IMPORT_UNSTABLElint rule which disallows files from stable packages to import files from unstable packages. - Fix plugin push failures when pushing an image built with containerd image store.
v1.36.0
- Add
--list-servicesand--list-methodsflags tobuf curl, which trigger the command to list known services or methods in the RPC schema, instead of invoking an RPC method. - Add
cleanas a top-level option inbuf.gen.yaml, matching thebuf generate --cleanflag. If set to true, this will delete the directories, jar files, or zip files set tooutfor each plugin. - Fix git input handling of annotated tags.
- Update
buf registry loginto complete the login flow in the browser by default. This allows users to login with their browser and have the token automatically provided to the CLI. - Add
buf registry organization {create, delete, info, update}commands to manage BSR organizations. Removebuf beta registry organizationcommands. - Add
buf registry module {create, delete, deprecate, info, undeprecate, update}commands to manage BSR modules. Removebuf beta registry repositorycommands. - Add
buf registry label {archive, info, list, unarchive}commands to manage BSR module labels. Removebuf beta registry labelcommands andbuf beta registry {archive, unarchive}. - Add
buf registry commit {add-label, info, list, resolve}to manage BSR module commits. Removebuf beta registry commitcommands.
v1.35.1
- Fix the git input parameter
refto align with thegitnotion of a ref. This allows for the use of branch names, tag names, and commit hashes. - Fix unexpected
buf builderrors with absolute path directory inputs without workspace and/or module configurations (e.g.buf.yaml,buf.work.yaml) and proto file paths set to the--pathflag.
v1.35.0
- Add
buf generate --cleanflag that will delete the directories, jar files, or zip files that the plugins will write to, prior to generation. Allows cleaning of existing assets without having to callrm -rf. - Deprecate
--usernameflag on and username prompt onbuf registry login. A username is no longer required to log in.
v1.34.0
- Add
buf config ls-modulescommand to list configured modules. - Fix issue where
buf generatewould succeed on missing insertion points and panic on empty insertion point files. - Update
buf generateto allow the use of Editions syntax when doing local code generation by proxying to aprotocbinary (for languages where code gen is implemented inside ofprotocinstead of in a plugin: Java, C++, Python, etc). - Allow use of an array of strings for the
protoc_pathproperty of forbuf.gen.yaml, where the first array element is the actual path and other array elements are extra arguments that are passed toprotoceach time it is invoked.
v1.33.0
- Allow user to override
--source-control-urland--create-default-labelwhen using--git-metadatawithbuf push. - Fix
buf push --git-metadatawhen local tags point to different objects than the remote tags. - Fix issue where comment ignores were not respected for
PROTOVALIDATElint rule violations. - Add
buf beta registry label {create,get,list}to replacebuf beta registry {draft, tag}commands. - Update
buf beta commit {get,list}command outputs to display create time and stop displaying associated tags. - Change the behavior of
buf beta commit list <buf.build/owner/repository>when the reference is empty. It now lists commits in the repository instead of listing commits of the default label. - Update output of
buf formatto canonicalize the punctuation used in message literals in option values. The output now always uses{and}instead of<and>; it adds:separators between field names and message values if the source omitted them, and it removes unnecessary separators between fields (,and;are allowed, but neither is needed). - Update
buf format -wso that it does not touch files whose contents don't actually change. This eliminates noisy notifications to file-system-watcher tools that are watching the directory that contains proto sources. - Update
buf generateto work with plugins provided by protoc for versions v24.0 to v25.3. Editions support was experimental in these releases, and the plugins advertise incomplete support for editions, which triggersbufto report an error. With this fix, these plugins can be used again as long as none of the input files use editions syntax. - Add
buf push --exclude-unnamedflag to exclude unnamed modules when pushing to the BSR.
v1.32.2
- Update
buf generateto warn instead of error when proto3 optional is required but not supported by a plugin.
v1.32.1
- Fix archive and git inputs so that
--pathand--exclude-pathpaths are relative to the#subdirrather than the root of the input. This fixes an unintended behavior change that was introduced inv1.32.0. - Add
moduleinput forprotoc-gen-buf-lintandprotoc-gen-buf-breakingto allow users to specify the module forv2configuration files.
v1.32.0
- Add version
v2forbuf.yamlandbuf.gen.yamlconfiguration files. - Add
buf config migrateto migrate configuration files to the latest version (nowv2). - Move
buf mod inittobuf config init.buf mod initis now deprecated. - Move
buf mod ls-lint-rulestobuf config ls-lint-rules.buf mod ls-lint-rulesis now deprecated. - Move
buf mod ls-breaking-rulestobuf config ls-breaking-rules.buf mod ls-breaking-rulesis now deprecated. - Move
buf mod prunetobuf dep prune.buf mod pruneis now deprecated. - Move
buf mod updatetobuf dep update.buf mod updateis now deprecated. - Move
buf mod {clear-cache,cc}tobuf registry cc.buf mod {clear-cache,cc}is now deprecated. - Move
buf beta graphto stable asbuf dep graph. - Change the default visibility of
buf push --create-visibilitytoprivatewhen the--createflag is set. Users are no longer required to set--create-visibilitywhen runningbuf push --create. - Add
buf push --label, which allows users to set labels when pushing new commits to the BSR. - Add
buf push --source-control-url, which allows users to associate commits pushed to the BSR with a URL to a source code repository. - Add
buf push --create-default-label, which allows users to set a default label for a repository when callingbuf push --create. - Add
buf push --git-metadata, which automatically sets appropriate--label,--source-control-url, and--create-default-labelflags based on the current Git repository. - Add
buf convert --validateto apply protovalidate rules to incoming messages specified with--from. - Deprecate
buf mod open. - Delete
buf beta migrate-v1beta1This is now replaced withbuf config migrate. - Add
buf registry sdk versionto get the version of a Generated SDK for a module and plugin. - Add
buf beta registry archiveandbuf beta registry unarchivecommands for archiving and unarchiving labels on the BSR. - Add support for Protobuf Editions. This allows
bufto be used with sources that use edition 2023, instead of proto2 or proto3 syntax. This also updates theprotoc-gen-buf-breakingandprotoc-gen-buf-lintProtobuf plugins to support files that use edition 2023. - Update
buf breakingrules to work with Protobuf Editions. To support Editions, some rules have been deprecated and replaced with Editions-aware rules. All deprecated rules continue to work for existing users.-
FIELD_SAME_CTYPEhas been replaced withFIELD_SAME_CPP_STRING_TYPE, which considers bothctypefield options and new(pb.cpp).string_typefeatures when deciding on backwards compatibility. -
FIELD_SAME_LABELhas been replaced with three rules that all check "cardinality". The new rules can distinguish between maps and other repeated fields and between implicit and explicit field presence. The new rules are:-
FIELD_SAME_CARDINALITYin theFILEandPACKAGEcategories. -
FIELD_WIRE_COMPATIBLE_CARDINALITYin theWIREcategory. -
FIELD_WIRE_JSON_COMPATIBLE_CARDINALITYin theWIRE_JSONcategory.
-
-
FILE_SAME_JAVA_STRING_CHECK_UTF8has been replaced withFIELD_SAME_JAVA_UTF8_VALIDATION, which considers both thejava_string_check_utf8file option and(pb.java).utf8_validationfeatures when deciding on backwards compatibility. - Add to the existing
FILE_SAME_SYNTAXrule with a few related rules that can catch the same sort of compatibility issues, but in an Editions source file that changes feature values:-
MESSAGE_SAME_JSON_FORMATandENUM_SAME_JSON_FORMATcatch changes to thejson_formatfeature, which controls whether support for the JSON format is best-effort or properly supported. When supported, the compiler performs more checks relating to field name collisions for the JSON format as well as for FieldMask usage. -
FIELD_SAME_UTF8_VALIDATIONcatches changes to theutf8_validationfeature, which controls validation of string values. -
ENUM_SAME_TYPEcatches changes to an enum's type, open vs. closed.
-
-
- Add support for extensions to
buf breaking. All existing rules for fields are now applied to extensions, except forFIELD_NO_DELETE(and its variants). There are also newEXTENSION_NO_DELETEandPACKAGE_EXTENSION_NO_DELETErules for catching deletions of an extension. The new rules are not active by default in existingv1andv1beta1configurations, for backwards-compatibility reasons. Migrate your config tov2to use them. - Add support for top-level extensions to
buf lint. It previously only checked extensions that were defined inside of messages. - Add a new
FIELD_NOT_REQUIREDlint rule that prevents use of required in proto2 files and offeatures.field_presence = LEGACY_REQUIREDin Editions files. This new rule is not active by default in existingv1andv1beta1configurations, for backwards-compatibility reasons. Migrate your config tov2to use them.
v1.31.0
- Update dependencies.
v1.30.1
- Fix issue where
buf lintincorrectly reports an error for(buf.validate.field).repeatedis set for a repeated validation rule.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.
ℹ Artifact update notice
File name: go.mod
In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):
- 37 additional dependencies were updated
Details:
| Package | Change |
|---|---|
google.golang.org/protobuf |
v1.34.2 -> v1.34.3-0.20240816073751-94ecbc261689 |
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go |
v1.33.0-20240221180331-f05a6f4403ce.1 -> v1.34.2-20240717164558-a6c49f84cc0f.2 |
github.com/Microsoft/go-winio |
v0.6.1 -> v0.6.2 |
github.com/antlr4-go/antlr/v4 |
v4.13.0 -> v4.13.1 |
github.com/bufbuild/protocompile |
v0.9.0 -> v0.14.1 |
github.com/bufbuild/protovalidate-go |
v0.6.0 -> v0.6.5 |
github.com/bufbuild/protoyaml-go |
v0.1.8 -> v0.1.12 |
github.com/distribution/reference |
v0.5.0 -> v0.6.0 |
github.com/docker/cli |
v25.0.4+incompatible -> v27.2.1+incompatible |
github.com/docker/docker |
v25.0.6+incompatible -> v27.2.1+incompatible |
github.com/docker/docker-credential-helpers |
v0.8.1 -> v0.8.2 |
github.com/felixge/fgprof |
v0.9.4 -> v0.9.5 |
github.com/go-chi/chi/v5 |
v5.0.12 -> v5.1.0 |
github.com/gofrs/uuid/v5 |
v5.0.0 -> v5.3.0 |
github.com/google/cel-go |
v0.20.1 -> v0.21.0 |
github.com/google/go-containerregistry |
v0.19.0 -> v0.20.2 |
github.com/google/pprof |
v0.0.0-20240422182052-72c8669ad3e7 -> v0.0.0-20240910150728-a0b0bb1d4134 |
github.com/klauspost/compress |
v1.17.7 -> v1.17.9 |
github.com/prometheus/client_model |
v0.5.0 -> v0.6.1 |
github.com/rs/cors |
v1.11.0 -> v1.11.1 |
github.com/spf13/cobra |
v1.8.0 -> v1.8.1 |
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp |
v0.49.0 -> v0.54.0 |
go.opentelemetry.io/otel |
v1.24.0 -> v1.30.0 |
go.opentelemetry.io/otel/metric |
v1.24.0 -> v1.30.0 |
go.opentelemetry.io/otel/sdk |
v1.24.0 -> v1.30.0 |
go.opentelemetry.io/otel/trace |
v1.24.0 -> v1.30.0 |
golang.org/x/crypto |
v0.24.0 -> v0.27.0 |
golang.org/x/exp |
v0.0.0-20240416160154-fe59bbe5cc7f -> v0.0.0-20240909161429-701f63a606c0 |
golang.org/x/mod |
v0.17.0 -> v0.21.0 |
golang.org/x/net |
v0.26.0 -> v0.29.0 |
golang.org/x/sync |
v0.7.0 -> v0.8.0 |
golang.org/x/sys |
v0.21.0 -> v0.25.0 |
golang.org/x/term |
v0.21.0 -> v0.24.0 |
golang.org/x/text |
v0.16.0 -> v0.18.0 |
golang.org/x/tools |
v0.21.1-0.20240508182429-e35e4ccd0d2d -> v0.25.0 |
google.golang.org/genproto/googleapis/api |
v0.0.0-20240604185151-ef581f913117 -> v0.0.0-20240903143218-8af14fe29dc1 |
google.golang.org/genproto/googleapis/rpc |
v0.0.0-20240604185151-ef581f913117 -> v0.0.0-20240903143218-8af14fe29dc1 |