Skip to content

Commit b428456

Browse files
Invalidate existing cache
1 parent 1576fd0 commit b428456

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/ruby_wasm/cli.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ def do_print_ruby_cache_key(packager)
335335
ruby_core_build = packager.ruby_core_build
336336
require "digest"
337337
digest = Digest::SHA256.new
338+
# The build system key is used to invalidate the cache when the build system is updated.
339+
build_system_key = 1
340+
digest.update(build_system_key.to_s)
338341
ruby_core_build.cache_key(digest)
339342
hexdigest = digest.hexdigest
340343
require "json"

0 commit comments

Comments
 (0)