Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

haskell-modules/generic-builder.nix: use mktemp instead of TMPDIR #171685

Commits on May 5, 2022

  1. haskell-modules/generic-builder.nix: use mktemp instead of TMPDIR

    Using $TMPDIR here is problematic because it is not always cleared at
    the end of each build, for instance when using "nix-shell --run
    genericBuild". This can cause confusing errors when a nix-shell build
    is trying to pull in dependencies from a previous build since it tries
    to use older package conf files.
    
    To fix, we can just use mktemp which will guarantee us a clean
    directory for each build. Should have no effect in nix-build, but will
    fix a common issue with using generic-builder in nix-shell.
    matthewbauer committed May 5, 2022
    Configuration menu
    Copy the full SHA
    91e4fa2 View commit details
    Browse the repository at this point in the history