fix(lint): validate compound recipe slots together - #10
Merged
Conversation
added 3 commits
August 20, 2026 15:46
`boundaryFor()` maps Solid 1 to `solid-layouts/application-boundary` and Solid 2
to `solid-layouts/solid-2/application-boundary`, and the library generator uses
it, so a `solid: 2` build writes the solid-2 spelling into its entry.
`validateComponent()` did not ask. It greped for the hardcoded 1.9 specifier,
which made the pairing this package generates the pairing it rejects: a correct
Solid 2 bundle failed with
<pkg>: <Name> entry has no application compiler boundary
naming a file that was exactly right. Neither specifier contains the other as
written, so `includes` cannot accidentally accept the wrong one either way round.
Thread the major from `compileApplication` through `resolveLayoutSource` to
`validateComponent` and ask `boundaryFor()`, which is what the plugin two
functions away already does. `boundaryFor(undefined)` still returns the 1.9
boundary, so nothing changes for a consumer that never sets `solid`.
Found from the consumer side: a Chuzz build on Solid 2 could not get a library
past validation with either arm. Generating for 1.9 emits `solid-js/web`
imports, a subpath Solid 2 does not export; generating for 2 failed the check
above. There was no combination that worked.
Two tests, both of which fail without the change: a solid-2 entry is accepted
under `solid: 2`, and a 1.9 entry is rejected under it. The boundary check had
no coverage at all, which is how the mismatch shipped.
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.
Summary
Verification