liamg / darktile

:waning_crescent_moon: Darktile is a GPU rendered terminal emulator designed for tiling window managers.
MIT License
3.04k stars 112 forks source link

Make getting the up-time more portable across unix-like systems #326

Closed qiu-x closed 2 years ago

qiu-x commented 3 years ago

This fixes #324

qiu-x commented 3 years ago

@liamg

qiu-x commented 3 years ago

From https://pkg.go.dev/cmd/go#hdr-Build_constraints:

Go versions 1.16 and earlier used a different syntax for build constraints, with a "// +build" prefix. The gofmt command will add an equivalent //go:build constraint when encountering the older syntax.

I suggest updating the Go version used in the checks. For now I will change my fix to use the old syntax.

Edit: Never mind, that would be a pretty bad solution since the new Go version does not support the old syntax, so the build would fail on new versions. So the best way to fix the errors in the checks is updating Go