Skip to content

Commit d675732

Browse files
committed
remove unspported targets for v4+, add separate warning for 404
1 parent 27ad86f commit d675732

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

lib/tailwind.ex

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -290,12 +290,6 @@ defmodule Tailwind do
290290
{{:unix, :linux}, "aarch64", _abi, 64} ->
291291
"linux-arm64"
292292

293-
{{:unix, :linux}, "arm", _abi, 32} ->
294-
"linux-armv7"
295-
296-
{{:unix, :linux}, "armv7" <> _, _abi, 32} ->
297-
"linux-armv7"
298-
299293
{{:unix, _osname}, arch, "musl", 64} when arch in ~w(x86_64 amd64) ->
300294
"linux-x64-musl"
301295

@@ -342,6 +336,18 @@ defmodule Tailwind do
342336
{_, {:ok, {{_, 200, _}, _headers, body}}} ->
343337
body
344338

339+
{_, {:ok, {{_, 404, _}, _headers, _body}}} ->
340+
raise """
341+
The tailwind binary couldn't be found at: #{url}
342+
343+
This could mean that you're trying to install a version that does not support the detected
344+
target architecture.
345+
346+
You can see the available files for the configured version at:
347+
348+
https://github.com/tailwindlabs/tailwindcss/releases/tag/v#{configured_version()}
349+
"""
350+
345351
{true, {:error, {:failed_connect, [{:to_address, _}, {inet, _, reason}]}}}
346352
when inet in [:inet, :inet6] and
347353
reason in [:ehostunreach, :enetunreach, :eprotonosupport, :nxdomain] ->

0 commit comments

Comments
 (0)