Skip to content

Commit a79b312

Browse files
hackage: download legacy index instead of symlink
Ref to haskell/cabal#4624 Ref to tuna/issues#1371
1 parent 5ce2bb3 commit a79b312

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hackage.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ function hackage_mirror() {
5050
echo "Downloading index..."
5151
rm index.tar.gz || true
5252
curl -s -S --fail -L "${base_url}/01-index.tar.gz" -o index.tar.gz
53+
rm index-legacy.tar.gz || true
54+
curl -s -S --fail -L "${base_url}/00-index.tar.gz" -o index-legacy.tar.gz
5355

5456
# https://hackage.haskell.org/api#security
5557
echo "Dowloading security features..."
@@ -106,7 +108,7 @@ function hackage_mirror() {
106108
done
107109

108110
cp index.tar.gz 01-index.tar.gz
109-
ln -sf 01-index.tar.gz 00-index.tar.gz
111+
cp index-legacy.tar.gz 00-index.tar.gz
110112
}
111113

112114
function cleanup () {

0 commit comments

Comments
 (0)