Skip to content

Commit 2fd696e

Browse files
committed
Fix: use Application.ensure_all_started for :ssl and :inets
:ssl.start/0 fails when the :ssl app isn't loaded. Using Application.ensure_all_started/1 properly boots the app and its dependencies during dependency compilation.
1 parent 4fdb45e commit 2fd696e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/tailwind_compiler/native.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ defmodule TailwindCompiler.Native do
106106
if redirects_left <= 0 do
107107
{:error, :too_many_redirects}
108108
else
109-
:inets.start()
110-
:ssl.start()
109+
Application.ensure_all_started(:inets)
110+
Application.ensure_all_started(:ssl)
111111

112112
http_opts = [ssl: ssl_opts()]
113113

0 commit comments

Comments
 (0)