Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ndrean opened this issue Apr 1, 2022 · 0 comments
Open

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

ndrean opened this issue Apr 1, 2022 · 0 comments

Comments

@ndrean
Copy link

ndrean commented Apr 1, 2022

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"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant