-
-
Notifications
You must be signed in to change notification settings - Fork 362
mkhtml: Get date from git log #2100
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
Conversation
I have tested locally and get the same error as shown in the "GCC C/C++..." pipeline:
|
Great idea, I looked at your code and it required a deeper analysis of the problem, I made changes in this commit 83c3d7d and I tested it, when compiling GRASS GIS the git local repo is used to get the commit and when installing the addon (via g.extension module) it is used to get the commit remote GitHub API server. |
Seems we worked on this in parallel. Here is my approach for Addons and modules that are not part of the official addon repo: |
Seems addons that are not part of the official repo (e.g. local unversjoned addons, addons on gitlab, bitbucket, ...) need to be handled specificly: |
…rom official addons repo GitHub API
Yes you are right I fixed it.
Currently only official addons are supported, if addon is not official addon, commit and commit date in addon manual page will has unknown value. |
Now all tests pass. Nice work, @tmszi , as usual. From my point this can be merged... |
I will have to test it as a simulation of compiling all add-ons running on our osgeo lxd container server. |
I am +1 for merging, as patching our production system is always rather tricky... |
If user install addons via e.g. |
I successfully tested the simulation of the compilation of all add-ons on the osgeo lxd container server. |
FYI: I have enforced the compilation of binaries / addons on grass.osgeo.org. Hence, the improvements through this PR |
…al page (OSGeo#2100) Git commit is getting from local repository if exists (during compilation GRASS GIS core modules, all addons compilation on our osgeo lxd container server) in others cases getting commit from remote GitHub API (official addons installed via g.extension module). In case it is not possible to obtain commit from local git repository or from remote GitHub API server, instead of commit and commit date, the time when the addon was installed is used (non official addons installed via g.extension module). Co-authored-by: Tomas Zigo <[email protected]>
…al page (OSGeo#2100) Git commit is getting from local repository if exists (during compilation GRASS GIS core modules, all addons compilation on our osgeo lxd container server) in others cases getting commit from remote GitHub API (official addons installed via g.extension module). In case it is not possible to obtain commit from local git repository or from remote GitHub API server, instead of commit and commit date, the time when the addon was installed is used (non official addons installed via g.extension module). Co-authored-by: Tomas Zigo <[email protected]>
It's already merged. |
Similarly to another change in the past, the straight backport of this breaks Travis CI because that one builds with old Python. See the old discussion here: #2070.
|
My mistake that originate during git cherry-picking. |
* Addon manual pages: remove unneeded SVN Date entry - remove already commented and unneeded SVN Date entries from all manual relate pages - selectively update section order to follow https://trac.osgeo.org/grass/wiki/Submitting/Docs#HTMLPages Note: This change brings in the disadvantage that *all* manual pages are touched in terms of editing date, which influences the recent PR OSGeo/grass#2100 and the `g.citation` efforts ongoing in #677. On the other hand, it needs to be done one day... See - discussion in #684 (comment) - in GRASS-core, see OSGeo/grass#2143 Co-authored-by: Veronica Andreo <[email protected]>
* Addon manual pages: remove unneeded SVN Date entry - remove already commented and unneeded SVN Date entries from all manual relate pages - selectively update section order to follow https://trac.osgeo.org/grass/wiki/Submitting/Docs#HTMLPages Note: This change brings in the disadvantage that *all* manual pages are touched in terms of editing date, which influences the recent PR OSGeo/grass#2100 and the `g.citation` efforts ongoing in OSGeo#677. On the other hand, it needs to be done one day... See - discussion in OSGeo#684 (comment) - in GRASS-core, see OSGeo/grass#2143 Co-authored-by: Veronica Andreo <[email protected]>
…al page (OSGeo#2100) Git commit is getting from local repository if exists (during compilation GRASS GIS core modules, all addons compilation on our osgeo lxd container server) in others cases getting commit from remote GitHub API (official addons installed via g.extension module). In case it is not possible to obtain commit from local git repository or from remote GitHub API server, instead of commit and commit date, the time when the addon was installed is used (non official addons installed via g.extension module). Co-authored-by: Tomas Zigo <[email protected]>
…al page (OSGeo#2100) Git commit is getting from local repository if exists (during compilation GRASS GIS core modules, all addons compilation on our osgeo lxd container server) in others cases getting commit from remote GitHub API (official addons installed via g.extension module). In case it is not possible to obtain commit from local git repository or from remote GitHub API server, instead of commit and commit date, the time when the addon was installed is used (non official addons installed via g.extension module). Co-authored-by: Tomas Zigo <[email protected]>
…al page (OSGeo#2100) Git commit is getting from local repository if exists (during compilation GRASS GIS core modules, all addons compilation on our osgeo lxd container server) in others cases getting commit from remote GitHub API (official addons installed via g.extension module). In case it is not possible to obtain commit from local git repository or from remote GitHub API server, instead of commit and commit date, the time when the addon was installed is used (non official addons installed via g.extension module). Co-authored-by: Tomas Zigo <[email protected]>
Trying to get the latest change and commit from gitlog.
Requires git and is not yet tested more broadly.
Please test. Feedback on HTML formating is very welcome!