Skip to content

Commit

Permalink
Fix for distillery failing to archive release for OTP 25
Browse files Browse the repository at this point in the history
For OTP 25 distillery was failing at the 'archive' step with: 

     ==> Failed to archive release: _build/prod/rel/osnap/releases/RELEASES: no such file or directory

See bitwalker#749
  • Loading branch information
montebrown committed Jul 2, 2023
1 parent 3ab4d61 commit 8734506
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/distillery/releases/assembler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,10 @@ defmodule Distillery.Releases.Assembler do
# no work around for this
old_cwd = File.cwd!()
File.cd!(output_dir)
:ok = :release_handler.create_RELEASES('./', 'releases', '#{relfile}', [])

# Fix from https://github.com/bitwalker/distillery/issues/749 - distillery was failing with:
# ==> Failed to archive release: _build/prod/rel/osnap/releases/RELEASES: no such file or directory
:ok = :release_handler.create_RELEASES(File.cwd!(), Path.join([File.cwd!(), 'releases']), '#{relfile}', [])
File.cd!(old_cwd)
:ok
end
Expand Down

0 comments on commit 8734506

Please sign in to comment.