JuliaTesting/Mocking.jl

Incremental compilation may be broken for this module

Closed this issue · 2 comments

omus commented

As brought up in JuliaTime/TimeZones.jl#30, Mocking.jl reports a warning when pre-compiling a package which uses Mocking:

INFO: Recompiling stale cache file /home/tom/.julia/lib/v0.5/CTechCommon.ji for module CTechCommon.
WARNING: eval from module Mocking to CTechCommon:    
Expr(:module, true, :##262, Expr(:block, Expr(:line, 108, :/home/tom/.julia/v0.5/Mocking/src/Mocking.jl)::Any, Expr(:line, 108, :/home/tom/.julia/v0.5/Mocking/src/Mocking.jl)::Any)::Any)::Any
  ** incremental compilation may be broken for this module **

WARNING: replacing module ##262
omus commented

The solution is to avoid creating a PatchEnv before it is needed. Will be fixed in v0.2.1

omus commented

Fixed in fe42467