input-output-hk / input-output-hk/stack2nix

Running stack2nix on a folder without stack.yaml results into obscure error

Open
#43 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Nix
Stars
100
Forks
28
PR merge metrics
No merged PRs in 30d

Description

```
$ ~/.local/bin/stack2nix . > foo.nix
Ensuring cabal2nix version is >= 2.2.1 ...
Ensuring git version is >= 2 ...
Ensuring cabal version is >= 1 ...
stack2nix: Failed with exit code 128...
"fatal: repository '.' does not exist\n"
```

The issue is that `stack init` is called to late, stack2nix figures out that stack.yaml doesn't exist and fallbacks to git cloning.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.