Add --match 'v*' to the VERSION_TAG git describe command to exclude
non-version tags like perms/*, litrpc/*, and autopilotserverrpc/*. These
tags contain forward slashes which cause the release script to fail when
constructing output filenames.
Add a new COMPILE_TAGS environment variable that includes all the basic
set of tags that lit requires in order for compilation to succeed. Let
LND_RELEASE_TAGS then extend these flags.
This will let us expand the testing_flags.mk file later without needing
to use the LND_RELEASE_TAGS variable there.
Additional flags produce:
* Globally consistent commitment hash length, regardless of gitconfig
* `--broken` to create fail-safe tag indicating a dirty or corrupted
work tree
* `--always` to generate a tag, even if no tags are reachable from the
current commit.
In this commit, we let the PermissionsManager manage LND's subserver
permissions. Once Litd is connected to LND, it can get LND's build tags
and pass them to the PermissionsManager which will then adjust its list
of permissions accordingly.