@@ -1210,7 +1210,7 @@ function _include_from_serialized(pkg::PkgId, path::String, ocachepath::Union{No
12101210 else
12111211 io = open (path, " r" )
12121212 try
1213- iszero (isvalid_cache_header (io)) && return ArgumentError (" Invalid header in cache file $path ." )
1213+ iszero (isvalid_cache_header (io)) && return ArgumentError (" Incompatible header in cache file $path ." )
12141214 _, (includes, _, _), _, _, _, _, _, _ = parse_cache_header (io, path)
12151215 ignore_native = pkg_tracked (includes)
12161216 finally
@@ -1831,7 +1831,7 @@ function isrelocatable(pkg::PkgId)
18311831 isnothing (path) && return false
18321832 io = open (path, " r" )
18331833 try
1834- iszero (isvalid_cache_header (io)) && throw (ArgumentError (" Invalid header in cache file $cachefile ." ))
1834+ iszero (isvalid_cache_header (io)) && throw (ArgumentError (" Incompatible header in cache file $cachefile ." ))
18351835 _, (includes, includes_srcfiles, _), _... = _parse_cache_header (io, path)
18361836 for inc in includes
18371837 ! startswith (inc. filename, " @depot" ) && return false
@@ -1906,7 +1906,7 @@ function _tryrequire_from_serialized(pkg::PkgId, path::String, ocachepath::Union
19061906 io = open (path, " r" )
19071907 ignore_native = false
19081908 try
1909- iszero (isvalid_cache_header (io)) && return ArgumentError (" Invalid header in cache file $path ." )
1909+ iszero (isvalid_cache_header (io)) && return ArgumentError (" Incompatible header in cache file $path ." )
19101910 _, (includes, _, _), depmodnames, _, _, _, clone_targets, _ = parse_cache_header (io, path)
19111911
19121912 ignore_native = pkg_tracked (includes)
@@ -3049,7 +3049,7 @@ function compilecache(pkg::PkgId, path::String, internal_stderr::IO = stderr, in
30493049 # append extra crc to the end of the .ji file:
30503050 open (tmppath, " r+" ) do f
30513051 if iszero (isvalid_cache_header (f))
3052- error (" Invalid header for $(repr (" text/plain" , pkg)) in new cache file $(repr (tmppath)) ." )
3052+ error (" Incompatible header for $(repr (" text/plain" , pkg)) in new cache file $(repr (tmppath)) ." )
30533053 end
30543054 seekend (f)
30553055 write (f, crc_so)
@@ -3358,7 +3358,7 @@ end
33583358function parse_cache_header (cachefile:: String )
33593359 io = open (cachefile, " r" )
33603360 try
3361- iszero (isvalid_cache_header (io)) && throw (ArgumentError (" Invalid header in cache file $cachefile ." ))
3361+ iszero (isvalid_cache_header (io)) && throw (ArgumentError (" Incompatible header in cache file $cachefile ." ))
33623362 ret = parse_cache_header (io, cachefile)
33633363 return ret
33643364 finally
@@ -3371,7 +3371,7 @@ function preferences_hash(cachefile::String)
33713371 io = open (cachefile, " r" )
33723372 try
33733373 if iszero (isvalid_cache_header (io))
3374- throw (ArgumentError (" Invalid header in cache file $cachefile ." ))
3374+ throw (ArgumentError (" Incompatible header in cache file $cachefile ." ))
33753375 end
33763376 return preferences_hash (io, cachefile)
33773377 finally
@@ -3387,7 +3387,7 @@ end
33873387function cache_dependencies (cachefile:: String )
33883388 io = open (cachefile, " r" )
33893389 try
3390- iszero (isvalid_cache_header (io)) && throw (ArgumentError (" Invalid header in cache file $cachefile ." ))
3390+ iszero (isvalid_cache_header (io)) && throw (ArgumentError (" Incompatible header in cache file $cachefile ." ))
33913391 return cache_dependencies (io, cachefile)
33923392 finally
33933393 close (io)
@@ -3427,7 +3427,7 @@ end
34273427function read_dependency_src (cachefile:: String , filename:: AbstractString )
34283428 io = open (cachefile, " r" )
34293429 try
3430- iszero (isvalid_cache_header (io)) && throw (ArgumentError (" Invalid header in cache file $cachefile ." ))
3430+ iszero (isvalid_cache_header (io)) && throw (ArgumentError (" Incompatible header in cache file $cachefile ." ))
34313431 return read_dependency_src (io, cachefile, filename)
34323432 finally
34333433 close (io)
@@ -3693,9 +3693,9 @@ end
36933693 try
36943694 checksum = isvalid_cache_header (io)
36953695 if iszero (checksum)
3696- @debug " Rejecting cache file $cachefile due to it containing an invalid cache header"
3697- record_reason (reasons, " invalid header" )
3698- return true # invalid cache file
3696+ @debug " Rejecting cache file $cachefile due to it containing an incompatible cache header"
3697+ record_reason (reasons, " incompatible header" )
3698+ return true # incompatible cache file
36993699 end
37003700 modules, (includes, _, requires), required_modules, srctextpos, prefs, prefs_hash, clone_targets, actual_flags = parse_cache_header (io, cachefile)
37013701 if isempty (modules)
0 commit comments