On Sun, Feb 5, 2012 at 12:43 AM, Andres Löh <span dir="ltr">&lt;<a href="mailto:andres.loeh@googlemail.com">andres.loeh@googlemail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi Conal.<br>
<div class="im"><br>
&gt; Thanks for the reply! Note that I get this message even running &#39;cabal<br>
&gt; install&#39; a second time after changing nothing. Is that scenario an example<br>
&gt; of what you mean by a &quot;potentially dangerous cabal invocation&quot;?<br>
<br>
</div>The check currently is entirely ad-hoc. Any reinstallation of an<br>
existing package triggers the warning. There&#39;s no hash comparison.<br></blockquote><div><br>I&#39;m confused. Isn&#39;t package re-installation an extremely common thing in cabal while developing software? Do you cope by habitually adding --force-reinstall during development? Perhaps that habit is the piece missing from my mental picture.<br>

<br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="im">&gt; I&#39;ve been<br>
&gt; unable to avoid this error message by any other means that (a) &#39;ghc-pkg<br>
&gt; unregister &lt;package&gt;&#39; or (b) &#39;--force-reinstall&#39;. So far, &#39;--solver=modular&#39;<br>
&gt; hasn&#39;t helped. So I&#39;m hoping for something less aggressive. In particular,<br>
&gt; in case nothing has changed, I want &#39;cabal install&#39; to succeed (exit code 0)<br>
&gt; so that my automated build &amp; install &amp; release processes will continue<br>
&gt; rather than get stopped.<br>
<br>
</div>The message appears, but building should work, with --force-reinstall<br>
and no --dry-run. Can you confirm that you&#39;ve tried that?<br>
<br>
Cheers,<br>
  Andres<br></blockquote><div><br>Yes, building does work for me with --force-reinstall.<br><br>-- Conal<br></div></div><br>