Skip to content

warning: missing dependency electric_client (../elixir-client) when building the Docker image #3751

@alco

Description

@alco

During a Docker image build of sync-service, the following step prints an unexpected warning:

#19 [builder  7/17] RUN mix deps.get
#19 0.755 warning: missing dependency electric_client (../elixir-client)
#19 1.169 Resolving Hex dependencies...
#19 1.354 Resolution completed in 0.174s
#19 1.390 Unchanged:
[...]

The dependency is defined like so in sync-service/mix.exs:

      {:electric_client, path: "../elixir-client", only: [:test], runtime: false}

But it looks like mix is trying to fetch it anyway and complains because the ../elixir-client is not available in the Docker builder context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions