gleam-lang/gleam

Have Erlang shipments print a warning if being run with a different OTP major version

Open

#4.769 geöffnet am 10. Juli 2025

Auf GitHub ansehen
 (1 Kommentar) (2 Reaktionen) (0 zugewiesene Personen)Rust (960 Forks)batch import
discussionhelp wanted

Repository-Metriken

Stars
 (21.417 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 10T 19h) (69 gemergte PRs in 30 T)

Beschreibung

Update: It looks like the error was caused because the newer docker images use Erlang 28 and I was trying to run the exported shipment with Erlang 27. Maybe a check could be added to the entrypoint script to make sure you're running it with the correct Erlang version since the current error message is pretty cryptic.


When I run gleam export erlang-shipment on a fresh project in the v1.11.1-erlang docker image and then try to do ./entrypoint.sh run, the app crashes with the following error:

Error! Failed to eval: docker_gleam_test@@main:run(docker_gleam_test)

Runtime terminating during boot ({undef,[{'docker_gleam_test@@main',run,[docker_gleam_test],[]},{erl_eval,do_apply,7,[{file,"erl_eval.erl"},{line,915}]},{init,start_it,1,[]},{init,start_em,1,[]},{init,do_boot,3,[]}]})

Crash dump is being written to: erl_crash.dump...done

The same issue occurs with v1.11.0-erlang but not with v1.10.0-erlang.

Contributor Guide