[go-nuts] Building application for windows server 2008 using go 1.13+

114 views
Skip to first unread message

Maxim Via-Net

unread,
Jul 28, 2020, 7:02:53 AM7/28/20
to golang-nuts
Hello everyone,


But may be there is some another way for building a valid application for NT6.0 using go 1.13+, maybe there are some tricks or arguments for compiler?

I don't want to freeze application on go 1.12 forever, I  think it is a bad idea for security reasons (for example).

Right now I have an error: "xyz.exe is not a valid win32 application" and It makes me sad.

brainman

unread,
Jul 29, 2020, 2:43:06 AM7/29/20
to golang-nuts
Hello Maixm,

If you look at

https://golang.org/doc/go1.13#windows

page source, you will see that it says

```
<h3 id="windows">Windows</h3>

<p><!-- CL 178977 -->
The Windows version specified by internally-linked Windows binaries
is now Windows 7 rather than NT 4.0. This was already the minimum
required version for Go, but can affect the behavior of system calls
that have a backwards-compatibility mode. These will now behave as
documented. Externally-linked binaries (any program using cgo) have
always specified a more recent Windows version.
</p> 
  ```

So this change refers to


This CL is quite small, and you should be able to revert it in whatever Go version you like. It just you need to be careful about using your version, because no one test this code anymore, so it could be broken.

Alex

Maxim Via-Net

unread,
Jul 30, 2020, 1:36:53 PM7/30/20
to brainman, golang-nuts
Ok, thanks, Alex

I could persuade our PM's that we shouldn't support Windows Server 2008.

В Вт, 28/07/2020 в 23:43 -0700, brainman пишет:
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/c353dce5-f92b-430b-aa5f-df31d2d65448n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages