--- Begin Message ---
- To: anarcat+frontpage@anarc.at
- Subject: Re: GoatCounter port
- From: "Martin Tournoij" <martin@arp242.net>
- Date: Sat, 18 Jul 2020 18:02:21 +0800
- Message-id: <be7090d5-43eb-4e74-a34d-a8abc8f397a6@www.fastmail.com>
- In-reply-to: <19068e38-1edf-4505-92bd-95f4e9e5a3b2@www.fastmail.com>
- References: <19068e38-1edf-4505-92bd-95f4e9e5a3b2@www.fastmail.com>
Also, I looked at your Debian package (things were getting very off-topic on
the Docker issue 😅) and I see you're building with Go 1.11, at least that's
that the path "/usr/lib/go-1.11" suggests.
Go 1.11 won't work correct since it requires some features in Go 1.13 or
newer. It looks like in GoatCounter 1.3 it'll kinda-work since it doesn't
use any of the new functions so no compile errors, but it does use:
return errors.Errorf("salt.Refresh: %w", err)
That "%w" will only work with Go 1.13 or newer, with older versions you'll
get some sort of inline error telling you that %w isn't recognized and that
there's extra data (i.e. the errors will look weird/wrong).
Also, the reason you're getting this error:
anarcat@emma:dist(master)$ dh-make-golang estimate zgo.at/goatcounter
go get: 175.92 MiBpackage zgo.at/goatcounter/cmd/check
imports honnef.co/go/tools/code: cannot find package "honnef.co/go/tools/code" in any of:
/usr/lib/go-1.11/src/honnef.co/go/tools/code (from $GOROOT)
/tmp/dh-make-golang182190041/src/honnef.co/go/tools/code (from $GOPATH)
Is because it's using the latest master of the "honnef.co/go/tools"
dependency, rather than the 2020.1.4 tag in the go.mod file.
It's not really critical, as it's just the linter tool that goatcounter
uses. You don't need to build it.
--- End Message ---