Skip to content

Conversation

@7ttp
Copy link
Contributor

@7ttp 7ttp commented Jan 20, 2026

Summary

Fixes SQL relative imports in test files by setting the container working directory.

Problem

SQL files using \i fail with "No such file or directory" because the container has no working directory set.

Solution

Set WorkingDir to the parent directory of the test file, allowing psql to resolve relative imports correctly.

Related

@7ttp 7ttp requested a review from a team as a code owner January 20, 2026 08:12
@7ttp
Copy link
Contributor Author

7ttp commented Jan 20, 2026

@avallete @sweatybridge

Co-authored-by: Han Qiao <sweatybridge@gmail.com>
@7ttp 7ttp requested a review from sweatybridge January 20, 2026 09:07
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.

supabase db test not able to import extra relative file

2 participants