Skip to content

Commit 0b80574

Browse files
committed
fix not warning about old manifest during Pkg.test (#2622)
* fix not warning about old manifest during Pkg.test * move comment (cherry picked from commit b009285)
1 parent a7254ca commit 0b80574

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Operations.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,11 +1410,11 @@ function sandbox_preserve(env::EnvCache, target::PackageSpec, test_project::Stri
14101410
if env.pkg !== nothing
14111411
env.manifest[env.pkg.uuid] = PackageEntry(;name=env.pkg.name, path=dirname(env.project_file),
14121412
deps=env.project.deps)
1413-
# if the source manifest is an old format, upgrade the manifest_format so
1414-
# that warnings aren't thrown for the temp sandbox manifest
1415-
if env.manifest.manifest_format < v"2.0"
1416-
env.manifest.manifest_format = v"2.0"
1417-
end
1413+
end
1414+
# if the source manifest is an old format, upgrade the manifest_format so
1415+
# that warnings aren't thrown for the temp sandbox manifest
1416+
if env.manifest.manifest_format < v"2.0"
1417+
env.manifest.manifest_format = v"2.0"
14181418
end
14191419
# preserve important nodes
14201420
keep = [target.uuid]

0 commit comments

Comments
 (0)