Comments (23)
--- a/lib/distillery/releases/assembler.ex
+++ b/lib/distillery/releases/assembler.ex
@@ -860,7 +860,7 @@ 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}', [])
+ :ok = :release_handler.create_RELEASES(File.cwd!(), Path.join([File.cwd!(), 'releases']), '#{relfile}', [])
File.cd!(old_cwd)
:ok
end
I have a local fork that works with just this change within lib/
so if you use a git dependency in your mix file, you can use your own fork with this change.
Getting the tests to run has been a challenge and required quite a few changes. I had to comment out the cookie tests because I couldn't hit quvic.com from behind a firewall. Also, the "directory with space in name" wouldn't work for me so I just removed it.
If I can find the time to run tests across several versions of Elixir & OTP, I'll submit a MR. If someone else submits this fix based on this post, thanks!
Tested with Elixir 1.12.3 & 1.13.4 + Erlang 25.0.4.
from distillery.
Getting this as well, which makes our MacOS builds that install via brew (and brew doesn't let you downgrade versions, ugh) unusable
Just wanted to echo that I'm running into this too for wasmCloud/wasmcloud-otp#409, and would be happy to help test a fix
cc @bitwalker / @mobileoverlord since this issue has been open for a bit
from distillery.
@brooksmtownsend this is off-topic, but I can recommend using asdf
for managing developer dependencies where you can pin on the exact version you need, per project even.
from distillery.
@narrowtux Yeah asdf
is pretty fantastic and what I ended up falling back to, the reason I preferred brew
was simply for the speed of installation in CI builds
from distillery.
similar for me
MIX_ENV=prod mix distillery.release
output
MIX_ENV=prod mix distillery.release
Generated demo app
==> Assembling release..
==> Building release demo:0.1.0 using environment prod
==> Including ERTS 13.0.3 from /usr/lib/erlang/erts-13.0.3
==> Release failed: no match of right hand side value: {:error, :eacces}
(distillery 2.1.1) lib/distillery/releases/assembler.ex:863: Distillery.Releases.Assembler.create_RELEASES/2
(distillery 2.1.1) lib/distillery/releases/assembler.ex:290: Distillery.Releases.Assembler.write_release_scripts/1
(distillery 2.1.1) lib/distillery/releases/assembler.ex:50: Distillery.Releases.Assembler.assemble/1
(distillery 2.1.1) lib/distillery/tasks/release.ex:130: Mix.Tasks.Distillery.Release.do_release/2
(mix 1.13.2) lib/mix/task.ex:397: anonymous fn/3 in Mix.Task.run_task/3
(mix 1.13.2) lib/mix/cli.ex:84: Mix.CLI.run_task/2
(elixir 1.13.2) src/elixir_compiler.erl:73: :elixir_compiler.dispatch/4
(elixir 1.13.2) src/elixir_compiler.erl:58: :elixir_compiler.compile/3
from distillery.
Also seeing this;
==> Including ERTS 13.0.4 from /opt/homebrew/Cellar/erlang/25.0.4/lib/erlang/erts-13.0.4
==> Release failed: no match of right hand side value: {:error, :eacces}
(distillery 2.1.1) lib/distillery/releases/assembler.ex:863: Distillery.Releases.Assembler.create_RELEASES/2
(distillery 2.1.1) lib/distillery/releases/assembler.ex:290: Distillery.Releases.Assembler.write_release_scripts/1
(distillery 2.1.1) lib/distillery/releases/assembler.ex:50: Distillery.Releases.Assembler.assemble/1
(distillery 2.1.1) lib/distillery/tasks/release.ex:130: Mix.Tasks.Distillery.Release.do_release/2
(mix 1.13.4) lib/mix/task.ex:397: anonymous fn/3 in Mix.Task.run_task/3
(mix 1.13.4) lib/mix/cli.ex:84: Mix.CLI.run_task/2
(elixir 1.13.4) src/elixir_compiler.erl:73: :elixir_compiler.dispatch/4
(elixir 1.13.4) src/elixir_compiler.erl:58: :elixir_compiler.compile/3
from distillery.
+1 here
from distillery.
+1
from distillery.
same, it seems to be due to the changes to the release handler in erlang otp 25.
from distillery.
Same issue here
erlang - 25.0.4
elixir - 1.14.0-otp-25
OS - MacOS
Downgrading is not an option for me as we need the latest version of Elixir
==> Assembling release..
==> Building release management_portal_umbrella:0.1.0 using environment prod
==> Including ERTS 13.0.4 from /Users/carlflynn/.asdf/installs/erlang/25.0.4/erts-13.0.4
==> Packaging release..
==> Failed to archive release: _build/prod/rel/management_portal_umbrella/releases/RELEASES: no such file or directory
from distillery.
+1
from distillery.
Related Issues (20)
- undef Distillery.Releases.Config.Provider
- Appending sname/name with hostname is not in sync with Erlang
- Documentation for Migration Rollbacks
- include ERTS challenges after upgrade to Elixir 1.9
- On Mac, I can remote_console, but not attach
- Distillery vs Elixir 1.9 releases HOT 3
- mix distillery.release failing with Elixir 1.9.4 HOT 1
- Sample Dockerfile doesn't work HOT 1
- cannot create regular file ‘/data/apps/appname/var/vm.args.bak’: File exists HOT 2
- Unable to change the :suspend term with Appup.Transform HOT 1
- `${u*}` in cookie causes all commands to enter an infinite loop HOT 2
- Ran into issue fixed in master HOT 2
- Releases for specified architecture
- Upgrade isn't permanent HOT 2
- Can't ping or access remote_console after updating Erlang and Elixir HOT 1
- Support custom command script files with extensions other than `.sh`?
- custom erl_opts not working
- release_handler issue HOT 6
- Project update HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from distillery.