tweag / rules_haskell

Haskell rules for Bazel.
https://haskell.build
Apache License 2.0
265 stars 79 forks source link

nix: test-binary-simple does not build, ghc-with-packages fails #340

Closed Profpatsch closed 6 years ago

Profpatsch commented 6 years ago

I set NIX_PATH to the empty string, so the provided nixpkgs_git_repository should be used if I read the code correctly. I’m not sure where the magic repository = "@nixpkgs" is resolved, though.

$ env NIX_PATH= bazel build //tests:test-binary-simple --verbose_failures
these derivations will be built:
  /nix/store/lh944ba5x97w83lf6w1c64hm5rhgchhd-proto-lens-0.3.1.0.drv
  /nix/store/0n99dz505jpzk3i7z4cirkni5nvbbq9w-ghc-8.2.2-with-packages.drv
building '/nix/store/lh944ba5x97w83lf6w1c64hm5rhgchhd-proto-lens-0.3.1.0.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/i2d6l6w99qlwhz6gbz4hxl4d9238drfj-ghc-8.2.2.
ignoring (possibly broken) abi-depends field for packages
ignoring (possibly broken) abi-depends field for packages
unpacking sources
unpacking source archive /nix/store/85w6agkmzy6cy606h2bs42ry7azczn2m-proto-lens-0.3.1.0.tar.gz
source root is proto-lens-0.3.1.0
setting SOURCE_DATE_EPOCH to timestamp 1525626655 of file proto-lens-0.3.1.0/src/Data/ProtoLens/TextFormat.hs
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/build/setup-package.conf.d -j1 -threaded
[1 of 1] Compiling Main             ( Setup.hs, /build/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose --prefix=/nix/store/ynvnf2ssz6w58qz7a0mc67njxyyi41gk-proto-lens-0.3.1.0 --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --datadir=/nix/store/rlqj3adasj7n5cbmh5rbnymqp2mv3j1j-proto-lens-0.3.1.0-data/share/ghc-8.2.2 --docdir=/nix/store/3985fh4xk6pv9s7wlm9ddhycsa2yfksg-proto-lens-0.3.1.0-doc/share/doc/proto-lens-0.3.1.0 --with-gcc=gcc --package-db=/build/package.conf.d --ghc-option=-j1 --disable-split-objs --enable-library-profiling --profiling-detail=all-functions --disable-profiling --enable-shared --disable-coverage --disable-executable-dynamic --enable-tests --enable-library-vanilla --enable-library-for-ghci --ghc-option=-split-sections --extra-lib-dirs=/nix/store/q8rg4mca5zqv98arpxd7164pqa72hf1n-ncurses-6.1/lib --extra-lib-dirs=/nix/store/hhzvw77vrmn5f506kfyb1yh1sdinkbwf-gmp-6.1.2/lib
Configuring proto-lens-0.3.1.0...
Dependency attoparsec ==0.13.*: using attoparsec-0.13.2.2
Dependency base >=4.8 && <4.12: using base-4.10.1.0
Dependency bytestring ==0.10.*: using bytestring-0.10.8.2
Dependency containers ==0.5.*: using containers-0.5.10.2
Dependency data-default-class >=0.0 && <0.2: using data-default-class-0.1.2.0
Dependency deepseq ==1.4.*: using deepseq-1.4.3.0
Dependency lens-family ==1.2.*: using lens-family-1.2.2
Dependency lens-labels ==0.2.*: using lens-labels-0.2.0.1
Dependency parsec ==3.1.*: using parsec-3.1.13.0
Dependency pretty ==1.1.*: using pretty-1.1.3.3
Dependency text ==1.2.*: using text-1.2.3.0
Dependency transformers >=0.4 && <0.6: using transformers-0.5.2.0
Dependency void ==0.7.*: using void-0.7.2
Source component graph: component lib
Configured component graph:
    component proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi
        include attoparsec-0.13.2.2-7kmMR47g8N09iFLQxMAYgU
        include base-4.10.1.0
        include bytestring-0.10.8.2
        include containers-0.5.10.2
        include data-default-class-0.1.2.0-8hmGYd6GPAfLQPQcWKOjRm
        include deepseq-1.4.3.0
        include lens-family-1.2.2-J7SkuObztkyGbsAmeDsUz1
        include lens-labels-0.2.0.1-5Xh0kiMsJlaIFJX5XkmzKf
        include parsec-3.1.13.0-4XorLafDbv7ElwGjUWzPsh
        include pretty-1.1.3.3
        include text-1.2.3.0-GmbS1eycnDHLhZQQeWF5x
        include transformers-0.5.2.0
        include void-0.7.2-BaCvWtelk6X2yBHg8R7RQm
Linked component graph:
    unit proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi
        include attoparsec-0.13.2.2-7kmMR47g8N09iFLQxMAYgU
        include base-4.10.1.0
        include bytestring-0.10.8.2
        include containers-0.5.10.2
        include data-default-class-0.1.2.0-8hmGYd6GPAfLQPQcWKOjRm
        include deepseq-1.4.3.0
        include lens-family-1.2.2-J7SkuObztkyGbsAmeDsUz1
        include lens-labels-0.2.0.1-5Xh0kiMsJlaIFJX5XkmzKf
        include parsec-3.1.13.0-4XorLafDbv7ElwGjUWzPsh
        include pretty-1.1.3.3
        include text-1.2.3.0-GmbS1eycnDHLhZQQeWF5x
        include transformers-0.5.2.0
        include void-0.7.2-BaCvWtelk6X2yBHg8R7RQm
        Data.ProtoLens=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Data.ProtoLens,Data.ProtoLens.Encoding=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Data.ProtoLens.Encoding,Data.ProtoLens.Encoding.Wire=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Data.ProtoLens.Encoding.Wire,Data.ProtoLens.Message=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Data.ProtoLens.Message,Data.ProtoLens.Message.Enum=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Data.ProtoLens.Message.Enum,Data.ProtoLens.Service.Types=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Data.ProtoLens.Service.Types,Data.ProtoLens.TextFormat=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Data.ProtoLens.TextFormat,Proto.Google.Protobuf.Compiler.Plugin=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Proto.Google.Protobuf.Compiler.Plugin,Proto.Google.Protobuf.Compiler.Plugin_Fields=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Proto.Google.Protobuf.Compiler.Plugin_Fields,Proto.Google.Protobuf.Descriptor=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Proto.Google.Protobuf.Descriptor,Proto.Google.Protobuf.Descriptor_Fields=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Proto.Google.Protobuf.Descriptor_Fields
Ready component graph:
    definite proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi
        depends attoparsec-0.13.2.2-7kmMR47g8N09iFLQxMAYgU
        depends base-4.10.1.0
        depends bytestring-0.10.8.2
        depends containers-0.5.10.2
        depends data-default-class-0.1.2.0-8hmGYd6GPAfLQPQcWKOjRm
        depends deepseq-1.4.3.0
        depends lens-family-1.2.2-J7SkuObztkyGbsAmeDsUz1
        depends lens-labels-0.2.0.1-5Xh0kiMsJlaIFJX5XkmzKf
        depends parsec-3.1.13.0-4XorLafDbv7ElwGjUWzPsh
        depends pretty-1.1.3.3
        depends text-1.2.3.0-GmbS1eycnDHLhZQQeWF5x
        depends transformers-0.5.2.0
        depends void-0.7.2-BaCvWtelk6X2yBHg8R7RQm
CallStack (from HasCallStack):
  dieNoWrap, called at libraries/Cabal/Cabal/Distribution/Utils/LogProgress.hs:61:9 in Cabal-2.0.1.0:Distribution.Utils.LogProgress
Error:
    The following packages are broken because other packages they depend on are missing. These broken packages must be rebuilt before they can be used.
installed package lens-labels-0.2.0.1 is broken due to missing package profunctors-5.2.2-HzcVdviprlKb7Ap1woZu4, tagged-0.8.5-HviTdonkllN1ZD6he1Zn8I
builder for '/nix/store/lh944ba5x97w83lf6w1c64hm5rhgchhd-proto-lens-0.3.1.0.drv' failed with exit code 1
cannot build derivation '/nix/store/0n99dz505jpzk3i7z4cirkni5nvbbq9w-ghc-8.2.2-with-packages.drv': 1 dependencies couldn't be built
error: build of '/nix/store/0n99dz505jpzk3i7z4cirkni5nvbbq9w-ghc-8.2.2-with-packages.drv' failed
ERROR: /home/philip/code/bazel/rules_haskell/tests/BUILD:13:1: no such package '@ghc//': Cannot build Nix attribute ghc. and referenced by '//tests:ghc-impl'
ERROR: Analysis of target '//tests:test-binary-simple' failed; build aborted: no such package '@ghc//': Cannot build Nix attribute ghc.
INFO: Elapsed time: 8.624s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (3 packages loaded)
Profpatsch commented 6 years ago

Update: first tried with bazel 0.13, then 0.15.1, both throw the same error.

Profpatsch commented 6 years ago

Turns out that happens when you are not in a nix-shell shell.nix that is exactly in sync with the nixpkgs in WORKSPACE and nixpkgs.nix (I used nix-shell -p bazel). Something seems to escape from the bazel nixpkgs_package rule that makes this necessary.

It would be interesting to know if something similar also happens for other users of rules_nixpkgs. Should I open a bug report in rules_nixpkgs?

I think we can close this as wontfix/upstream bug.

mboes commented 6 years ago

Turns out that happens when you are not in a nix-shell shell.nix that is exactly in sync with the nixpkgs in WORKSPACE and nixpkgs.nix

I don't understand what this means. shell.nix imports nixpkgs.nix. What commands are you typing?

Profpatsch commented 6 years ago

I went one step further and created a new system user with a clean home directory:

philip@katara ~> command su - tmp
Password: 
# ls ~
nixpkgs  rules_haskell
# cd nixpkgs
# git checkout $(curl -L https://nixos.org/channels/nixos-unstable/git-revision)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   282  100   282    0     0   1287      0 --:--:-- --:--:-- --:--:--  1293
100    40  100    40    0     0    104      0 --:--:-- --:--:-- --:--:--   104
HEAD is now at dae9cf6106d dnscrypt-proxy2: init at 2.0.15
# export NIX_PATH=nixpkgs=/home/tmp/nixpkgs
# cd ~/rules_haskell/
# echo $NIX_PATH
nixpkgs=/home/tmp/nixpkgs

# git checkout master
Previous HEAD position was d0d6c91 Merge pull request #304 from tweag/link-hs-cc-toolchains
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
# bazel test //tests:test-binary-simple
bazel: command not found
# nix-shell

[nix-shell:~/rules_haskell]$ bazel clean
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.

[nix-shell:~/rules_haskell]$ bazel test //tests:test-binary-simple
INFO: SHA256 (https://github.com/tweag/rules_nixpkgs/archive/v0.2.3.tar.gz) = 2647bc9d5476fba95d9b4cc300be1ba9ad353e4e33bee01e041886aa4f4b554a
INFO: Build options have changed, discarding analysis cache.
INFO: SHA256 (https://github.com/mboes/nixpkgs/archive/8d5f06cbeedcfb4a88c111754baf2d7e315e74de.tar.gz) = b0c12c73dad304a56ebadb42b1f90599e6e089ef71bb6c369f982c2444afa4e1
/nix/store/m53mq2077pfxhqf37gdbj7fkkdc1c8hc-glibc-locales-2.27
/nix/store/n0lqmhgszln2f6k207zqzc9rn2jfg5g6-c2hs-0.28.5
these derivations will be built:
  /nix/store/lh944ba5x97w83lf6w1c64hm5rhgchhd-proto-lens-0.3.1.0.drv
  /nix/store/0n99dz505jpzk3i7z4cirkni5nvbbq9w-ghc-8.2.2-with-packages.drv
building '/nix/store/lh944ba5x97w83lf6w1c64hm5rhgchhd-proto-lens-0.3.1.0.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/i2d6l6w99qlwhz6gbz4hxl4d9238drfj-ghc-8.2.2.
ignoring (possibly broken) abi-depends field for packages
ignoring (possibly broken) abi-depends field for packages
unpacking sources
unpacking source archive /nix/store/85w6agkmzy6cy606h2bs42ry7azczn2m-proto-lens-0.3.1.0.tar.gz
source root is proto-lens-0.3.1.0
setting SOURCE_DATE_EPOCH to timestamp 1525626655 of file proto-lens-0.3.1.0/src/Data/ProtoLens/TextFormat.hs
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/tmp/nix-build-proto-lens-0.3.1.0.drv-0/setup-package.conf.d -j1 -threaded
[1 of 1] Compiling Main             ( Setup.hs, /tmp/nix-build-proto-lens-0.3.1.0.drv-0/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose --prefix=/nix/store/ynvnf2ssz6w58qz7a0mc67njxyyi41gk-proto-lens-0.3.1.0 --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --datadir=/nix/store/rlqj3adasj7n5cbmh5rbnymqp2mv3j1j-proto-lens-0.3.1.0-data/share/ghc-8.2.2 --docdir=/nix/store/3985fh4xk6pv9s7wlm9ddhycsa2yfksg-proto-lens-0.3.1.0-doc/share/doc/proto-lens-0.3.1.0 --with-gcc=gcc --package-db=/tmp/nix-build-proto-lens-0.3.1.0.drv-0/package.conf.d --ghc-option=-j1 --disable-split-objs --enable-library-profiling --profiling-detail=all-functions --disable-profiling --enable-shared --disable-coverage --disable-executable-dynamic --enable-tests --enable-library-vanilla --enable-library-for-ghci --ghc-option=-split-sections --extra-lib-dirs=/nix/store/q8rg4mca5zqv98arpxd7164pqa72hf1n-ncurses-6.1/lib --extra-lib-dirs=/nix/store/hhzvw77vrmn5f506kfyb1yh1sdinkbwf-gmp-6.1.2/lib
Configuring proto-lens-0.3.1.0...
Dependency attoparsec ==0.13.*: using attoparsec-0.13.2.2
Dependency base >=4.8 && <4.12: using base-4.10.1.0
Dependency bytestring ==0.10.*: using bytestring-0.10.8.2
Dependency containers ==0.5.*: using containers-0.5.10.2
Dependency data-default-class >=0.0 && <0.2: using data-default-class-0.1.2.0
Dependency deepseq ==1.4.*: using deepseq-1.4.3.0
Dependency lens-family ==1.2.*: using lens-family-1.2.2
Dependency lens-labels ==0.2.*: using lens-labels-0.2.0.1
Dependency parsec ==3.1.*: using parsec-3.1.13.0
Dependency pretty ==1.1.*: using pretty-1.1.3.3
Dependency text ==1.2.*: using text-1.2.3.0
Dependency transformers >=0.4 && <0.6: using transformers-0.5.2.0
Dependency void ==0.7.*: using void-0.7.2
Source component graph: component lib
Configured component graph:
    component proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi
        include attoparsec-0.13.2.2-7kmMR47g8N09iFLQxMAYgU
        include base-4.10.1.0
        include bytestring-0.10.8.2
        include containers-0.5.10.2
        include data-default-class-0.1.2.0-8hmGYd6GPAfLQPQcWKOjRm
        include deepseq-1.4.3.0
        include lens-family-1.2.2-J7SkuObztkyGbsAmeDsUz1
        include lens-labels-0.2.0.1-5Xh0kiMsJlaIFJX5XkmzKf
        include parsec-3.1.13.0-4XorLafDbv7ElwGjUWzPsh
        include pretty-1.1.3.3
        include text-1.2.3.0-GmbS1eycnDHLhZQQeWF5x
        include transformers-0.5.2.0
        include void-0.7.2-BaCvWtelk6X2yBHg8R7RQm
Linked component graph:
    unit proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi
        include attoparsec-0.13.2.2-7kmMR47g8N09iFLQxMAYgU
        include base-4.10.1.0
        include bytestring-0.10.8.2
        include containers-0.5.10.2
        include data-default-class-0.1.2.0-8hmGYd6GPAfLQPQcWKOjRm
        include deepseq-1.4.3.0
        include lens-family-1.2.2-J7SkuObztkyGbsAmeDsUz1
        include lens-labels-0.2.0.1-5Xh0kiMsJlaIFJX5XkmzKf
        include parsec-3.1.13.0-4XorLafDbv7ElwGjUWzPsh
        include pretty-1.1.3.3
        include text-1.2.3.0-GmbS1eycnDHLhZQQeWF5x
        include transformers-0.5.2.0
        include void-0.7.2-BaCvWtelk6X2yBHg8R7RQm
        Data.ProtoLens=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Data.ProtoLens,Data.ProtoLens.Encoding=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Data.ProtoLens.Encoding,Data.ProtoLens.Encoding.Wire=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Data.ProtoLens.Encoding.Wire,Data.ProtoLens.Message=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Data.ProtoLens.Message,Data.ProtoLens.Message.Enum=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Data.ProtoLens.Message.Enum,Data.ProtoLens.Service.Types=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Data.ProtoLens.Service.Types,Data.ProtoLens.TextFormat=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Data.ProtoLens.TextFormat,Proto.Google.Protobuf.Compiler.Plugin=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Proto.Google.Protobuf.Compiler.Plugin,Proto.Google.Protobuf.Compiler.Plugin_Fields=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Proto.Google.Protobuf.Compiler.Plugin_Fields,Proto.Google.Protobuf.Descriptor=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Proto.Google.Protobuf.Descriptor,Proto.Google.Protobuf.Descriptor_Fields=proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi:Proto.Google.Protobuf.Descriptor_Fields
Ready component graph:
    definite proto-lens-0.3.1.0-8rVZioVDdiHJkVK0Ot4cpi
        depends attoparsec-0.13.2.2-7kmMR47g8N09iFLQxMAYgU
        depends base-4.10.1.0
        depends bytestring-0.10.8.2
        depends containers-0.5.10.2
        depends data-default-class-0.1.2.0-8hmGYd6GPAfLQPQcWKOjRm
        depends deepseq-1.4.3.0
        depends lens-family-1.2.2-J7SkuObztkyGbsAmeDsUz1
        depends lens-labels-0.2.0.1-5Xh0kiMsJlaIFJX5XkmzKf
        depends parsec-3.1.13.0-4XorLafDbv7ElwGjUWzPsh
        depends pretty-1.1.3.3
        depends text-1.2.3.0-GmbS1eycnDHLhZQQeWF5x
        depends transformers-0.5.2.0
        depends void-0.7.2-BaCvWtelk6X2yBHg8R7RQm
CallStack (from HasCallStack):
  dieNoWrap, called at libraries/Cabal/Cabal/Distribution/Utils/LogProgress.hs:61:9 in Cabal-2.0.1.0:Distribution.Utils.LogProgress
Error:
    The following packages are broken because other packages they depend on are missing. These broken packages must be rebuilt before they can be used.
installed package lens-labels-0.2.0.1 is broken due to missing package profunctors-5.2.2-HzcVdviprlKb7Ap1woZu4, tagged-0.8.5-HviTdonkllN1ZD6he1Zn8I
builder for '/nix/store/lh944ba5x97w83lf6w1c64hm5rhgchhd-proto-lens-0.3.1.0.drv' failed with exit code 1
cannot build derivation '/nix/store/0n99dz505jpzk3i7z4cirkni5nvbbq9w-ghc-8.2.2-with-packages.drv': 1 dependencies couldn't be built
error: build of '/nix/store/0n99dz505jpzk3i7z4cirkni5nvbbq9w-ghc-8.2.2-with-packages.drv' failed
ERROR: /home/tmp/rules_haskell/tests/BUILD:13:1: no such package '@ghc//': Cannot build Nix attribute ghc. and referenced by '//tests:ghc-impl'
ERROR: Analysis of target '//tests:test-binary-simple' failed; build aborted: no such package '@ghc//': Cannot build Nix attribute ghc.
INFO: Elapsed time: 28.190s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (14 packages loaded)
FAILED: Build did NOT complete successfully (14 packages loaded)

And then:

[nix-shell:~/rules_haskell]$ git checkout master~10
Note: checking out 'master~10'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at fc73da2 Make nix-shell pure on Linux.

[nix-shell:~/rules_haskell]$ bazel clean
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.

[nix-shell:~/rules_haskell]$ bazel test //tests:test-binary-simple
INFO: SHA256 (https://github.com/tweag/rules_nixpkgs/archive/v0.2.2.tar.gz) = 758de18ca2fe701a9ccbde7c945f79680c29fdd8c2a0856e1f698bcc84310a51
INFO: Build options have changed, discarding analysis cache.
INFO: SHA256 (https://github.com/NixOS/nixpkgs/archive/7c3dc2f53fc837be79426f11c9133f73d15a05c4.tar.gz) = 315c5fcd3dc1694526c2403e45aff39f8d719b3cc13b0d29044798815f1d96d8
/nix/store/mwd82aiaxds67ahqas3saq11vdv5fvb2-c2hs-0.26.2-28-g8b79823
/nix/store/cb26jkw1k16k04sdzbqvf8pmpcfw78lz-ghc-8.2.2-with-packages
INFO: Analysed target //tests:test-binary-simple (14 packages loaded).
INFO: Found 1 test target...
Target //tests:test-binary-simple up-to-date:
  bazel-bin/tests/test-binary-simple
INFO: Elapsed time: 20.719s, Critical Path: 0.07s
INFO: 1 process: 1 processwrapper-sandbox.
INFO: Build completed successfully, 6 total actions
//tests:test-binary-simple                                               PASSED in 0.1s

INFO: Build completed successfully, 6 total actions

It shows the first error on master~9. So this commit seems to introduce the regression: https://github.com/tweag/rules_haskell/commit/d0d6c91e90201ab5082f9df799e0e23b84592cce