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
{{ message }}
Repository navigation
Update solver Hackage benchmark for v2 commands #6417
The Hackage benchmark currently measures the performance of the solver by running the "cabal install" command with --dry-run. Now that cabal uses v2 commands by default, "install" only works for executables. The benchmark needs to be updated to run a command that can invoke the solver for any package on Hackage.
% cabal install --lib stylish-haskell --dry
Resolving dependencies...
Build profile: -w ghc-8.6.5 -O1
In order, the following would be built (use -v for more details):
- mono-traversable-1.0.13.0 (lib) (requires build)
- conduit-1.3.1.1 (lib) (requires build)
- libyaml-0.1.1.1 (lib) (requires build)
- yaml-0.11.2.0 (lib) (requires build)
- stylish-haskell-0.9.4.4 (lib) (requires download & build)
- stylish-haskell-0.9.4.4 (exe:stylish-haskell) (requires download & build)
seems to work. Maybe it shouldn't. I'm not sure :)
EDIT: I think this automated use-case is something which should work with v2-install. I don't remember what's the motivation for requiring --lib flag is either, maybe @hvr can comment. At least when install --lib related issues are fixed, requiring --lib could be dropped (or required only for ambiguous cases).
i.e. just adding --lib there, even if you try to install an exe.
I'm not sure I understand the behavior of --lib. I thought that I couldn't use it for a package that doesn't contain a library, but then I realized that I was running the command in the cabal directory, and cabal.project probably influenced the behavior.
with cabal.project and .cabal file:
$ cabal install --lib --dry-run 3d-graphics-examples
Resolving dependencies...
cabal: Cannot build the libraries in the package 3d-graphics-examples because
it does not contain any libraries. Check the .cabal file for the package and
make sure that it properly declares the components that you expect.
Activity
Solver: Pair conflict set variables with more information about confl…
phadej commentedon Dec 11, 2019
seems to work. Maybe it shouldn't. I'm not sure :)
EDIT: I think this automated use-case is something which should work with
v2-install. I don't remember what's the motivation for requiring--libflag is either, maybe @hvr can comment. At least wheninstall --librelated issues are fixed, requiring--libcould be dropped (or required only for ambiguous cases).i.e. just adding
--libthere, even if you try to install an exe.sebright commentedon Dec 12, 2019
I'm not sure I understand the behavior of --lib. I thought that I couldn't use it for a package that doesn't contain a library, but then I realized that I was running the command in the cabal directory, and cabal.project probably influenced the behavior.
with cabal.project and .cabal file:
without cabal.project or .cabal file:
--lib will probably work for the benchmark as long as it is run outside of a project.
phadej commentedon Dec 12, 2019
Or/and we need
cabal install -zto be there. #5919Update solver Hackage benchmark for v2-install.
Update solver Hackage benchmark for v2-install.
Update solver Hackage benchmark for v2-install.
Update solver Hackage benchmark for v2-install.
Solver: Pair conflict set variables with more information about confl…