You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix cabal-install in the presence of extra-packages
Extra-packages listed in a cabal project are to be fetched from hackage,
and will be in memory as 'NamedPackages' rather than resolved to
'SpecificSourcePackage'.
On install, we need to make source-dists for all the specific source
packages, and fetch other packages from hackage. Since extra-packages
are already 'NamedPackages', we simply return them along the sdistize-d
specific source packages and the hackage source packages -- they will be
correctly fetched from Hackage from install.
Previously, cabal install <tgt> on a project with extra-packages would
fail because the branch of 'NamedPackage' for 'PackageSpecifier' was
simply unimplemented.
Fixes#8848
Wrote tarball sdist to <ROOT>/cabal.dist/work/./dist/sdist/t8848-1.0.tar.gz
3
+
Resolving dependencies...
4
+
Build profile: -w ghc-<GHCVER> -O1
5
+
In order, the following will be built:
6
+
- t8848-1.0 (exe:t8848) (requires build)
7
+
Warning: installdir is not defined. Set it in your cabal config file or use --installdir=<path>. Using default installdir: "<ROOT>/cabal.dist/home/.cabal/bin"
8
+
Configuring t8848-1.0...
9
+
Preprocessing executable 't8848' for t8848-1.0...
10
+
Building executable 't8848' for t8848-1.0...
11
+
Installing executable t8848 in <PATH>
12
+
Warning: The directory <ROOT>/cabal.dist/home/.cabal/store/ghc-<GHCVER>/incoming/new-<RAND><ROOT>/cabal.dist/home/.cabal/store/ghc-<GHCVER>/<PACKAGE>-<HASH>/bin is not in the system search path.
13
+
Warning: installdir is not defined. Set it in your cabal config file or use --installdir=<path>. Using default installdir: "<ROOT>/cabal.dist/home/.cabal/bin"
14
+
Symlinking 't8848' to '<ROOT>/cabal.dist/home/.cabal/bin/t8848'
0 commit comments