haskell.nix
haskell.nix copied to clipboard
Delete `flake.lock` in `docs` to better catch issues in tests?!
I should also maybe remove https://github.com/input-output-hk/haskell.nix/blob/better-docs-testing/docs/tutorials/getting-started/nix/sources.json and rather run niv commands in tests?
Ugh, this is a bit annoying. It's a shame we can't use the same pins as the top level flake or something. Not pinning means that this is a bit non-deterministic, which is kind of scary.
symlink?
symlink?
error: opening file '/nix/store/nhx8bikk1rakvmc2kbgjnpm8090rz0kj-source/docs/tutorials/getting-started-flakes/flake.lock': Too many levels of symbolic links
(use '--show-trace' to show detailed location information)
If symlink does not work could we copy the flake.lock in the daily hackage.nix and stackage.nix update job?
Is the flake.lock in haskell.nix suitable though? Maybe not.
Could we remove docs/tutorials/getting-started-flakes/flake.lock and before running the tests run:
nix flake lock --override-input haskellNix ../../..
Could we remove
docs/tutorials/getting-started-flakes/flake.lockand before running the tests run:nix flake lock --override-input haskellNix ../../..
I think that's the right solution, I will push it on this branch :)
Merged in https://github.com/input-output-hk/haskell.nix/pull/1746