-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conflict with global database when copying precompiled package #1146
Comments
There are a few very strange things going on:
It sounds to me like there's something broken with your global copy of transformers-compat (strengthened by the error message about the .haddock file), and that Stack is correctly trying to rebuild it. We can tell ghc-pkg to register the package even if it will conflict with an already registered one, but I'd look into first if there's something wrong with your global database. |
Turns out there's a limitation in ghc-pkg that can be worked around with environment variables. Stack should now work for your use case, though I'd still recommend looking into why you have it in the global database, and if it's broken. Can you try things out with master ( |
(Maybe a bit unrelated). |
Great. 6b8fd22 fixed the problem. Thanks, @snoyberg.
I know that my life would be much easier if I just didn't keep anything non-core in the global database (and in fact that is how I use stack on my main machine), but I think that catching the bugs related to global database wouldn't hurt especially with the current state of things when people often use |
Agreed on the "good to catch" bugs front :). Unfortunately Haskell Platform On Mon, Oct 12, 2015 at 11:49 AM, Konstantin Zudov <[email protected]
|
* master: (59 commits) Ignore global database when copying precompiled packages #1146 Revert an unneeded change to 'runAndLog' Remove old GHCJS unpack directory if it exists Allow "stack setup ghcjs-0.1.0.20150924_ghc-7.10.2" Properly unzip GHCJS on windows (stack setup) Consider user-specified package flags in stack solver #1071 Fix a warning Colored build status in filewatch mode Add NixOS to 'How to install'. Include NixOS information #1118 Style improvements for Docker compatibility check Fix `awaiting pr` label link Fix GHC 7.8 build Docker: check host's stack compatibility by attempting to run in container and caching the result (#974) Fix formatting in `explicit-setup-deps` section Provide more information about changed files Compile custom Setup.hs instead of interpreting them (fixes #1041) Detect when hpc report gives trivial 100% #1009 Unified coverage report #579 Recommend extra-dep in yaml_configuration.yml ...
Here is an issue which I've been experiencing for quite a long time (since copying precompiled packages feature was merged):
transformers-compat-0.4.0.4
is in global database and inlts-3.8
snapshot database:But it's not in
nightly-2015-10-08
snapshot database:Trying to install it into
nightly-2015-10-08
snapshot database would try to copy it fromlts-3.8
and would fail because of the presence of that package in the global database:
An output of the last command run with --verbose
It get it quite often with different packages and snapshots. If the package is in a global database the copying would fail.
So far I've been solving it by just removing the offending package from some database. A command line option which tells
--do-not-perform-binary-copying
would be very helpful.The text was updated successfully, but these errors were encountered: