Closed lud closed 1 year ago
@fogfish seems there is a problem with mix and rebar.config.script files. On erlkaf we don't include this file into hex package but esq does..
I'm not familiar with mix but I received this pull request from rebar3 author https://github.com/silviucpp/erlkaf/pull/10/files
Hello @fogfish . It is possible to fix this problem ? It's causing issues to all libraries published on hex that are using your lib as dependency.
Silviu
absolutely! I need to deep dive into syntax of rebar2. Will make adaptation asap.
A quick fix is to not include that file into hex package. Anyway is pointless as it's related to the ancient rebar2 compatibility.
You can specifiy what files to include into the hex using the files property . Example: https://github.com/silviucpp/erlkaf/blob/master/src/erlkaf.app.src
Silviu
Version 2.0.5 is published to hex. Please confirm if the issue is fixed.
@lud can you please check the last erlkaf from hex ?
I could not reproduce the same error as before, but I still had an error on esq. Now it seem to compile correctly.
I have another error :
- pipes (Hex package) could not find an app file at "_build/dev/lib/pipes/ebin/pipes.app". Another app file was found in the same directory "_build/dev/lib/pipes/ebin/pipe.app", try changing the dependency name to :pipe ** (Mix) Can't continue due to errors on dependencies
But that seems not related to esq
.
Hmm pipes it's a dep of esq.. @fogfish I see you changed the name of dep from pipe to pipes in this last release.. and compilr it's complaining about this. I also see into https://hex.pm/packages/pipes that it says:
{pipe, "2.0.1", {pkg, pipes}}
I can confirm, this works.
I tried to override my esq
dependency:
defp deps do
[
{:erlkaf, "~> 2.1.1"},
{:esq, path: "/home/lud/osef/esq", override: true}
]
end
And modify esq
rebar.config
to have this:
{deps, [
datum,
{pipe, "2.0.1", {pkg, pipes}},
uid
]}.
And now the project compiles.
@fogfish can you please make a fix ?
Version 2.0.6 is published to hex. Please confirm if the issue is fixed.
It works with ``` {:erlkaf, "~> 2.1.1"}, {:esq, "~> 2.0.6", override: true}
I'll try again when a new version of erlkaf is published by @silviucpp .
@lud I just published a new package. Please test.
Yep, project builds correctly!
This package is a dependency of erlkaf and when erlkaf is build as a dependency in a mix project, there is an error:
If I add the rebar2.config file manually, the error is gone.
I don't know rebar very well, neither management of erl apps in Hex, but would it be a solution to add the rebar2.config file to the hex package?
Thank you