Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
(appbase sync) Provide a version string based off "git describe"
Browse files Browse the repository at this point in the history
Appbase will now provide a version string that is based off "git describe --tags --dirty". This provides a readable version number like v1.1.0 as well as information on intermediate git revisions and/or dirtiness. Since we don’t provide eosio as a .tar.gz package due to Github’s lack of submodules on tarballing, generally all users should be building in a git clone.

Be aware this change will run git describe on EVERY build. The command is quite fast (around 100ms even on a slower 2017 MacBook, but sub 30ms on a quality Linux dev box) and will hopefully provide enough benefit to be worth it.
  • Loading branch information
spoonincode committed Aug 3, 2018
1 parent bbd7ec5 commit 4427fb9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion externals/binaryen
2 changes: 1 addition & 1 deletion libraries/appbase
2 changes: 1 addition & 1 deletion programs/nodeos/main.cpp
Expand Up @@ -102,7 +102,7 @@ int main(int argc, char** argv)
if(!app().initialize<chain_plugin, http_plugin, net_plugin, producer_plugin>(argc, argv))
return INITIALIZE_FAIL;
initialize_logging();
ilog("nodeos version ${ver}", ("ver", eosio::utilities::common::itoh(static_cast<uint32_t>(app().version()))));
ilog("nodeos version ${ver}", ("ver", app().version_string()));
ilog("eosio root is ${root}", ("root", root.string()));
app().startup();
app().exec();
Expand Down

0 comments on commit 4427fb9

Please sign in to comment.