Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relax cache checksum update function #312

Merged
merged 1 commit into from
Jul 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion utilities/macos/update_stdlib_pkgimage_checksums.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Sys.isapple() || error("This tool only exists to update caches after MacOS codes
# Updates cache file checksum for pkgimg i.e. after codesigning pkgimages
function update_cache_pkgimg_checksum!(ji_file::String, pkgimg_file::String)
isfile(ji_file) || error("ji file does not exist at $(repr(ji_file))")
isfile(pkgimg_file) || error("pkgimg file does not exist at $(repr(pkgimg_file))")
isfile(pkgimg_file) || return # if no pkgimage file it should be a --pkgimage=no cache
crc_so = open(Base._crc32c, pkgimg_file, "r")
open(ji_file, "r+") do f
if iszero(Base.isvalid_cache_header(f))
Expand Down