apache/mynewt-mcumgr

Documentation: Go 1.7 is no longer suitable for building CI

de-nordic opened this issue · 7 comments

Regarding "Command line tool" paragraph;

Due to changes applied with
apache/mynewt-newt@6a51e35, which is usage of ProcessState.ExitCode(), in newt/util.go, the minimal requirement for go compiler is now version 1.11.1.

utzig commented

I think it already required a minimum version of 1.12 because of this: apache/mynewt-newt@53f9e0c

utzig commented

@de-nordic Ah, you can probably disregard my comment, mynewt-mcumgr-cli depends only on newt/util so the version you mentioned seems correct.

Might be, I have built go from the top of master at that point (27fc32ff01) for the purpose of building the tool, so I have been far beyond 1.11.1 anyway during build; I have tracked missing feature to be included within go 11.1.1, since the version mentioned.

Seems at least 1.12 is needed becasue of os.ProcessState getting:

src/mynewt.apache.org/newt/util/util.go:498:10: state.ExitCode undefined (type *os.ProcessState has no field or method ExitCode)

With 1.11.6

chrta commented

The README.md still mentions:

The command line tool requires Go 1.7 or later.

Is this the only place where this information is out-of-date?

I want to work on this issue

i have made changes merge if you are satisfied and tell me if any I can help you with.