Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloud 257 Fix Resolving File Paths with a Common Suffix #45

Merged
merged 6 commits into from
Nov 29, 2024

Conversation

sampsre
Copy link
Collaborator

@sampsre sampsre commented Nov 28, 2024

Improve workspace directory matching logic

Updates the workspaceForDir method to find the most specific (deepest) matching workspace directory instead of returning the first match. This ensures that nested workspace configurations are handled correctly by comparing path depths.

For example, if we have workspaces configured for both "prod/" and "terraform/prod/", this change will ensure that paths under "terraform/prod/" match the more specific workspace configuration irrelevant of config order.

@sampsre sampsre force-pushed the CLOUD-257-fix-resolving-file-paths-with-common-suffix branch from 3625b7d to 075b62a Compare November 28, 2024 18:49
@sampsre sampsre merged commit db9601d into main Nov 29, 2024
6 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.

2 participants