Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.2] replace git commands from nodeos' & launcher's cmake with libversion usage #71

Merged
merged 1 commit into from
Aug 30, 2022

Conversation

spoonincode
Copy link
Member

libversion is the canonical method by which components should be retrieving the build version. But both nodeos' & eosio-launcher's CMakeLists were running git to retrieve a version. Remove that and replace with libversion usage instead. libversion needed a method added to retrieve the git hash as nodeos' get_info server_version returns the first 4 bytes of the git hash.

@@ -12,4 +12,9 @@ namespace eosio { namespace version {
return version;
}

const std::string& version_hash() {
static const std::string vhash{_version_hash()};
Copy link
Member

Choose a reason for hiding this comment

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

Seems like an odd thing to keep around for the life of the application. Looks like a copy paste from above, but the same thing goes for those as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah I was just following how it was done before, it does seem unnecessary

Copy link
Member Author

Choose a reason for hiding this comment

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

@heifner is refactoring libversion something you want to see done?

Copy link
Member

Choose a reason for hiding this comment

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

Not a huge priority, so this is fine for now.

@heifner heifner changed the title replace git commands from nodeos' & launcher's cmake with libversion usage [3.2] replace git commands from nodeos' & launcher's cmake with libversion usage Aug 30, 2022
@spoonincode spoonincode merged commit b18eaec into main Aug 30, 2022
@spoonincode spoonincode deleted the remove_more_cmake_git branch August 30, 2022 18:40
heifner pushed a commit that referenced this pull request Apr 29, 2024
Integration test for configuration where producer and finalizer nodes are separate
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.

None yet

2 participants