mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-13 12:32:48 +02:00
Adds a script that creates a signed annotated release tag only after
verifying:
1. The requested tag name matches the version constants committed in
HEAD:build/version.go. Catches the failure mode where a release
branch is tagged before the version bump has been committed, which
would otherwise leave the tagged commit reporting an old version
string at runtime.
2. The local HEAD is identical to the upstream lightningnetwork/lnd
view of the release branch. A release tag must never point at a
commit that has not been merged upstream yet.
The upstream remote is discovered by URL rather than by name, since
"origin" is conventionally the fork in a "gh repo fork" workflow. The
branch defaults to whichever one is currently checked out (typically a
release branch such as v0.21.x-branch) and can be overridden with
--branch.
The script deliberately does not push the tag or auto-bump version.go;
both remain explicit human steps.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| bw-compatibility-test | ||
| keys | ||
| check-commit.sh | ||
| check-each-commit.sh | ||
| check-go-version-dockerfile.sh | ||
| check-go-version-yaml.sh | ||
| check-pgp-expiry.sh | ||
| check-release-notes.sh | ||
| check-rest-annotations.sh | ||
| check-sample-lnd-conf.sh | ||
| comment-on-duplicates.sh | ||
| fuzz.sh | ||
| fuzzy-match-release-branch.sh | ||
| gen_man_pages.sh | ||
| gen_sqlc_docker.sh | ||
| install_bitcoind.sh | ||
| itest_parallel.sh | ||
| itest_part.sh | ||
| release.sh | ||
| tag-release.sh | ||
| tidy_modules.sh | ||
| unit-test-flake-hunter.sh | ||
| unit_test_modules.sh | ||
| verify-install.sh | ||