gofed / go-macros

Rpm mechanics for Go packaging
4 stars 7 forks source link

Computed snapshot date is wrong #33

Closed eclipseo closed 6 years ago

eclipseo commented 6 years ago

Automatically computed date in dist is always today's date instead of the snapshot date.

For ex:

Forge-specific packaging variables

  forgeurl:        https://github.com/zyedidia/tcell

  forgesource:     https://github.com/zyedidia/tcell/archive/208b6e8f2f8d763a4accac33f3bdbd7dc9c71c01/tcell-208b6e8f2f8d763a4accac33f3bdbd7dc9c71c01.tar.gz

  forgesetupargs:  -n tcell-208b6e8f2f8d763a4accac33f3bdbd7dc9c71c01

Generic variables

  archivename:     tcell-208b6e8f2f8d763a4accac33f3bdbd7dc9c71c01

  archiveext:      tar.gz

  archiveurl:      https://github.com/zyedidia/tcell/archive/208b6e8f2f8d763a4accac33f3bdbd7dc9c71c01/tcell-208b6e8f2f8d763a4accac33f3bdbd7dc9c71c01.tar.gz

  scm:             git

  tag:             

  commit:          208b6e8f2f8d763a4accac33f3bdbd7dc9c71c01

  dist:            .20180310git208b6e8.fc29 (snapshot date is computed once %{_sourcedir}/%{archivename}.%{archiveext} is available)

Snapshot date for 208b6e8f2f8d763a4accac33f3bdbd7dc9c71c01 should be 20180124, not the current day.

eclipseo commented 6 years ago

Cleared the issue with nim