openSUSE / obs-service-tar_scm

An OBS source service: fetches code from any SCM and archives it
GNU General Public License v2.0
31 stars 104 forks source link

Support %ci, %h and @GIT_OFFSET@ in .obsinfo #137

Open lbeltrame opened 7 years ago

lbeltrame commented 7 years ago

As discussed with AdrianS on #opensuse-buildservice, this would help projects creating their own services to more accurately set versions from these information.

lbeltrame commented 7 years ago

I can try to make a stab at doing this myself, however, I'm thinking about possible approaches:

  1. Duplicate what detect_version is doing (not my favorite idea)
  2. Call detect_version when obsinfo is being generated (might be overkill)