bufbreakingv2

package
v1.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package bufbreakingv2 contains the VersionSpec for v2.

It uses bufbreakingcheck and bufbreakingbuild.

Index

Constants

This section is empty.

Variables

View Source
var VersionSpec = &internal.VersionSpec{
	FileVersion:       bufconfig.FileVersionV2,
	RuleBuilders:      v2RuleBuilders,
	DefaultCategories: v2DefaultCategories,
	IDToCategories:    v2IDToCategories,
}

VersionSpec is the version specification for v2.

Changes from v1:

Adds a new FIELD_SAME_DEFAULT check, which requires that the new schema not change default values for fields. (Defaults values are a feature of proto2 and editions, but not in proto3 syntax.)

Adds new EXTENSION_NO_DELETE and PACKAGE_EXTENSION_NO_DELETE checks, to make sure that extensions are not deleted from a file or package, respectively. (In previous versions, an extension being deleted was simply undetected.)

Removes the following deprecated checks (but retains their replacements):

  • FIELD_SAME_CTYPE
  • FIELD_SAME_LABEL
  • FILE_SAME_JAVA_STRING_CHECK_UTF8
  • FILE_SAME_PHP_GENERIC_SERVICES

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL