lnd/build
positiveblue 5924964a9b
build: get binary build info from debug/buildinfo
Since `go1.18` the runtime has a package that provides information about module
versions, version control information, and build flags embedded in executable
files built by the go command.

The new packages allows us to get information needed by the `version` command
without having to rely on `ldflags` set at build time.

This can be really helpful while debugging errors from people using custom
binaries. For example a build from master.
2022-10-17 00:52:37 -07:00
..
dependencies.go mod+tools+Makefile:separate tools different module 2022-02-10 11:02:01 +01:00
deployment_dev.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
deployment_prod.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
deployment.go build/deployment: add prod+dev targets 2018-10-05 13:04:45 +09:00
log_default.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
log_nolog.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
log_shutdown.go signal: handle shutdown properly 2021-03-18 12:54:25 +01:00
log_stdlog.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
log_test.go multi: Fix typos [skip ci] 2022-01-24 12:19:02 +02:00
log.go build/log: support parsing global+subsystem levels 2020-11-18 14:17:53 +01:00
loglevel_critical.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
loglevel_debug.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
loglevel_default.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
loglevel_error.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
loglevel_info.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
loglevel_off.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
loglevel_trace.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
loglevel_warn.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
logrotator.go signal: handle shutdown properly 2021-03-18 12:54:25 +01:00
prefix_log.go build: add prefixed logger 2019-10-03 10:21:59 +02:00
version.go build: get binary build info from debug/buildinfo 2022-10-17 00:52:37 -07:00