Skip to content

Commit

Permalink
Fix :http_util failing on phx.gen.release --docker. Closes #5502
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Aug 2, 2023
1 parent da8811d commit 653cf60
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/mix/tasks/phx.gen.release.ex
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,13 @@ defmodule Mix.Tasks.Phx.Gen.Release do
url = String.to_charlist(url)
Logger.debug("Fetching latest image information from #{url}")

{:ok, _} = Application.ensure_all_started(:inets)
{:ok, _} = Application.ensure_all_started(:ssl)
if function_exported?(Mix, :ensure_application!, 1) do
Mix.ensure_application!(:inets)
Mix.ensure_application!(:ssl)
else
{:ok, _} = Application.ensure_all_started(:inets)
{:ok, _} = Application.ensure_all_started(:ssl)
end

if proxy = System.get_env("HTTP_PROXY") || System.get_env("http_proxy") do
Logger.debug("Using HTTP_PROXY: #{proxy}")
Expand Down

0 comments on commit 653cf60

Please sign in to comment.