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

stack2nix doesn't work well with submodules

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

Description

It seems that stack2nix first tries to clone the master branch for the given repo. This interacts poorly with submodules as they are initialised to the remote on `master` rather than the given revision.

If the commit you want to use contains submodules which point to a different remote then running `stack2nix` fails as it can't find the reference.

The way I "fixed" this was to push my branch to the master branch as well but obviously this is not possible in general.

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.