Feature #2749
closed
Derive version from git repository and elsewhere
Added by Junxiao Shi over 9 years ago.
Updated almost 8 years ago.
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.
- Assignee set to Eric Newberry
Is a similar feature already implemented in ndn-cxx and NFD?
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.
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)?
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.
- Status changed from New to In Progress
- Status changed from In Progress to Code review
- % Done changed from 0 to 100
- Status changed from Code review to Closed
Also available in: Atom
PDF