Feature #2749
closedDerive version from git repository and elsewhere
100%
Description
Derive version string from:
git describe
VERSION
file- constant in build script
The procedure should be implemented in Python as part of wscript
.
The derived version string should be used to generate core/version.cpp
, and also written into VERSION
file.
Updated by Junxiao Shi over 9 years ago
- Blocked by Feature #2671: Print version number added
Updated by Eric Newberry almost 8 years ago
Is a similar feature already implemented in ndn-cxx and NFD?
Updated by Junxiao Shi almost 8 years ago
Answer to note-3:
Yes, both NFD and ndn-cxx wscript
already have this feature.
However, I dislike the implementation in NFD. See discussion in #2671.
Updated by Eric Newberry almost 8 years ago
Is the version string derived from all three sources or are they in an order of precedence (if can't determine version from git describe, try VERSION file)?
Updated by Alex Afanasyev almost 8 years ago
These order:
- git describe
- version file
- constant
version file is autogenerated using git describe and should not exist in the repository (created for standalone .tar.gz archives). constant in wscript is used as a backup if something went wrong.
Updated by Eric Newberry almost 8 years ago
- Status changed from New to In Progress
Updated by Eric Newberry almost 8 years ago
- Status changed from In Progress to Code review
- % Done changed from 0 to 100
Updated by Junxiao Shi almost 8 years ago
- Status changed from Code review to Closed