You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using use Hammox.Protect (and protect/2) with older versions of Elixir (< 1.12), the following error is raised because Code.ensure_compiled! isn't available in the check_module_existsutil function.
** (UndefinedFunctionError) function Code.ensure_compiled!/1 is undefined or private. Did you mean one of:
* ensure_compiled/1
* ensure_loaded/1
(elixir 1.11.4) Code.ensure_compiled!(Hui.ResponseParsers.Parser)
lib/hammox/protect.ex:153: Hammox.Protect.get_funs!/1
When using
use Hammox.Protect
(andprotect/2
) with older versions of Elixir (< 1.12), the following error is raised becauseCode.ensure_compiled!
isn't available in thecheck_module_exists
util function.A fix should be created in similar vein to Mox:
https://github.com/dashbitco/mox/blob/a59a1840676ceb0ef6c3e0f4959242ccb5d593ab/lib/mox.ex#L794-L809
Happy to submit a PR since Hammox is still
elixir: "~> 1.7"
.The text was updated successfully, but these errors were encountered: