Repository navigation
build: refuse JSON-RPC method names that would clash; JSON-RPC connections pins - #98
Merged
Merged
Conversation
…tions pins `comline build`'s target check runs the kernel's `bare_name_clashes`: two JSON-RPC protocols one side provides on a connection, both with a function of the same name, can't be told apart by bare method names, and no generator emits them. Nothing is frozen. Pins core#138, generation 9b10108, comline-rust#74 and comline-typescript#69.
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.
The cli part of JSON-RPC on a connection. Part of the cascade with core#138, runtime#25, generation#81, comline-rust#74 and comline-typescript#69.
comline buildrefuses clashing bare method names, using the kernel'sbare_name_clashes: two JSON-RPC protocols one side provides on a connection, each with a function of the same name. Bare method names can't tell them apart and no generator would emit them, so the build fails up front, freezes nothing, and points to the fix,method_names = qualified. Like the rest of this check, it uses the package's own framings and not a consumer'sdefault_framing.9b10108, comline-rust#74 and comline-typescript#69. With them,comline generateemits JSON-RPC on a connection for both languages.Tested:
refuses_bare_jsonrpc_names_that_would_clash_on_a_connectionbuilds a package with a clash (refused, nothing frozen), then qualifies one protocol (builds). All 123 tests pass, and clippy and fmt are clean.