Skip to content

Support gettext ~> 1.0 for Phoenix 1.8 compatibility#860

Open
bmalum wants to merge 2 commits intoBeaconCMS:mainfrom
bmalum:support-gettext-1.0
Open

Support gettext ~> 1.0 for Phoenix 1.8 compatibility#860
bmalum wants to merge 2 commits intoBeaconCMS:mainfrom
bmalum:support-gettext-1.0

Conversation

@bmalum
Copy link
Copy Markdown

@bmalum bmalum commented Mar 30, 2026

Make Beacon installable and functional on Phoenix 1.8.

Changes

Widen gettext dependency (mix.exs)

~> 0.26~> 0.26 or ~> 1.0

Phoenix 1.8 ships with {:gettext, "~> 1.0"}, causing a Hex resolution failure. The codebase already uses the gettext 1.0-compatible API (Gettext.Backend, backend: option, direct Gettext.dgettext/4 calls), so only
the version constraint needed updating.

Replace removed private API (lib/beacon/private.ex)

Phoenix.Endpoint.Supervisor.config/2 was removed in Phoenix 1.8, breaking Beacon.Private.endpoint_host/2 at runtime:

(UndefinedFunctionError) function Phoenix.Endpoint.Supervisor.config/2 is undefined or private

Replaced with endpoint.host/0, which is the public callback available on all Phoenix endpoints.

Closes #859

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support gettext ~> 1.0 for Phoenix 1.8 compatibility

1 participant