File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -541,7 +541,7 @@ function resolve(
541
541
info (" $(up) grading $pkg : v$ver1 => v$ver2 " )
542
542
Write. update (pkg, Read. sha1 (pkg,ver2))
543
543
pkgsym = Symbol (pkg)
544
- if isdefined (Main, pkgsym) && isa (getfield (Main, pkgsym), Module)
544
+ if Base . isbindingresolved (Main, pkgsym) && isa (getfield (Main, pkgsym), Module)
545
545
push! (imported, " - $pkg " )
546
546
end
547
547
end
Original file line number Diff line number Diff line change @@ -489,6 +489,16 @@ temp_pkg_dir() do
489
489
@test isempty (Pkg. dependents (" Example" ))
490
490
@test isempty (Pkg. dependents (" Example.jl" ))
491
491
492
+ @test_warn s -> ! contains (s, " updated but were already imported" ) begin
493
+ Pkg. add (" Iterators" )
494
+ Pkg. update (" Iterators" )
495
+ end
496
+
497
+ # Do it again, because the above Iterators test will update things prematurely
498
+ LibGit2. with (LibGit2. GitRepo, metadata_dir) do repo
499
+ LibGit2. reset! (repo, LibGit2. GitHash (old_commit), LibGit2. Consts. RESET_HARD)
500
+ end
501
+
492
502
@test_warn (" INFO: Installing Colors v0.6.4" ,
493
503
" INFO: Installing ColorTypes v0.2.2" ,
494
504
" INFO: Installing FixedPointNumbers v0.1.3" ,
You can’t perform that action at this time.
0 commit comments