Skip to content

Conversation

@max-sixty
Copy link
Collaborator

Adds a helper function to compute relative paths between arbitrary directories. This is used to ensure the source field in snapshots is relative to the workspace root, even when the project is not a direct child of the workspace directory. This resolves issue #777 where the source path would become absolute in such setups. Includes tests for the fix.

Co-authored-by: Claude no-reply@anthropic.com

max-sixty and others added 2 commits June 17, 2025 11:05
Adds a helper function to compute relative paths between arbitrary directories. This is used to ensure the `source` field in snapshots is relative to the workspace root, even when the project is not a direct child of the workspace directory. This resolves issue mitsuhiko#777 where the source path would become absolute in such setups. Includes tests for the fix.

Co-authored-by: Claude <no-reply@anthropic.com>
@max-sixty max-sixty merged commit 7d0de48 into mitsuhiko:master Jun 18, 2025
15 checks passed
@max-sixty max-sixty deleted the source-path branch June 18, 2025 01:09
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.

1 participant