Skip to content

Yggdrasil v6.0 and Yggdrasil_postgres v5.0 dependencies problem #12

Description

@ndrean

I use {:phoenix, "~> 1.6.6"} with project[:elixir] = 1.13 and {:yggdrasil, "~> 6.0"} and config :yggdrasil, postgres: [hostname: "localhost"]

I tested the "pg_notify" example:

iex> Yggdrasil.subscribe(name: "new_books", adapter: :postgres, transformer: :json)
{:error, "Yggdrasil postgres not registered in any node"}

If I declare {yggdrasil, "~> 5.0"}, then I have a dependency problem. The command mix deps.get returns:

Failed to use "phoenix_pubsub" (version 2.0.0) because
phoenix (version 1.6.6) requires ~> 2.0
yggdrasil (versions 5.0.1 and 5.0.2) requires ~> 1.1

I tested that the trigger worked with Postgrex.Notification using this setup:

# when I notify in a psql session:
yggdrasil_pg_notify=# NOTIFY "new books", '{"id": 1, "title": "one"}';

# the iex responds with:
iex(2)> [info] [id: 1, title: "one"]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions