Hello to all users,
This haskell package does not much for now but query a redis server, just pings it to be exact.
Locally everything was fine so far. I nix-env’d a redis and spawned the redis-server, which got discovered, when the nix-build was executed and the package got it’s ping resolved by the server answering pong.
On the github-ci workflow side I tried different approaches including nix-env as locally etc., using a docker-based redis as service and using some other third-party action that installed redis onto the ci-machine.
I even injected REDIS_HOST and REDIS_PORT to the environment with no change to the end that all options regarding building on github’s CI lead to the error message:
Network.Socket.connect: <socket: 16>: does not exist (Connection refused)
To be translated roughly as: redis-server can’t be found by the haskell app.
I have a slight clue about it all but am unable yet to solve the problem. So my question would be for pointers or help what to do here.
The clue or part of the above question would be: Is it related to the pure nature of nix-build, might be visible just on github-CI due to effects on my local system, that the redis instance cannot be found? And if so, how would I prepare my nix file to include redis directly to the build and also spawn the server instance therein ?