Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to install Bun with Elixir 1.15 on Docker #12

Closed
Wigny opened this issue Feb 7, 2024 · 0 comments · Fixed by #13
Closed

Fail to install Bun with Elixir 1.15 on Docker #12

Wigny opened this issue Feb 7, 2024 · 0 comments · Fixed by #13

Comments

@Wigny
Copy link
Contributor

Wigny commented Feb 7, 2024

In a CI pipeline, I'm receiving the same error reported on phoenixframework/phoenix#5502, where the module :http_util is not available making the command mix bun.install fail.

** (UndefinedFunctionError) function :http_util.timestamp/0 is undefined (module :http_util is not available)
    (inets 9.0.1) :http_util.timestamp()
    (inets 9.0.1) httpc.erl:750: :httpc.handle_request/9
    (bun 1.0.0) lib/bun.ex:276: Bun.fetch_body!/1
    (bun 1.0.0) lib/bun.ex:198: Bun.install/0
    (mix 1.15.4) lib/mix/task.ex:447: anonymous fn/3 in Mix.Task.run_task/5
    (mix 1.15.4) lib/mix/task.ex:506: Mix.Task.run_alias/6
    (elixir 1.15.4) lib/enum.ex:984: Enum."-each/2-lists^foreach/1-0-"/2
    (mix 1.15.4) lib/mix/task.ex:447: anonymous fn/3 in Mix.Task.run_task/5

While I was not able to reproduce the issue locally (running our CI pipeline based on the elixir:1.15-slim image though), ensuring :inets and :ssl are available when executing the command should solve the problem.

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 a pull request may close this issue.

1 participant