@@ -385,7 +385,7 @@ function update_manifest!(env::EnvCache, pkgs::Vector{PackageSpec}, deps_map, ju
385385
386386 env. manifest. registries = registry_entries
387387 env. manifest. manifest_format = v " 2.1.0"
388- return record_project_hash (env)
388+ return
389389end
390390
391391# This has to be done after the packages have been downloaded
@@ -1666,10 +1666,6 @@ function prune_deps(iterator, keep::Set{UUID})
16661666 return
16671667end
16681668
1669- function record_project_hash (env:: EnvCache )
1670- return env. manifest. other[" project_hash" ] = Types. workspace_resolve_hash (env)
1671- end
1672-
16731669# ########
16741670# Build #
16751671# ########
@@ -1962,7 +1958,6 @@ function rm(ctx::Context, pkgs::Vector{PackageSpec}; mode::PackageMode)
19621958 end
19631959 # only keep reachable manifest entries
19641960 prune_manifest (ctx. env)
1965- record_project_hash (ctx. env)
19661961 # update project & manifest
19671962 write_env (ctx. env)
19681963 return show_update (ctx. env, ctx. registries; io = ctx. io)
@@ -2242,7 +2237,6 @@ function add(
22422237 # if env is a package add compat entries
22432238 add_compat_entries! (ctx, pkgs)
22442239
2245- record_project_hash (ctx. env)
22462240 write_env (ctx. env)
22472241 show_update (ctx. env, ctx. registries; io = ctx. io)
22482242
@@ -2264,14 +2258,12 @@ function add(
22642258
22652259 # if env is a package add compat entries
22662260 add_compat_entries! (ctx, pkgs)
2267- record_project_hash (ctx. env) # compat entries changed the hash after it was last recorded in update_manifest!
22682261
22692262 write_env (ctx. env) # write env before building
22702263 show_update (ctx. env, ctx. registries; io = ctx. io)
22712264 build_versions (ctx, union (new_apply, new_git))
22722265 allow_autoprecomp && Pkg. _auto_precompile (ctx, pkgs)
22732266 else
2274- record_project_hash (ctx. env)
22752267 write_env (ctx. env)
22762268 names_str = join (names, " , " )
22772269 printpkgstyle (ctx. io, :Added , " $names_str to [$(target) ]" )
@@ -2663,7 +2655,9 @@ function sandbox_preserve(env::EnvCache, target::PackageSpec, test_project::Stri
26632655 project = read_project (test_project)
26642656 keep = Set ([target. uuid])
26652657 union! (keep, values (project. deps))
2666- record_project_hash (env)
2658+ # Sync sources and record hash
2659+ Types. sync_sources_from_manifest! (env)
2660+ Types. record_project_hash (env)
26672661 # prune and return
26682662 return prune_manifest (env. manifest, keep)
26692663end
0 commit comments