v2.0.0-beta.1
Pre-release
Pre-release
What's Changed
This is the first beta release for the upcoming API Linter v2.0.0, which modernizes the linter's core by migrating to the official google.golang.org/protobuf module.
For full details on the v2.0.0 release, please see the main tracking issue: #1529 .
⚠️ BREAKING CHANGES
lintandlocationspackages have been updated to use the descriptor types from google.golang.org/protobuf/reflect/protoreflect instead of
github.com/jhump/protoreflect/desc. This change affects users who programmatically create and use custom linting rules. For detailed migration guidance, please refer to the v2.0.0
tracking issue.
Features
The core of this release is the migration of the entire codebase from jhump/protoreflect to google.golang.org/protobuf. This effort involved changes across all major components of the
linter.
- feat!(lint): migrate public API to google.golang.org/protobuf 0df18d2
- Function signatures in the lint package, such as those in
lint.Rule, now use types likeprotoreflect.MessageDescriptorandprotoreflect.FieldDescriptor.
- Function signatures in the lint package, such as those in
- feat!(locations): migrate public API to google.golang.org/protobuf
- feat!(rules): migrate all AIP rules to google.golang.org/protobuf
- feat!(cli): migrate command-line interface to google.golang.org/protobuf
- feat!(internal): migrate internal packages to google.golang.org/protobuf
How to Report a Bug
If you encounter a bug, please file a new issue. In your report, please indicate that you are using the v2.0.0-beta.1 release candidate and reference the main tracking issue #1529 to help us track v2-related issues