Moving from protoc to EasyP v1
Map the existing source roots, plugins and checks to v1 explicitly. The easyp migrate command accepts EasyP v0 configuration, not arbitrary scripts or another tool's configuration. Keep the original inputs and generated output for comparison.
Module and source roots
protobuf.mod:
module github.com/acme/contracts
roots protoA file at proto/hello/v1/hello.proto has the import name hello/v1/hello.proto. If the previous invocation selected only part of a root, do not silently broaden it: v1 generates complete selected modules.
Generation
easyp.gen.yaml:
version: v1
plugins:
- name: go
out: gen/go
opts: [paths=source_relative]
- name: go-grpc
out: gen/go
opts: [paths=source_relative]Pin the actual plugin executables in the environment. Preserve existing go_package values and align them with the physical output. Set with_imports: true per plugin when imported contracts also need generated code; this is independent of descriptor export.
Check policy
easyp.yaml:
version: v1
linters:
default: BASIC
breaking:
baseline: git:main
categories: [FILE]Map individual checks by their actual identifiers and results; similarly named presets in different tools do not prove equivalence. breaking.ignore contains paths, not rule names.
Dependencies and result verification
Declare external dependencies with easyp get or manifest require directives. An arbitrary proto import does not uniquely identify a Git source. Run mod tidy for initial resolution and commit the lock; subsequent checks use mod download, not an implicit version update.
easyp validate-config
easyp mod tidy
easyp lint
easyp breaking --against main
easyp generateThe selected baseline must exist locally. Compare filenames, import paths and contents with the old generator, then build and test the consumer. Keep the old scripts until this comparison succeeds. Multiple projects require repeated --project or explicit --all.
For an existing EasyP v0 project, start with the migration preview.