Skip to content

Commit 3e23938

Browse files
committed
update-hackage: cabal new-update is not working
1 parent f766e7b commit 3e23938

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/update-hackage.nix

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
import ./update-external.nix args {
44
name = "hackage";
55
script = ''
6-
# Make sure the hackage index is recent.
7-
cabal new-update
8-
96
# Clone or update the Hackage Nix expressions repo.
107
if [ -d hackage.nix ]; then
118
cd hackage.nix
@@ -15,6 +12,10 @@ import ./update-external.nix args {
1512
git clone [email protected]:input-output-hk/hackage.nix.git
1613
fi
1714
15+
# Make sure the hackage index is recent.
16+
echo "Updating local hackage index..."
17+
cabal update
18+
1819
echo "Running hackage-to-nix..."
1920
2021
hackage-to-nix hackage.nix

0 commit comments

Comments
 (0)