-
Notifications
You must be signed in to change notification settings - Fork 699
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
Tell the user about --lib when new-installing a package with no exes #5666
Conversation
@@ -614,8 +614,16 @@ symlinkBuiltPackage :: Verbosity | |||
symlinkBuiltPackage verbosity overwritePolicy | |||
mkSourceBinDir destDir | |||
(pkg, components) = | |||
traverse_ symlinkAndWarn exes | |||
if null exes | |||
then warn verbosity $ "You asked to install executables, " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warn
or die'
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm for warn
, since technically cabal succeeds in installing "all the exes of the package"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for warn
.
0151e81
to
f6aaeee
Compare
"url":"pull/5666", "account":"haskell", "repo":"cabal", "commit": "f6aaeeeae3daca0240a6192024934f4b2143412e", "tag":"linux-7.6.3" }
"url":"pull/5666", "account":"haskell", "repo":"cabal", "commit": "f6aaeeeae3daca0240a6192024934f4b2143412e", "tag":"linux-7.8.4" }
"url":"pull/5666", "account":"haskell", "repo":"cabal", "commit": "f6aaeeeae3daca0240a6192024934f4b2143412e", "tag":"linux-8.2.2" }
"url":"pull/5666", "account":"haskell", "repo":"cabal", "commit": "f6aaeeeae3daca0240a6192024934f4b2143412e", "tag":"linux-7.10.3" }
"url":"pull/5666", "account":"haskell", "repo":"cabal", "commit": "f6aaeeeae3daca0240a6192024934f4b2143412e", "tag":"linux-8.0.2" }
"url":"pull/5666", "account":"haskell", "repo":"cabal", "commit": "f6aaeeeae3daca0240a6192024934f4b2143412e", "tag":"linux-8.4.4" }
"url":"pull/5666", "account":"haskell", "repo":"cabal", "commit": "f6aaeeeae3daca0240a6192024934f4b2143412e", "tag":"linux-8.6.2" }
"url":"pull/5666", "account":"haskell", "repo":"cabal", "commit": "f6aaeeeae3daca0240a6192024934f4b2143412e", "tag":"linux-8.4.4-fdebug-expensive-assertions" }
"url":"pull/5666", "account":"haskell", "repo":"cabal", "commit": "f6aaeeeae3daca0240a6192024934f4b2143412e", "tag":"osx-7.8.4" }
"url":"pull/5666", "account":"haskell", "repo":"cabal", "commit": "f6aaeeeae3daca0240a6192024934f4b2143412e", "tag":"osx-7.10.3" }
"url":"pull/5666", "account":"haskell", "repo":"cabal", "commit": "f6aaeeeae3daca0240a6192024934f4b2143412e", "tag":"osx-8.0.2" }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@@ -614,8 +614,16 @@ symlinkBuiltPackage :: Verbosity | |||
symlinkBuiltPackage verbosity overwritePolicy | |||
mkSourceBinDir destDir | |||
(pkg, components) = | |||
traverse_ symlinkAndWarn exes | |||
if null exes | |||
then warn verbosity $ "You asked to install executables, " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for warn
.
Huh, 100% green, nice. Did CI fix itself? |
I think 5bc88cd fixed it |
Tell the user about --lib when new-installing a package with no exes
Cherry-picked to 2.4 |
@fgaz Oh BTW, when you cherry-pick patches, please use
Hmm, how? Bootstrap configuration was green before. I think it was the release of 8.6.2 final (that configuration was failing), but I'm not sure what exactly changed. |
oh,sorry. I'll do that from now on.
that's probably it then |
/cc @hvr