Skip to content

stackProject git deps fail when rev is not in default branch #592

Closed
@roberth

Description

@roberth

Nix builtins.fetchGit only fetches the default branch if no branch is specified.
We don't have the branch name (let alone ref) in stack.yaml so we either need to do another comment hack similar to # nix-sha256 or we need to make Nix fall back to fetching all refs. The latter may be acceptable only if it logs a warning so the user can fix it.

Discussion about fetchGit's ref: NixOS/nix#2431

Example of the error: hercules-ci/haskell-language-server.nix#2 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions