Skip to content

Add Path as possible argument type to UNIXSocket and UNIXServer#15260

Merged
straight-shoota merged 5 commits intocrystal-lang:masterfrom
BigBoyBarney:UNIXSocket_path
Jan 13, 2025
Merged

Add Path as possible argument type to UNIXSocket and UNIXServer#15260
straight-shoota merged 5 commits intocrystal-lang:masterfrom
BigBoyBarney:UNIXSocket_path

Conversation

@BigBoyBarney
Copy link
Contributor

@BigBoyBarney BigBoyBarney commented Dec 9, 2024

As outlined in #15259, UNIXSocket, UNIXServer and UNIXAddress should accept Path | String, like File does.

I based the implementation off that in File.

I couldn't run the specs due to some obscure error though, but for FWIW that fails for me on 1.15-dev and 1.14.0 without these changes as well 🤷
image

Resolves #15259

@BigBoyBarney BigBoyBarney marked this pull request as draft December 9, 2024 16:41
@BigBoyBarney BigBoyBarney marked this pull request as ready for review December 9, 2024 17:09
@straight-shoota
Copy link
Member

The linker error might be due to #13193
Installing ldd should help.

@BigBoyBarney
Copy link
Contributor Author

BigBoyBarney commented Dec 9, 2024

Yep, can confirm installing ldd solved it! Thanks!

@straight-shoota straight-shoota added this to the 1.16.0 milestone Jan 6, 2025
@straight-shoota straight-shoota merged commit dbdf548 into crystal-lang:master Jan 13, 2025
@straight-shoota straight-shoota changed the title Added Path as possible argument type to UNIXSocket and UNIXServer Added Path as possible argument type to UNIXSocket and UNIXServer Mar 25, 2025
@straight-shoota straight-shoota changed the title Added Path as possible argument type to UNIXSocket and UNIXServer Add Path as possible argument type to UNIXSocket and UNIXServer Mar 25, 2025
@BigBoyBarney BigBoyBarney deleted the UNIXSocket_path branch July 29, 2025 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UNIXSocket.new should accept Path in addition to String

4 participants