I have a project (not mine!) written in Go, which uses
gb to build it. It uses a fair amount of dependencies (“vendor” stuff).
Once go moved from 1.11 to 1.12, gb stopped working - it fails to link with the following errors:
golang.org/x/sys/unix.libc_close_trampoline·f: relocation target golang.org/x/sys/unix.libc_close_trampoline not defined for ABIInternal (but is defined for ABI0) . . . . . # yubihsm-connector yubihsm-connector FATAL: command "build" failed: exit status 2
I would like to build this project manually, replicating what
gb build would have done if it worked correctly. Unfortunately, as a complete beginner, I have no clue how Go build system works. Could you advise me on how to build this project manually? Just running
go build caused some errors:
$ go build main.go:30:2: cannot find package "github.com/kardianos/service" in any of: /usr/local/go/src/github.com/kardianos/service (from $GOROOT) . . . . . (from $GOPATH) . . . . .
so something must be missing - could you point me at what it is, and how to recreate it?