Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Jun 17, 2024
1 parent d209cac commit a9f6c0f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/flame/code_sync.ex
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,20 @@ defmodule FLAME.CodeSync do
:ok = :erl_tar.extract(target_tmp_path, [{:cwd, extract_dir}, :compressed | verbose])


for mod <- pkg.purge_modules do
:code.purge(mod)
:code.delete(mod)
end

# add code paths
:ok = add_code_paths_from_tar(pkg, extract_dir)

# purge updated or deleted modules
purge(pkg, pkg.purge_modules)
for mod <- pkg.purge_modules do
# deleted beams being purged will passively return {:error, :nofile}, which is fine
:c.l(mod)
end


File.rm(target_tmp_path)

Expand Down

0 comments on commit a9f6c0f

Please sign in to comment.