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

Compile sansshell on windows. #233

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

Conversation

stvnrhodes
Copy link
Contributor

@stvnrhodes stvnrhodes commented May 3, 2023

SansShell is primarily meant for linux server management, but most of the go libraries that it uses have some windows support. Making it compile under GOOS=windows requires modest tweaks. Various unix-isms like signals and uid/gid are present in the SansShell API and can only be best-effort supported on windows.

This makes the minimal changes for tests to pass. I've skipped tests on windows when they have too much unix-specific logic.

@sfc-gh-srhodes sfc-gh-srhodes marked this pull request as draft May 4, 2023 15:35
SansShell is primarily meant for linux server management, but most of
the go libraries that it uses have some windows support. Making it
compile under GOOS=windows requires modest tweaks. Various unix-isms
like signals and uid/gid are present in the SansShell API and can only
be best-effort supported on windows.

I haven't comformed that the code runs on windows. I've only confirmed
that I can cross-compile for windows from linux.
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