Skip to content

fix(shared): honor absolute schema paths - #11358

Open
bm1016bm-svg wants to merge 1 commit into
cube-js:masterfrom
bm1016bm-svg:codex/fix-absolute-schema-path
Open

bm1016bm-svg wants to merge 1 commit into
cube-js:masterfrom
bm1016bm-svg:codex/fix-absolute-schema-path

Conversation

@bm1016bm-svg

Copy link
Copy Markdown

Summary

  • resolve configured schema paths against the working directory while preserving absolute paths
  • add a regression test that loads a model from an absolute repository path

Verification

  • yarn workspace @cubejs-backend/shared unit --runTestsByPath test/FileRepository.test.ts --runInBand
  • yarn workspace @cubejs-backend/shared tsc
  • ESLint passed for both changed files (with linebreak-style disabled locally because Git for Windows checked the sparse worktree out as CRLF)

Fixes #10746

@bm1016bm-svg
bm1016bm-svg requested a review from a team as a code owner July 26, 2026 04:40
@github-actions github-actions Bot added javascript Pull requests that update Javascript code pr:community Contribution from Cube.js community members. labels Jul 26, 2026

This branch was successfully deployed

1 active deployment
Preview 9968d76f Deployed Jul 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript Pull requests that update Javascript code pr:community Contribution from Cube.js community members.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Absolute CUBEJS_SCHEMA_PATH silently loads zero data model files (FileRepository uses path.join instead of path.resolve)

1 participant