You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux 6.1.78 #1-NixOS SMP PREEMPT_DYNAMIC x86_64 GNU/Linux
Current behavior
Here are the steps to reproduce the problem:
Write a file into the rel/overlays directory.
Run mix release.
Delete the file from the rel/overlays directory.
Run mix release --overwrite.
The file is still included into the release.
Expected behavior
Here's a test case that describes the behavior I would expect:
test"stale files in overlays"doin_fixture("release_test",fn->Mix.Project.in_project(:release_test,".",fn_->File.mkdir_p!("rel/overlays")File.write!("rel/overlays/file1","hello")File.write!("rel/overlays/file2","world")root=Path.absname("_build/dev/rel/release_test")Mix.Task.run("release")assertroot|>Path.join("file1")|>File.read!()=="hello"assertroot|>Path.join("file2")|>File.read!()=="world"File.rm!("rel/overlays/file2")Mix.Task.rerun("release",["--overwrite"])refuteroot|>Path.join("file2")|>File.exists?()end)end)end
Fix attempt
By removing the whole release directory before running a new release the issue is fixed, but I'm afraid my approach is too naive.
Elixir and Erlang/OTP versions
Operating system
Current behavior
Here are the steps to reproduce the problem:
rel/overlays
directory.mix release
.rel/overlays
directory.mix release --overwrite
.Expected behavior
Here's a test case that describes the behavior I would expect:
Fix attempt
By removing the whole release directory before running a new release the issue is fixed, but I'm afraid my approach is too naive.
ref: emilianobovetti@905327e
The text was updated successfully, but these errors were encountered: