Skip to content

Windows support#102

Draft
kdambekalns wants to merge 2 commits intomainfrom
feature/windows-support
Draft

Windows support#102
kdambekalns wants to merge 2 commits intomainfrom
feature/windows-support

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