Skip to content

Commit

Permalink
Bump cache version
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Feb 1, 2024
1 parent 7c99f37 commit 811b34a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/bootsnap/bootsnap.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ struct bs_cache_key {
STATIC_ASSERT(sizeof(struct bs_cache_key) == KEY_SIZE);

/* Effectively a schema version. Bumping invalidates all previous caches */
static const uint32_t current_version = 5;
static const uint32_t current_version = 6;

/* hash of e.g. "x86_64-darwin17", invalidating when ruby is recompiled on a
* new OS ABI, etc. */
Expand Down
2 changes: 1 addition & 1 deletion test/compile_cache_key_format_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def teardown

def test_key_version
key = cache_key_for_file(FILE)
exp = [5].pack("L")
exp = [6].pack("L")
assert_equal(exp, key[R[:version]])
end

Expand Down

0 comments on commit 811b34a

Please sign in to comment.