maintainers/scripts/haskell: Better env clearing while regenerating

This commit is contained in:
Joe Hermaszewski 2021-07-21 12:41:24 +08:00
parent 8a3580c2f6
commit d46e72d043
No known key found for this signature in database
GPG key ID: C8116E3A0C1CA76A

View file

@ -30,9 +30,10 @@ EOF
# clear environment here to avoid things like allowing broken builds in # clear environment here to avoid things like allowing broken builds in
sort -iu "$tmpfile" >> "$broken_config" sort -iu "$tmpfile" >> "$broken_config"
env -i maintainers/scripts/haskell/regenerate-hackage-packages.sh clear="env -u HOME -u NIXPKGS_CONFIG"
env -i maintainers/scripts/haskell/regenerate-transitive-broken-packages.sh $clear maintainers/scripts/haskell/regenerate-hackage-packages.sh
env -i maintainers/scripts/haskell/regenerate-hackage-packages.sh $clear maintainers/scripts/haskell/regenerate-transitive-broken-packages.sh
$clear maintainers/scripts/haskell/regenerate-hackage-packages.sh
if [[ "${1:-}" == "--do-commit" ]]; then if [[ "${1:-}" == "--do-commit" ]]; then
git add $broken_config git add $broken_config