Skip to content

Conversation

wojtekmach
Copy link
Member

See hexpm/hex#1069

I've manually executed release scripts from the Hex PR so the following URLs are already working and thus this can be tested locally.

@josevalim josevalim added this to the v1.19 milestone May 9, 2025
@josevalim josevalim merged commit 5fbf793 into elixir-lang:main May 9, 2025
11 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@wojtekmach wojtekmach deleted the wm-hex-per-otp-release branch May 9, 2025 14:48
@wojtekmach
Copy link
Member Author

If anyone is running into issues on OTP 28, e.g.:

~/tmp$ mix hex.info
Hex:    2.2.1
Elixir: 1.18.3
OTP:    28.0

Built with: Elixir 1.18.0 and OTP 25.3.2.16
~/tmp$ MIX_INSTALL_FORCE=1 elixir -e 'Mix.install [:telemetry]'
Resolving Hex dependencies...
Resolution completed in 0.007s
New:
  telemetry 1.3.0
* Getting telemetry (Hex package)
===> Using custom resource rebar_pkg_resource that implements a deprecated api. It should be upgraded to rebar_resource_v2.
=ERROR REPORT==== 21-May-2025::10:25:09.174632 ===
beam/beam_load.c(594): Error loading function rebar_pkg_resource:init/2: op bs_add p x i u x:
  please re-compile this module with an Erlang/OTP 28 compiler or update your Erlang/OTP version


===> Errors loading plugin rebar3_hex. Run rebar3 with DEBUG=1 set to see errors.
===> Using custom resource rebar_pkg_resource that implements a deprecated api. It should be upgraded to rebar_resource_v2.
=ERROR REPORT==== 21-May-2025::10:25:09.198047 ===
beam/beam_load.c(594): Error loading function rebar_pkg_resource:init/2: op bs_add p x i u x:
  please re-compile this module with an Erlang/OTP 28 compiler or update your Erlang/OTP version


=ERROR REPORT==== 21-May-2025::10:25:09.204085 ===
beam/beam_load.c(594): Error loading function rebar_prv_deps:source_text/1: op bs_append p i u u u x u x:
  please re-compile this module with an Erlang/OTP 28 compiler or update your Erlang/OTP version


===> Failed creating providers. Run with DIAGNOSTIC=1 for stacktrace or consult rebar3.crashdump.
** (Mix.Error) Could not compile dependency :telemetry, "/Users/wojtek/.local/share/mise/installs/elixir/1.18.3-otp-27/.mix/elixir/1-18/rebar3 bare compile --paths /Users/wojtek/.cache/mix/installs/elixir-1.18.3-erts-16.0/0e36562d1893c5ee892672f86fb0e530/_build/dev/lib/*/ebin" command failed. Errors may have been logged above. You may run Mix.install/2 to try again or change the arguments to Mix.install/2 to try another version
    (mix 1.18.3) lib/mix.ex:618: Mix.raise/2
    (mix 1.18.3) lib/mix/tasks/deps.compile.ex:239: Mix.Tasks.Deps.Compile.do_rebar3/2
    (mix 1.18.3) lib/mix/tasks/deps.compile.ex:98: anonymous fn/4 in Mix.Tasks.Deps.Compile.compile/2
    (elixir 1.18.3) lib/enum.ex:1714: Enum."-map/2-lists^map/1-1-"/2
    (mix 1.18.3) lib/mix/tasks/deps.compile.ex:82: Mix.Tasks.Deps.Compile.compile/2
    (mix 1.18.3) lib/mix/tasks/deps.loadpaths.ex:107: anonymous fn/2 in Mix.Tasks.Deps.Loadpaths.deps_check/3
    (mix 1.18.3) lib/mix/sync/lock.ex:112: Mix.Sync.Lock.with_lock/3

Please install rebar3 like this:

$ curl -fsS https://builds.hex.pm/installs/1.18.3/rebar3-3.24.0-otp-27 > rebar3 ; mix local.rebar rebar3 ./rebar3

this should be no longer necessary once this PR is released, e.g. in next Elixir 1.18.x.

@saper
Copy link

saper commented Jul 21, 2025

If anyone is running into issues on OTP 28, e.g.:
this should be no longer necessary once this PR is released, e.g. in next Elixir 1.18.x.

Looks like I am getting those kinds of issues with 1.18.2: #14662

@sabiwara
Copy link
Contributor

sabiwara commented Jul 21, 2025

Looks like I am getting those kinds of issues with 1.18.2: #14662

The fix mentioned above has been released in 1.18.4, could you try 1.18.4?

Please note that Elixir 1.18.2 doesn't support OTP28.

@saper
Copy link

saper commented Jul 22, 2025

Oh, thank you, looks like distributions like MacPorts should not ship elixir 1.18.2 and OTP 28 at the same time.

https://trac.macports.org/ticket/72685

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants