Skip to content

Compile sansshell on windows.#233

Draft
stvnrhodes wants to merge 4 commits intoSnowflake-Labs:mainfrom
stvnrhodes:windows
Draft

Compile sansshell on windows.#233
stvnrhodes wants to merge 4 commits intoSnowflake-Labs:mainfrom
stvnrhodes:windows

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

Comments