Skip to content

make relative paths absolute first in the models endpoint#3937

Merged
izeigerman merged 1 commit intoSQLMesh:mainfrom
alucryd:fix/ui-absolute-model-path
Mar 4, 2025
Merged

make relative paths absolute first in the models endpoint#3937
izeigerman merged 1 commit intoSQLMesh:mainfrom
alucryd:fix/ui-absolute-model-path

Conversation

@alucryd
Copy link
Contributor

@alucryd alucryd commented Mar 4, 2025

We're having an issue with the UI where our model paths are relative, and the relative_to function fails. Not sure whether our venv is the issue, but calling absolute() first fixes the issue.

    raise ValueError("{!r} is not in the subpath of {!r}"
ValueError: '.' is not in the subpath of '/path/to/sqlmesh/repo' OR one path is relative and the other is absolute.

@CLAassistant
Copy link

CLAassistant commented Mar 4, 2025

CLA assistant check
All committers have signed the CLA.

@izeigerman izeigerman requested a review from mykalmax March 4, 2025 18:20
@izeigerman izeigerman merged commit d8c9b66 into SQLMesh:main Mar 4, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants