[Git][haskell-team/package-plan][master] Fix package plan to work with cabal-install 3.12
Scott Talbert (@swt2c)
gitlab at salsa.debian.org
Sun Feb 15 22:43:36 GMT 2026
Scott Talbert pushed to branch master at Debian Haskell Group / package-plan
Commits:
7bf20e8c by Scott Talbert at 2026-02-15T17:32:52-05:00
Fix package plan to work with cabal-install 3.12
cabal seems to now want the .cache file to exist for the fake
repository, so use 'cabal update' to create it.
- - - - -
1 changed file:
- test-packages.pl
Changes:
=====================================
test-packages.pl
=====================================
@@ -272,7 +272,9 @@ if ($createsandbox) {
mkdir "$sandboxdir/packages/debian" or die $!;
open CABALCONFIG, ">", "cabal-sandbox/config" or die $!;
print CABALCONFIG <<__END__;
-remote-repo: debian:http://does-not-exist.example/packages/archive
+repository debian
+ url: file://$sandboxdir/packages/debian
+ secure: False
remote-repo-cache: $sandboxdir/packages
world-file: $sandboxdir/world
install-dirs user
@@ -358,6 +360,10 @@ __END__
}
print "Writing 00-index.tar...\n";
$tar->write($tarpath);
+ print "Compressing 00-index.tar...\n";
+ system("gzip", "$tarpath");
+ print "Generating 00-index.cache...\n";
+ system("cabal", "--config-file", "$sandboxdir/config", "update", "debian");
}
print "Creating fake global package db\n";
View it on GitLab: https://salsa.debian.org/haskell-team/package-plan/-/commit/7bf20e8cd7d31ba9c86bcd1851591941d4e19dee
--
View it on GitLab: https://salsa.debian.org/haskell-team/package-plan/-/commit/7bf20e8cd7d31ba9c86bcd1851591941d4e19dee
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20260215/38e4b47b/attachment-0001.htm>
More information about the Pkg-haskell-commits
mailing list