Skip to content

stack-to-nix: Cache entry prevents generation of missing file #57

Open
@rvl

Description

@rvl

There is a usability problem/bug with the stack-to-nix cache file.

Firstly, users don't understand what it is, and assume that this file is the real product of stack-to-nix (e.g. cardano-foundation/cardano-wallet@17485e1).

Secondly, after running stack-to-nix and then git commit -a -m "regenerate stuff", there may have been new .stack.nix/*.nix files that are not checked in to git and then lost.

Thirdly, after the .nix file is lost, but .stack-to-nix.cache is updated with an entry, the necessary file will never again be generated, and stack-to-nix will not work properly until the cache file is removed.

There need to be additional checks that cache entries are valid before using them.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions