Skip to content

fix(v1): preserve migration scope, module filters and internal aliases - #234

Merged
Yakwilik merged 8 commits into
mainfrom
codex/migrate-package-scope-20261005
Oct 6, 2026
Merged

Yakwilik merged 8 commits into
mainfrom
codex/migrate-package-scope-20261005

Conversation

@Yakwilik

@Yakwilik Yakwilik commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Legacy directory inputs migrate without moving proto sources or widening generation to Gradle copies. Literal generate.paths now uses the selected module directory as its base: roots api plus paths api/easyp preserves imports easyp/... . A sole local module is inferred rather than repeated, and migration omits unconfigured options.go.package_prefix.

Module entries accept the existing string shorthand or an object with module, paths and packages. Global filters remain available without listing modules and intersect scoped filters. Scoped selectors must match their own module; global selectors match across final selected sources. Unknown selectors and conflicting duplicate module selections fail before plugins or descriptor writes, including no-plugin projects and --all.

Bounded file, directory/import-root and metadata aliases share one source view. Local reads use os.Root; Git dependencies and breaking baselines read immutable tree/blob objects and materialize regular bytes under logical names. Current/baseline paths, filters and openers remain separate. Selected unsafe inputs fail; unrelated auxiliary failures and opaque descendant Gitlinks do not poison consumers. There is one current v1 h1 snapshot/cache policy, with no previous-nightly compatibility path. Historical migration verifies its archive layouts separately. SHA-256 Git identity and host spelling collisions are checked.

Validation at this head: Go 1.26.6; full source race tests; complete standard v1 suite with fresh CLI/MCP and matching source; compiled SDK scenarios for global/scoped selectors; pinned lint (0 issues); reproducible schemas; independent review/probes; real protoc-gen-mcp/service copies migrate, generate in frozen mode and compile. Proto names/bytes are preserved. Go module dependencies are unchanged.

Limits: existing BSR compatibility snapshots do not verify revision equivalence/digests. The protoc-gen-mcp broad test suite still has v0 command fixtures; generated build/runtime checks were evaluated separately. Docs MDX/types pass; the previously attempted production build was blocked fetching Google Fonts.

@Yakwilik Yakwilik changed the title fix(migrate): preserve default-root scopes and historical pins fix(v1): preserve exact generation scope and historical migration pins Oct 5, 2026
@Yakwilik Yakwilik changed the title fix(v1): preserve exact generation scope and historical migration pins fix(v1): preserve migration scope and support bounded source aliases Oct 6, 2026
@Yakwilik Yakwilik changed the title fix(v1): preserve migration scope and support bounded source aliases fix(v1): preserve migration scope, module filters and internal aliases Oct 6, 2026
@Yakwilik
Yakwilik merged commit fc07047 into main Oct 6, 2026
1 check passed
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.

1 participant