Repository navigation
fix(napi): use base package name @databricks/sql-kernel so the platform router resolves - #93
Closed
msrathore-db wants to merge 4 commits into
Closed
msrathore-db wants to merge 4 commits into
msrathore-db wants to merge 4 commits into
Conversation
…rm router resolves
The napi crate's package.json `name` was set to the per-platform name
`@databricks/sql-kernel-linux-x64-gnu`. napi-rs derives the per-platform
require paths in the generated `index.js` router as `${name}-${triple}`,
so a per-platform base name produced doubled, unresolvable specifiers
like `@databricks/sql-kernel-linux-x64-gnu-linux-x64-gnu`. Any consumer
relying on the published optional dependency (rather than a locally
copied `.node`) would hit MODULE_NOT_FOUND.
Set `name` to the base `@databricks/sql-kernel`; the per-platform
packages are auto-named `@databricks/sql-kernel-<triple>` by napi-rs and
the router now emits single-prefix, resolvable require paths.
Co-authored-by: Isaac
Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>
Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>
msrathore-db
force-pushed
the
msrathore/krn-napi-pkg-name
branch
from
June 1, 2026 00:37
9ca8e61 to
7606116
Compare
Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>
# Conflicts: # .github/workflows/pr-checks.yml
Collaborator
Author
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.
What
Small main-based fix PR for the napi package name and the remaining napi CI registry setup.
Current real diff after merging latest
main: about 10 additions / 2 deletions across 2 files.Included Changes
napi/package.jsonto use the base package name@databricks/sql-kernelinstead of the platform-specific package name. This keeps napi-rs generated require paths from duplicating the target triple, e.g. avoiding@databricks/sql-kernel-linux-x64-gnu-linux-x64-gnu.pr-checks.ymlchanges from this branch are now already present on latestmain, so they no longer appear in the real PR diff.Review Notes
This PR is intentionally separate from the large SEA parity bundle because it is a small packaging/CI correctness fix. It has been merged with latest
main; the displayed diff is now the real remaining difference.Testing
Previous CI rerun after the fixes passed formatting, clippy, unit/doc tests, coverage,
Build (tls-rustls feature), andnapi fmt + clippy + test. CI is rerunning after the latest main merge.This pull request and its description were written by Isaac.