Skip to content

Conversation

@adaam2
Copy link
Member

@adaam2 adaam2 commented May 16, 2025

The codebase still uses filepath.Abs which internally calls os.getwd which is problematic in a virtual filesystem

This PR changes the FS API slightly so that you also have to pass in a custom Abs(path) implementation

AllowOutside bool // Allow searching outside the workspace
Recursive bool // Recursively search for the workspace in parent directories
FS FS // An optional filesystem to use
FS fs.FS // An optional filesystem to use
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make non optional

@adaam2 adaam2 requested a review from ThomasRooney May 16, 2025 10:59
@ThomasRooney ThomasRooney self-assigned this May 16, 2025
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.

3 participants