From 54d9ce70063b4c75117e413d077d9b3611a368b7 Mon Sep 17 00:00:00 2001 From: Ryan Harper Date: Fri, 20 Mar 2026 09:03:25 -0500 Subject: [PATCH] fix: Bump stacker Cache Version for WasBom field In the previous PR to update CVEs which dropped BOM support a field to Layer structure, WasBom, was added to provide a warning message to users which supply a stacker.yaml with the `bom:` value set. This change to the Layer structure requires a bump to the CacheVersion field. Signed-off-by: Ryan Harper --- pkg/stacker/cache.go | 2 +- pkg/stacker/cache_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/stacker/cache.go b/pkg/stacker/cache.go index 9c7495a3..00856ad0 100644 --- a/pkg/stacker/cache.go +++ b/pkg/stacker/cache.go @@ -23,7 +23,7 @@ import ( "stackerbuild.io/stacker/pkg/types" ) -const currentCacheVersion = 15 +const currentCacheVersion = 16 type ImportType int diff --git a/pkg/stacker/cache_test.go b/pkg/stacker/cache_test.go index e4d55e3e..a9f93aa7 100644 --- a/pkg/stacker/cache_test.go +++ b/pkg/stacker/cache_test.go @@ -125,5 +125,5 @@ func TestCacheEntryChanged(t *testing.T) { // This test works because the type information is included in the // hashstructure hash above, so using a zero valued CacheEntry is // enough to capture changes in types. - assert.Equal(uint64(0x717c35e7201912fb), h) + assert.Equal(uint64(0x9fa3e20d827f5ae5), h) }