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

Fix "module defined in multiple files" with eval commands #214

Test "module defined in multiple files" with eval commands

ddeddbe
Select commit
Loading
Failed to load commit list.
Merged

Fix "module defined in multiple files" with eval commands #214

Test "module defined in multiple files" with eval commands
ddeddbe
Select commit
Loading
Failed to load commit list.
Garnix CI / check haskell-project-for-integration-tests [aarch64-darwin] succeeded Apr 11, 2024 in 8s

Run results

Build succeeded

Details

Last 100 lines of logs:

[2 of 4] Compiling MyModule         ( src/MyModule.hs, interpreted )
[3 of 4] Compiling Paths_my_simple_package ( /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.4.8/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/autogen/Paths_my_simple_package.hs, interpreted )
[4 of 4] Compiling TestMain         ( test/TestMain.hs, interpreted )
Ok, four modules loaded.
ghci> Leaving GHCi.
cabal  --with-compiler=ghc-9.6.3  --ghc-options='-fwrite-interface ' build lib:test-dev
Warning: No remote package servers have been specified. Usually you would have
one specified in the config file.
Resolving dependencies...
Build profile: -w ghc-9.6.3 -O1
In order, the following will be built (use -v for more details):
 - my-simple-package-0.1.0.0 (lib:test-dev) (first run)
Configuring library 'test-dev' for my-simple-package-0.1.0.0..
Preprocessing library 'test-dev' for my-simple-package-0.1.0.0..
Building library 'test-dev' for my-simple-package-0.1.0.0..
[1 of 4] Compiling MyLib            ( src/MyLib.hs, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.3/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/MyLib.o, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.3/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/MyLib.dyn_o )
[2 of 4] Compiling MyModule         ( src/MyModule.hs, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.3/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/MyModule.o, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.3/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/MyModule.dyn_o )
[3 of 4] Compiling Paths_my_simple_package ( /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.3/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/autogen/Paths_my_simple_package.hs, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.3/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/Paths_my_simple_package.o, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.3/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/Paths_my_simple_package.dyn_o )
[4 of 4] Compiling TestMain         ( test/TestMain.hs, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.3/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/TestMain.o, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.3/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/TestMain.dyn_o )
cabal  --with-compiler=ghc-9.6.3  test
Build profile: -w ghc-9.6.3 -O1
In order, the following will be built (use -v for more details):
 - my-simple-package-0.1.0.0 (lib:test-dev) (configuration changed)
 - my-simple-package-0.1.0.0 (test:test) (first run)
Configuring library 'test-dev' for my-simple-package-0.1.0.0..
Preprocessing library 'test-dev' for my-simple-package-0.1.0.0..
Building library 'test-dev' for my-simple-package-0.1.0.0..
Configuring test suite 'test' for my-simple-package-0.1.0.0..
Preprocessing test suite 'test' for my-simple-package-0.1.0.0..
Building test suite 'test' for my-simple-package-0.1.0.0..
[1 of 2] Compiling Main             ( test-main/Main.hs, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.3/my-simple-package-0.1.0.0/t/test/build/test/test-tmp/Main.o )
[2 of 2] Compiling Paths_my_simple_package ( /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.3/my-simple-package-0.1.0.0/t/test/build/test/autogen/Paths_my_simple_package.hs, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.3/my-simple-package-0.1.0.0/t/test/build/test/test-tmp/Paths_my_simple_package.o )
[3 of 3] Linking /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.3/my-simple-package-0.1.0.0/t/test/build/test/test
Running 1 test suites...
Test suite test: RUNNING...
Test suite test: PASS
Test suite logged to:
/private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.3/my-simple-package-0.1.0.0/t/test/test/my-simple-package-0.1.0.0-test.log
1 of 1 test suites (1 of 1 test cases) passed.
echo ":quit" | cabal  --with-compiler=ghc-9.6.3  --repl-options='-fwrite-interface  -hisuf ghci_hi' v2-repl lib:test-dev
Build profile: -w ghc-9.6.3 -O1
In order, the following will be built (use -v for more details):
 - my-simple-package-0.1.0.0 (lib:test-dev) (ephemeral targets)
Preprocessing library 'test-dev' for my-simple-package-0.1.0.0..
GHCi, version 9.6.3: https://www.haskell.org/ghc/  :? for help
[1 of 4] Compiling MyLib            ( src/MyLib.hs, interpreted )
[2 of 4] Compiling MyModule         ( src/MyModule.hs, interpreted )
[3 of 4] Compiling Paths_my_simple_package ( /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.6.3/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/autogen/Paths_my_simple_package.hs, interpreted )
[4 of 4] Compiling TestMain         ( test/TestMain.hs, interpreted )
Ok, four modules loaded.
ghci> Leaving GHCi.
cabal  --with-compiler=ghc-9.8.1  --ghc-options='-fwrite-interface ' build lib:test-dev
Warning: No remote package servers have been specified. Usually you would have
one specified in the config file.
Resolving dependencies...
Build profile: -w ghc-9.8.1 -O1
In order, the following will be built (use -v for more details):
 - my-simple-package-0.1.0.0 (lib:test-dev) (first run)
Configuring library 'test-dev' for my-simple-package-0.1.0.0..
Preprocessing library 'test-dev' for my-simple-package-0.1.0.0..
Building library 'test-dev' for my-simple-package-0.1.0.0..
[1 of 4] Compiling MyLib            ( src/MyLib.hs, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.1/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/MyLib.o, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.1/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/MyLib.dyn_o )
[2 of 4] Compiling MyModule         ( src/MyModule.hs, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.1/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/MyModule.o, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.1/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/MyModule.dyn_o )
[3 of 4] Compiling Paths_my_simple_package ( /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.1/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/autogen/Paths_my_simple_package.hs, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.1/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/Paths_my_simple_package.o, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.1/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/Paths_my_simple_package.dyn_o )
[4 of 4] Compiling TestMain         ( test/TestMain.hs, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.1/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/TestMain.o, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.1/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/TestMain.dyn_o )
cabal  --with-compiler=ghc-9.8.1  test
Build profile: -w ghc-9.8.1 -O1
In order, the following will be built (use -v for more details):
 - my-simple-package-0.1.0.0 (lib:test-dev) (configuration changed)
 - my-simple-package-0.1.0.0 (test:test) (first run)
Configuring library 'test-dev' for my-simple-package-0.1.0.0..
Preprocessing library 'test-dev' for my-simple-package-0.1.0.0..
Building library 'test-dev' for my-simple-package-0.1.0.0..
Configuring test suite 'test' for my-simple-package-0.1.0.0..
Preprocessing test suite 'test' for my-simple-package-0.1.0.0..
Building test suite 'test' for my-simple-package-0.1.0.0..
[1 of 2] Compiling Main             ( test-main/Main.hs, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.1/my-simple-package-0.1.0.0/t/test/build/test/test-tmp/Main.o )
[2 of 2] Compiling Paths_my_simple_package ( /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.1/my-simple-package-0.1.0.0/t/test/build/test/autogen/Paths_my_simple_package.hs, /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.1/my-simple-package-0.1.0.0/t/test/build/test/test-tmp/Paths_my_simple_package.o )
[3 of 3] Linking /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.1/my-simple-package-0.1.0.0/t/test/build/test/test
Running 1 test suites...
Test suite test: RUNNING...
Test suite test: PASS
Test suite logged to:
/private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.1/my-simple-package-0.1.0.0/t/test/test/my-simple-package-0.1.0.0-test.log
1 of 1 test suites (1 of 1 test cases) passed.
echo ":quit" | cabal  --with-compiler=ghc-9.8.1  --repl-options='-fwrite-interface  -hisuf ghci_hi' v2-repl lib:test-dev
Build profile: -w ghc-9.8.1 -O1
In order, the following will be built (use -v for more details):
 - my-simple-package-0.1.0.0 (lib:test-dev) (ephemeral targets)
Preprocessing library 'test-dev' for my-simple-package-0.1.0.0..
GHCi, version 9.8.1: https://www.haskell.org/ghc/  :? for help
[1 of 4] Compiling MyLib            ( src/MyLib.hs, interpreted )
[2 of 4] Compiling MyModule         ( src/MyModule.hs, interpreted )
[3 of 4] Compiling Paths_my_simple_package ( /private/tmp/nix-build-haskell-project-for-integration-tests.drv-0/simple/dist-newstyle/build/aarch64-osx/ghc-9.8.1/my-simple-package-0.1.0.0/l/test-dev/build/test-dev/autogen/Paths_my_simple_package.hs, interpreted )
[4 of 4] Compiling TestMain         ( test/TestMain.hs, interpreted )
Ok, four modules loaded.
ghci> Leaving GHCi.
buildPhase completed in 1 minutes 23 seconds
@nix {"action":"setPhase","phase":"installPhase"}
Running phase: installPhase