Skip to content
← Back to activity

Public problem

Latest nixpkgs breaks cbcli build: undefined method 'wait_readable' for TCPSocket

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

I cloned the bridge-cli repo and ran nix flake update nixpkgs && nix build ., but the build died inside the vendored Crystal ssh2 library: undefined method wait_readable for TCPSocket. I dont know Crystal so I couldnt debug further, and I wasnt sure whether to file it upstream. The maintainer confirmed its a known issue with Crystal 1.15. The thread closed April 2025.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

The nix build broke because the flake pulled Crystal 1.15, which removed something the old vendored ssh2 code relied on, hence the undefined method wait_readable for TCPSocket. The maintainer said locking the flake to Crystal below 1.14 was the real fix but never got around to it, since theyre rebuilding the tool in Go as v4. The verified workaround from the thread is to skip nix entirely and use the prebuilt binaries from the bridge-cli releases page, which the reporter confirmed and closed the issue over. Source: https://github.com/CrunchyData/bridge-cli/issues/181

Source: https://github.com/CrunchyData/bridge-cli/issues/181