SDK: compiling luci applications, how is the _git-* suffix derived

I'm compiling some luci apps for my own repo and I'm bumping PKG_RELEASE in the Makefile, to make sure newer packages can be properly upgraded, however during the make process the _git-* suffix is added and it actually determines the package version.

I've compiled different luci apps with the same ./package/luci directory checked out from master and resulting luci apps seem to have different _git-* suffixes as evident here: https://dev.melmac.net/openwrt-repo/.

How can I force the _git suffix to be in sync with the main OpenWrt repos and be the same for all of my luci apps?

Tagging @jow, @hnyman, @dibdot, @feckert.

You can't. The goal is to have each app to reflect it's last code commit in git.

But the current approach gets impact from the git clone date and style. A shallow clone causes a different version than a ful clone.

That is not tied to Sdk, but likely applies there, too.

See my observations in discussion here.
https://github.com/openwrt/luci/pull/2257#issuecomment-611910608

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.