fix: library dependencies cannot be hijacked by same-name maps - #22
Merged
Merged
Conversation
A library dependency (posix, unicode) contributes aliases through the .iml harvest. When a load path also holds an emitted map of the same name — the Ruby bridge writes generated unicode.isc next to the maps it serves — the map-import branch shadowed the library and its plain-string aliases rendered as literal sequences instead of classes: alalc-ell's any(greek) guards compiled to the literal 300-character alphabet and gamma nasalization never fired. Library names now claim their dependency slot when the .iml exists; an imported alias resolving to a plain string inside any() also compiles as a class (the qualified 404 pins stay literal — bare references are untouched).
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.
A library dependency (posix, unicode) contributes aliases through the
.imlharvest. When a load path also holds an emitted map of the same name — the Ruby bridge writes generatedunicode.iscnext to the maps it serves — the map-import branch shadowed the library, and its plain-string aliases rendered as literal sequences instead of classes: alalc-ell'sany(greek)guards compiled to the literal 300-character Greek alphabet and γ-nasalization never fired (γκέγκε → gkegke).Library names now claim their dependency slot when the
.imlexists, and an imported alias resolving to a plain string insideany()also compiles as a class. The qualified-404 pins stay literal — bare references are untouched.Bridge legs re-verified through rspec: alalc-ell-2010 242/0, odni-ara-2004 20/0, odni-ara-2015 20/0. Suite 52 passed / 1 xpassed.