Wrong Base62 module alias in 1.7.0
IvanIvanoff opened this issue · comments
Describe the bug
After upgrading from 1.6.2 to 1.7.0 I started seeing this error when calling the EventBus.EventSource.notify/2
macro:
** (UndefinedFunctionError) function Base62.unique_id/0 is undefined (module Base62 is not available)
Base62.unique_id()
(sanbase 0.0.1) lib/sanbase/event_bus/event_bus.ex:84: Sanbase.EventBus.notify/1
iex:1: (file)
This is fixed by adding the following to my config.exs file:
config :event_bus,
id_generator: EventBus.Util.Base62
Alternatively, it should be fixed by properly referring to the module from the EventBus.EventSource.build/2
macro.
The issue seems to be introduced here:
89fbe49#diff-db1da10c33c19893e8843ec6476e5a3fb7525fdc8b7da6c81f3d5c1344408b55L18-R55
Expected behavior
The module to be properly aliased and not reported as undefined.
Enviroment:
- OS: MacOS Monterey 12.6
- Elixir version: 1.14.0
- OTP version: 25.0