Skip to content

Commit 36fd15a

Browse files
committed
helpers: Support minor releases of LmP in mirror code
We are about to release a 94.1 version of the LmP. In the event of a 94.1 tag, we want to truncate the value and still use the "94" cache. This also allows the development of "95" to continue correctly. The drawback to this approach is that the .1 part of the sstate cache is actually in the 95 bucket. 94.1 is small enough this doesn't matter. If we ever have a minor release that causes sufficient cache invalidation, then we'll need to re-think how to produce the cache better. Signed-off-by: Andy Doan <andy@foundries.io>
1 parent eb9ea1b commit 36fd15a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helpers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function set_base_lmp_version {
114114
# 3: Find our base LMP version based on the HEAD
115115
export LMP_VERSION=$(git describe --tags --abbrev=0 HEAD)
116116
export LMP_VERSION_MINOR="$(git rev-list ${LMP_VERSION}..HEAD --count)"
117-
export LMP_VERSION_CACHE="$LMP_VERSION"
117+
export LMP_VERSION_CACHE="$(echo $LMP_VERSION | sed 's/\.[0-9]*$//')"
118118
if [[ "${H_PROJECT}" == "lmp" ]] || [ -v LMP_VERSION_CACHE_DEV ] ; then
119119
# Public LmP build - we are building for the *next* release
120120
LMP_VERSION_CACHE=$(( $LMP_VERSION_CACHE + 1 ))

0 commit comments

Comments
 (0)