-
Notifications
You must be signed in to change notification settings - Fork 41
Implement support for version from last git commit #392
Conversation
@nrnhines : until this gets merged, may be you can just cherry-pick this commit into your branch and test your NEUERON PR? |
Strange puzzle. I checked out this pull request
Finally, for NEURON,
But when I build and launch, I get the nrn version output instead of the coreneuron version. ie.
|
By the way, if I launch |
Did you commit the commit submodule before launching cmake command? Let me try it and see what's happening. I have now added $ ./bin/nrniv-core --version
CoreNEURON Version : 0.21.0 2521f56 (2020-09-15 01:09:14 +0200)
seems like |
That is interesting as
and when I do a fresh build from an empty bldtst
So there must be something stupidly obvious that I'm missing. |
I wonder if, when one builds coreneuron as a submodule, the git commands from within the nrn build folder are getting some nrn git info instead of from nrn/external/coreneuron |
Ahh yes! my bad! I am using
|
Please retest |
c22bf8b
to
bb4df8f
Compare
Retest this please |
Please retest |
Retest this please |
1 similar comment
Retest this please |
- coreneuron version was printed as "version id unimplemented" - add cmake module GitRevision.cmake to find git commit information - this commit adds support to print project version along with git commit and it's date. e.g. Version : 0.21.0 bd747a8 (14-09-2020 16:03)
Use git show instead of git show to be compatible with older git (e.g. on BB5)
bb4df8f
to
04b6164
Compare
…lueBrain/CoreNeuron#390 (BlueBrain/CoreNeuron#392) * Implement support for version from last git commit - coreneuron version was printed as "version id unimplemented" - add cmake module GitRevision.cmake to find git commit information - this commit adds support to print project version along with git commit and it's date. e.g. Version : 0.21.0 bd747a8e (14-09-2020 16:03) * Added --version CLI flag - Use git show instead of git show to be compatible with older git (e.g. on BB5) * Avoid nrn_abort when --help is called * Bug fix for merged pull request BlueBrain/CoreNeuron#390 : tid and ith args were mixed * For BB5 Jenkins, exclude problematic agent bb5-07 (has strange PGI compiler issue) Co-authored-by: Michael Hines <michael.hines@yale.edu> CoreNEURON Repo SHA: BlueBrain/CoreNeuron@e0a2774
git commit and it's date. e.g.
Version : 0.21.0 bd747a8 (14-09-2020 16:03)