Resolve the processor registry on either relaton line - #132
Merged
Merged
Conversation
relaton v3 moved the top-level Relaton::Registry to Relaton::Db::Registry (the Db singleton registry with the same processors/by_type/ find_processor_by_dataset surface). Every CLI call site now goes through Relaton::Cli.registry, which resolves the v3 constant first and falls back to the v2 constant, so the CLI works with both released v2 and the v3 monogem (site generation crashed with 'uninitialized constant Relaton::Registry' under v3).
ronaldtse
added a commit
that referenced
this pull request
Sep 25, 2026
The dependency floor becomes relaton >= 3.0.0.pre.alpha (the monogem) and Relaton::Cli.registry resolves Relaton::Db::Registry directly — the v2 fallback stays on the 2.x line (PR #132).
ronaldtse
added a commit
that referenced
this pull request
Sep 25, 2026
The dependency floor becomes relaton >= 3.0.0.pre.alpha (the monogem) and Relaton::Cli.registry resolves Relaton::Db::Registry directly — the v2 fallback stays on the 2.x line (PR #132).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
relaton v3 moved the top-level
Relaton::RegistrytoRelaton::Db::Registry(same surface:processors,by_type,find_processor_by_dataset). Every CLI call site now resolves throughRelaton::Cli.registry— v3 constant first, v2 fallback — so the CLI runs against both lines.Without this, site generation under the v3 monogem crashes at the collection step:
(reproduced building mn-samples-iala with the v3 stack.)