Skip to content

Commit 3d9b86e

Browse files
automatically upgrade the sandbox manifest format when preserving (#2617)
(cherry picked from commit acb1797)
1 parent 8f46ced commit 3d9b86e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Operations.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,6 +1398,11 @@ function sandbox_preserve(env::EnvCache, target::PackageSpec, test_project::Stri
13981398
if env.pkg !== nothing
13991399
env.manifest[env.pkg.uuid] = PackageEntry(;name=env.pkg.name, path=dirname(env.project_file),
14001400
deps=env.project.deps)
1401+
# if the source manifest is an old format, upgrade the manifest_format so
1402+
# that warnings aren't thrown for the temp sandbox manifest
1403+
if env.manifest.manifest_format < v"2.0"
1404+
env.manifest.manifest_format = v"2.0"
1405+
end
14011406
end
14021407
# preserve important nodes
14031408
keep = [target.uuid]

0 commit comments

Comments
 (0)