@@ -1247,7 +1247,7 @@ function _include_from_serialized(pkg::PkgId, path::String, ocachepath::Union{No
12471247 else
12481248 io = open (path, " r" )
12491249 try
1250- iszero (isvalid_cache_header (io)) && return ArgumentError (" Invalid header in cache file $path ." )
1250+ iszero (isvalid_cache_header (io)) && return ArgumentError (" Incompatible header in cache file $path ." )
12511251 _, (includes, _, _), _, _, _, _, _, _ = parse_cache_header (io, path)
12521252 ignore_native = pkg_tracked (includes)
12531253 finally
@@ -1887,7 +1887,7 @@ function isrelocatable(pkg::PkgId)
18871887 isnothing (path) && return false
18881888 io = open (path, " r" )
18891889 try
1890- iszero (isvalid_cache_header (io)) && throw (ArgumentError (" Invalid header in cache file $cachefile ." ))
1890+ iszero (isvalid_cache_header (io)) && throw (ArgumentError (" Incompatible header in cache file $cachefile ." ))
18911891 _, (includes, includes_srcfiles, _), _... = _parse_cache_header (io, path)
18921892 for inc in includes
18931893 ! startswith (inc. filename, " @depot" ) && return false
@@ -1962,7 +1962,7 @@ function _tryrequire_from_serialized(pkg::PkgId, path::String, ocachepath::Union
19621962 io = open (path, " r" )
19631963 ignore_native = false
19641964 try
1965- iszero (isvalid_cache_header (io)) && return ArgumentError (" Invalid header in cache file $path ." )
1965+ iszero (isvalid_cache_header (io)) && return ArgumentError (" Incompatible header in cache file $path ." )
19661966 _, (includes, _, _), depmodnames, _, _, _, clone_targets, _ = parse_cache_header (io, path)
19671967
19681968 ignore_native = pkg_tracked (includes)
@@ -3179,7 +3179,7 @@ function compilecache(pkg::PkgId, path::String, internal_stderr::IO = stderr, in
31793179 # append extra crc to the end of the .ji file:
31803180 open (tmppath, " r+" ) do f
31813181 if iszero (isvalid_cache_header (f))
3182- error (" Invalid header for $(repr (" text/plain" , pkg)) in new cache file $(repr (tmppath)) ." )
3182+ error (" Incompatible header for $(repr (" text/plain" , pkg)) in new cache file $(repr (tmppath)) ." )
31833183 end
31843184 seekend (f)
31853185 write (f, crc_so)
@@ -3503,7 +3503,7 @@ end
35033503function parse_cache_header (cachefile:: String )
35043504 io = open (cachefile, " r" )
35053505 try
3506- iszero (isvalid_cache_header (io)) && throw (ArgumentError (" Invalid header in cache file $cachefile ." ))
3506+ iszero (isvalid_cache_header (io)) && throw (ArgumentError (" Incompatible header in cache file $cachefile ." ))
35073507 ret = parse_cache_header (io, cachefile)
35083508 return ret
35093509 finally
@@ -3516,7 +3516,7 @@ function preferences_hash(cachefile::String)
35163516 io = open (cachefile, " r" )
35173517 try
35183518 if iszero (isvalid_cache_header (io))
3519- throw (ArgumentError (" Invalid header in cache file $cachefile ." ))
3519+ throw (ArgumentError (" Incompatible header in cache file $cachefile ." ))
35203520 end
35213521 return preferences_hash (io, cachefile)
35223522 finally
@@ -3532,7 +3532,7 @@ end
35323532function cache_dependencies (cachefile:: String )
35333533 io = open (cachefile, " r" )
35343534 try
3535- iszero (isvalid_cache_header (io)) && throw (ArgumentError (" Invalid header in cache file $cachefile ." ))
3535+ iszero (isvalid_cache_header (io)) && throw (ArgumentError (" Incompatible header in cache file $cachefile ." ))
35363536 return cache_dependencies (io, cachefile)
35373537 finally
35383538 close (io)
@@ -3572,7 +3572,7 @@ end
35723572function read_dependency_src (cachefile:: String , filename:: AbstractString )
35733573 io = open (cachefile, " r" )
35743574 try
3575- iszero (isvalid_cache_header (io)) && throw (ArgumentError (" Invalid header in cache file $cachefile ." ))
3575+ iszero (isvalid_cache_header (io)) && throw (ArgumentError (" Incompatible header in cache file $cachefile ." ))
35763576 return read_dependency_src (io, cachefile, filename)
35773577 finally
35783578 close (io)
@@ -3856,9 +3856,9 @@ end
38563856 try
38573857 checksum = isvalid_cache_header (io)
38583858 if iszero (checksum)
3859- @debug " Rejecting cache file $cachefile due to it containing an invalid cache header"
3860- record_reason (reasons, " invalid header" )
3861- return true # invalid cache file
3859+ @debug " Rejecting cache file $cachefile due to it containing an incompatible cache header"
3860+ record_reason (reasons, " incompatible header" )
3861+ return true # incompatible cache file
38623862 end
38633863 modules, (includes, _, requires), required_modules, srctextpos, prefs, prefs_hash, clone_targets, actual_flags = parse_cache_header (io, cachefile)
38643864 if isempty (modules)
0 commit comments