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

can't install on docker + nix-2.3 (nixos-19.09) #439

Closed
tim2CF opened this issue Feb 15, 2020 · 6 comments · Fixed by #471
Closed

can't install on docker + nix-2.3 (nixos-19.09) #439

tim2CF opened this issue Feb 15, 2020 · 6 comments · Fixed by #471
Assignees

Comments

@tim2CF
Copy link

tim2CF commented Feb 15, 2020

Steps to reproduce:

   #!/bin/sh

   docker run -it --rm \
     -v "nix:/nix" \
     nixos/nix:2.3 sh -c "
     nix-channel --add https://nixos.org/channels/nixos-19.09 nixpkgs &&
     nix-channel --update &&
     nix-env -iA nixpkgs.haskellPackages.network_3_1_0_1 &&
     sh
     "

causes error

Failures:

  tests/Network/SocketSpec.hs:43:9:
  1) Network.Socket.bind successfully binds to an ipv6 socket
       uncaught exception: IOException of type UnsupportedOperation
       Network.Socket.bind: unsupported operation (Cannot assign requested address)

  To rerun use: --match "/Network.Socket/bind/successfully binds to an ipv6 socket/"

Randomized with seed 1342511728

Finished in 0.2589 seconds
48 examples, 1 failure
Test suite spec: FAIL

the same error for latest release v3.1.1.1

@kazu-yamamoto
Copy link
Collaborator

@tim2CF Does your system support IPv6?

@tim2CF
Copy link
Author

tim2CF commented Mar 16, 2020

Docker supports IPv6 only if your host system is Linux.
I'm running docker on Mac, and have this issue. I assume Windows users have it as well.
Is IPv6 so required feature to use this library? Because previous versions of it worked just fine.
IPv6 support for Mac/Windows was reported multiple times, but docker team just ignoring it. Many developers need to use docker nowdays because of different reasons, it's necessary evil :(

@kazu-yamamoto
Copy link
Collaborator

OK. I will think how we can improve this test case.

@tim2CF
Copy link
Author

tim2CF commented Mar 17, 2020

thanks!

@kazu-yamamoto
Copy link
Collaborator

@eborden @Mistuke I cannot find any ways to detect IPv6-capability of a host or to check if "::1" is assigned to any network interface. Do you know any?

If we all don't know, I would like to propose simply disabling this test item.

@Mistuke
Copy link
Collaborator

Mistuke commented Mar 17, 2020

@eborden @Mistuke I cannot find any ways to detect IPv6-capability of a host or to check if "::1" is assigned to any network interface. Do you know any?

If we all don't know, I would like to propose simply disabling this test item.

On Windows the WSCEnumProtocol API can be used to detect if the host has support for a particular protocol.

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

Successfully merging a pull request may close this issue.

3 participants