#I'm trying to use a local Elixir lib as a deps by path

1 messages · Page 1 of 1 (latest)

shut valve
#

I have a local Elixir library that I want to use in my new Gleam webapp. I see that you can add an Elixir library as a dependency from Hex by including it in the deps, by name, and have successfully done this with the csv package, as a test.

However, I am not ready to publish my Elixir library to Hex yet, but want to start testing it in my Gleam app. So I am looking at git and path as options for including it as a dependency. Unfortunately both of these options are failing for me. It seems to be looking for a gleam.toml file in the root of the path/repo. I inspected the csv in the build/packages folder that gets downloaded when installing the package from Hex. It does not have a gleam.toml file in it.

Is this a bug, are git/path Elixir dependencies not supported, or am I doing something wrong?

I'm happy to follow up with any information to figure this out, thanks!

wanton dawn
#

its not a bug, gleam only supports gleam projects for git and path deps