GoWSL icon indicating copy to clipboard operation
GoWSL copied to clipboard

Only Compiles on Windows and Linux

Open oneirocosm opened this issue 1 year ago • 1 comments

At the moment, file suffixes are used to denote build targets. Using build tags would allow this to be expanded on all operating systems that go supports.

As a start, the files ending in _windows.go would need to add //go:build windows at the start of the file. And then all of the files ending in _linux.go would need to add //go:build !windows at the start of the file.

You might need to change the file suffixes as well. I don't know for sure if the file suffixes take priority over the build targets.

oneirocosm avatar Oct 01 '24 22:10 oneirocosm

What's the reasoning behind attempting to run this outside of Windows or Linux? We use Linux for some testing. WSL is a Windows-specific feature.

CarlosNihelton avatar Dec 05 '24 17:12 CarlosNihelton