From 567a88ed376320dbcbec51e6f91657e8b48a8619 Mon Sep 17 00:00:00 2001 From: beerlington Date: Tue, 20 Jun 2023 15:54:16 -0400 Subject: [PATCH 1/2] This fixes an issue with trying to load idna at runtime --- mix.exs | 2 +- mix.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mix.exs b/mix.exs index ca51325..d296dca 100644 --- a/mix.exs +++ b/mix.exs @@ -26,7 +26,7 @@ defmodule PublicSuffix.Mixfile do defp deps do [ - {:idna, ">= 1.2.0"}, + {:idna, ">= 6.1.1", runtime: false}, # ex_doc and earmark are necessary to publish docs to hexdocs.pm. {:ex_doc, ">= 0.0.0", only: :dev}, {:earmark, ">= 0.0.0", only: :dev} diff --git a/mix.lock b/mix.lock index f85fd0e..25f2a08 100644 --- a/mix.lock +++ b/mix.lock @@ -1,6 +1,6 @@ %{ - "earmark": {:hex, :earmark, "0.2.1", "ba6d26ceb16106d069b289df66751734802777a3cbb6787026dd800ffeb850f3", [:mix], []}, - "ex_doc": {:hex, :ex_doc, "0.11.5", "0dc51cb84f8312162a2313d6c71573a9afa332333d8a332bb12540861b9834db", [:mix], [{:earmark, "~> 0.1.17 or ~> 0.2", [hex: :earmark, optional: true]}]}, - "idna": {:hex, :idna, "6.0.0", "689c46cbcdf3524c44d5f3dde8001f364cd7608a99556d8fbd8239a5798d4c10", [:rebar3], [{:unicode_util_compat, "0.4.1", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm"}, - "unicode_util_compat": {:hex, :unicode_util_compat, "0.4.1", "d869e4c68901dd9531385bb0c8c40444ebf624e60b6962d95952775cac5e90cd", [:rebar3], [], "hexpm"}, + "earmark": {:hex, :earmark, "0.2.1", "ba6d26ceb16106d069b289df66751734802777a3cbb6787026dd800ffeb850f3", [:mix], [], "hexpm", "c86afb8d22a5aa8315afd4257c7512011c0c9a48b0fea43af7612836b958098b"}, + "ex_doc": {:hex, :ex_doc, "0.11.5", "0dc51cb84f8312162a2313d6c71573a9afa332333d8a332bb12540861b9834db", [:mix], [{:earmark, "~> 0.1.17 or ~> 0.2", [hex: :earmark, repo: "hexpm", optional: true]}], "hexpm", "0ea1dc193fc0cbea5d5d47f652493d5d80797ff994484c74f608322a948b5078"}, + "idna": {:hex, :idna, "6.1.1", "8a63070e9f7d0c62eb9d9fcb360a7de382448200fbbd1b106cc96d3d8099df8d", [:rebar3], [{:unicode_util_compat, "~> 0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "92376eb7894412ed19ac475e4a86f7b413c1b9fbb5bd16dccd57934157944cea"}, + "unicode_util_compat": {:hex, :unicode_util_compat, "0.7.0", "bc84380c9ab48177092f43ac89e4dfa2c6d62b40b8bd132b1059ecc7232f9a78", [:rebar3], [], "hexpm", "25eee6d67df61960cf6a794239566599b09e17e668d3700247bc498638152521"}, } From 1e0e438e1f316488b991de5b1467053b6369db22 Mon Sep 17 00:00:00 2001 From: beerlington Date: Tue, 20 Jun 2023 16:04:55 -0400 Subject: [PATCH 2/2] Fix idna bug --- mix.exs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index d296dca..9a0908f 100644 --- a/mix.exs +++ b/mix.exs @@ -20,7 +20,8 @@ defmodule PublicSuffix.Mixfile do # rules file. So it is not needed at runtime. applications: [ :logger - ] + ], + extra_applications: [:idna] ] end