Skip to content

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

Description

@tim2CF

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

Activity

  1. kazu-yamamoto commented on Mar 16, 2020

    @kazu-yamamoto
    Collaborator

    @tim2CF Does your system support IPv6?

  2. tim2CF commented on Mar 16, 2020

    @tim2CF
    Author

    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 :(

  3. kazu-yamamoto commented on Mar 16, 2020

    @kazu-yamamoto
    Collaborator

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

  4. tim2CF commented on Mar 17, 2020

    @tim2CF
    Author

    thanks!

  5. kazu-yamamoto commented on Mar 17, 2020

    @kazu-yamamoto
    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.

  6. Mistuke commented on Mar 17, 2020

    @Mistuke
    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.

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

  7. self-assigned this
    on Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions