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

Windows support #102

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Windows support #102

wants to merge 2 commits into from

Conversation

kdambekalns
Copy link
Member

This allows to use the beach command on a Windows machine, as long as docker is available (e.g. via an installation of Docker Desktop).

This fixes two issues:

- `path.Clean(…)` would transform a path like `C:\User\john\bar` to
  just `.` – fixed with `filepath.Clean()`
- The check for the filesystem root using `/` never works on Windows,
  as there it is e.g. `C:\` – check for an "unchanged parent" instead
@kdambekalns kdambekalns self-assigned this Oct 10, 2024
return
}

Base = filepath.Join(homeDir, ".LocalBeach")
Copy link
Member Author

Choose a reason for hiding this comment

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

Probably nonsense to use the ., as that is still visible on Windows. Maybe use UserConfigDir instead?

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