Skip to content

Automating CLI versioning#1163

Open
sergey3bv wants to merge 1 commit into
btcsuite:masterfrom
sergey3bv:feat/cli-versioning
Open

Automating CLI versioning#1163
sergey3bv wants to merge 1 commit into
btcsuite:masterfrom
sergey3bv:feat/cli-versioning

Conversation

@sergey3bv

@sergey3bv sergey3bv commented Jan 26, 2026

Copy link
Copy Markdown

Change Description

Addressing #790. Added runtime/debug package for automatic versioning. It uses the last git tag to get the current version. Variable appVersion can be used to set the version manually.

I'm not really happy with panic so let me please know what it can be replaced with.

Steps to Test

  1. Build the CLI when checked out on a tag
  2. Build the CLI when checked out past a tag
  3. Build the CLI with the flag -ldflags "-X github.com/btcsuite/btcwallet/build.appVersion=<custom_version>"

Pull Request Checklist

Testing

  • Your PR passes all CI checks.
  • Tests covering the positive and negative (error paths) are included.
  • Bug fixes contain tests triggering the bug to prevent regressions.

Code Style and Documentation

📝 Please see our Contribution Guidelines for further guidance.

@sergey3bv

Copy link
Copy Markdown
Author

Hey, @Roasbeef, @yyforyongyu, @guggero, could you please take a look at the PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant