Hi Andres,<br><br>Thanks for the reply! Note that I get this message even running &#39;cabal install&#39; a second time after changing nothing. Is that scenario an example of what you mean by a &quot;potentially dangerous cabal invocation&quot;? I&#39;ve been unable to avoid this error message by any other means that (a) &#39;ghc-pkg unregister &lt;package&gt;&#39; or (b) &#39;--force-reinstall&#39;. So far, &#39;--solver=modular&#39; hasn&#39;t helped. So I&#39;m hoping for something less aggressive. In particular, in case nothing has changed, I want &#39;cabal install&#39; to succeed (exit code 0) so that my automated build &amp; install &amp; release processes will continue rather than get stopped.<br>

<br>Regards, - Conal<br><br>On Sat, Feb 4, 2012 at 9:51 PM, 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>
On Sun, Feb 5, 2012 at 12:36 AM, Conal Elliott &lt;<a href="mailto:conal@conal.net">conal@conal.net</a>&gt; wrote:<br>
&gt; Since upgrading to 7.4.1, if I &#39;cabal install&#39; successfully and then &#39;cabal<br>
&gt; install&#39; a second time without first doing a &#39;ghc-pkg unregister<br>
&gt; &lt;package-name&gt;&#39;, I get the following complaint:<br>
&gt;<br>
</div>&gt; [...]<br>
<br>
The warning is intended to prevent you from breaking your system<br>
without knowing that you know that you&#39;re running a potentially<br>
dangerous cabal invocation.<br>
<br>
The --force-reinstalls flag should always make it build. If it<br>
doesn&#39;t, it&#39;s a bug.<br>
<br>
In addition, I&#39;m planning to make the warning a little bit less<br>
aggressive before the release.<br>
<div class="im"><br>
&gt; The only path I&#39;ve found so far that&#39;s willing to rebuild or even say<br>
&gt; nothing needs rebuilding (when nothing does) is to &#39;ghc-pkg unregister&#39; and<br>
&gt; then &#39;cabal install&#39; again. I&#39;m getting the same behavior on Red Hat 5 and<br>
&gt; Mac OS 10.6.8, both compiled from sources.<br>
<br>
</div>I&#39;d be surprised if the OS matters. But as I said, I&#39;ve not yet<br>
encountered a situation where it wouldn&#39;t build given<br>
--force-reinstalls.<br>
<br>
Cheers,<br>
  Andres<br>
</blockquote></div><br>