Skip to content

Conversation

@junderw
Copy link
Member

@junderw junderw commented Jul 21, 2023

  1. Must compile with environment variable GIT_HASH set to the current git hash.

ie.

GITHASH=$(git rev-parse --short HEAD) cargo build --release --bin electrs
  1. Must enable version-api feature if you want the version accesible via a GET request to /internal/version. (Maybe don't enable for prod.)

ie.

GITHASH=$(git rev-parse --short HEAD) cargo build --release --bin electrs -F version-api
  1. To get the version from the binary, run electrs --version and it will print the version (with git hash if one was given during compile)

@junderw junderw mentioned this pull request Jul 22, 2023
@junderw junderw force-pushed the feat/git_hash_version branch 2 times, most recently from b200b2a to 0fe3f2d Compare July 23, 2023 08:28
@junderw junderw force-pushed the feat/git_hash_version branch from 0fe3f2d to 1b103f0 Compare July 23, 2023 08:47
Copy link
Member

@wiz wiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partially Tested ACK @ 1b103f0

@wiz wiz merged commit 07eec25 into mempool Jul 23, 2023
@wiz wiz deleted the feat/git_hash_version branch July 23, 2023 08:59
SatoKentaNayoro pushed a commit to boolnetwork/mempool-electrs that referenced this pull request Nov 29, 2024
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.

3 participants