Skip to content

Feat/easyp integration - #3

Merged
ZergsLaw merged 3 commits into
mainfrom
feat/easyp-integration
Nov 27, 2026
Merged

ZergsLaw merged 3 commits into
mainfrom
feat/easyp-integration

Conversation

@Yakwilik

@Yakwilik Yakwilik commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Context

EasyP calls easyprotoc as a Go package during easyp generate. The integration needs to control which sources the compiler can read and pass complete descriptors to code generation plugins. The corresponding EasyP changes are in easyp-tech/easyp#260.

Compiler changes

  • Add protoc.WithResolverOnly and protoc.ResolverFunc. The resolver-only mode looks up normalized logical paths through the SDK's configured resolvers and disables filesystem fallback.
  • Preserve the underlying resolver error in Compile and Link so callers can distinguish a missing import from a read or permission error with errors.Is.
  • Serialize ExtensionRangeOptions.declaration and verification in descriptor output. This preserves extension declarations in google/protobuf/descriptor.proto. Keep Editions feature options and reject features in proto2 and proto3 files.
  • Preserve explicitly empty defaults and encode bytes defaults in the escaped form required by FieldDescriptorProto. Resolve and serialize nested extend declarations in their enclosing message scope.

Validation

  • GOWORK=off go test -race -count=1 ./... passed in easyprotoc. Regression tests cover resolver isolation, error causes, extension range options, Editions features, explicit defaults, and nested extension scope.
  • EasyP pinned this PR at v0.1.1-0.20261123230332-d7e9d3660d5d. Its easyp-test v1 regression passed all 976 cases.
  • The EasyP integration exported 7,434 descriptors from googleapis with schemas and custom options matching the previous protocompile baseline. SourceCodeInfo differed in 26 files.

@ZergsLaw
ZergsLaw merged commit 4ea0521 into main Nov 27, 2026
4 checks passed
@ZergsLaw
ZergsLaw deleted the feat/easyp-integration branch November 27, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants