Skip to content

GO-7383 Drop the root-level v1 proto compatibility mirrors - #15

Merged
requilence merged 1 commit into
mainfrom
go-7383-drop-root-proto-mirrors
Sep 21, 2026
Merged

requilence merged 1 commit into
mainfrom
go-7383-drop-root-proto-mirrors

Conversation

@requilence

@requilence requilence commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

The four root .proto paths were deterministic mirrors of format/v1/proto, rendered and verified by format/v1/check-proto-compat.sh. Maintaining two complete import graphs for the same package symbols only earned its keep while anytype-heart's mirror-any-block.yml wrote to this repository's root.

anyproto/anytype-heart#3290 retargets that workflow at format/v1/proto, after which the mirrors have no consumer.

Changes

  • Delete models.proto, events.proto, changes.proto, snapshot.proto from the root
  • Delete format/v1/check-proto-compat.sh, whose only job was rendering and verifying them
  • Drop the check-proto-compat.sh --write directive from format/v1/generate.go and the "Verify v1 proto compatibility paths" step from CI
  • Update README.md and format/v1/README.md, which described the mirror rules and the historical root-path smoke command
  • Delete docs/, which held two superseded design specs

Verification

  • go generate ./codec/anyblockjson ./format/v1 produces no diff — the checked-in Go bindings and JSON Schemas were already generated from the canonical tree alone
  • go test ./... and go vet ./... pass
  • protoc -I . format/v1/proto/*.proto compiles the graph

Merge order

Merge this before the heart PR. If heart merges first, a mirror run writes only format/v1/proto while the root copies remain, and the compat check — still in place until this lands — fails.

The four root .proto paths were deterministic mirrors of format/v1/proto,
rendered and verified by format/v1/check-proto-compat.sh. Two complete import
graphs for the same package symbols only earned their keep while heart's
mirror-any-block.yml workflow wrote to this repository's root; a companion PR
there retargets it at format/v1/proto, after which the mirrors have no
consumer.

Remove the mirrors, the script that rendered them, its go:generate directive,
and the CI step that verified them. The checked-in Go bindings and JSON
Schemas were already generated from the canonical tree alone, so no generated
artifact changes. Also drop docs/, which held two superseded design specs.
@requilence
requilence merged commit c0f4f77 into main Sep 21, 2026
2 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant