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

Changing to a github dependency breaks mix #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

CrowdHailer
Copy link
Contributor

This project works fine on master, the test calls into some Gleam code.

Switching a dependency to come from github does not correctly compile the Gleam code from another module. So here the Gleam code in this project is compiled but the standard library is not.

It seems that Gleam is compiled to erlang in the dependencies, you can see [email protected] by listing deps/gleam_stdlib/gen/src/ But those erlang modules are not available when running this application.

The test fails with the following error, indicating stlib modules are not available

  1) test greets the world (ElixirWithGleamTest)
     test/elixir_with_gleam_test.exs:5
     ** (UndefinedFunctionError) function :[email protected]/1 is undefined (module :gleam@string is not available)
     code: assert ElixirWithGleam.hello() == "!maelg morf ,olleH"
     stacktrace:
       :[email protected]("Hello, from gleam!")
       test/elixir_with_gleam_test.exs:6: (test)

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.

1 participant