ory / sdk

The place where ORY's SDKs are being auto-generated
Apache License 2.0
135 stars 85 forks source link

Elixir deps can't be compiled #350

Closed jonas-jonas closed 3 days ago

jonas-jonas commented 2 months ago

The SDK build for elixir is failing with this error message [1] when using the 7.4.0 version of the open-api-generator for elixir.

I couldn't install a newer version of elixir in the docker image for some reason, and as the version that's available to our docker base image is v1.10.3 which is pretty old, I suspect, that that might be the issue.

[1]:

== Compilation error in file lib/tesla/middleware/sse.ex ==
** (CompileError) lib/tesla/middleware/sse.ex:41: cannot find or invoke local is_struct/2 inside guard. Only macros can be invoked in a guard and they must be defined before their invocation. Called as: is_struct(body, Stream)
    (stdlib 3.14) lists.erl:1358: :lists.mapfoldl/3
    (elixir 1.10.3) expanding macro: Kernel.or/2
    lib/tesla/middleware/sse.ex:41: Tesla.Middleware.SSE.decode_body/2
could not compile dependency :tesla, "mix compile" failed. You can recompile this dependency with "mix deps.compile tesla", update it with "mix deps.update tesla" or clean it with "mix deps.clean tesla"
aeneasr commented 3 days ago

Fixed on master