Skip to content
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

Merged
merged 1 commit into from
Nov 8, 2018

Conversation

fgaz
Copy link
Member

@fgaz fgaz commented Nov 6, 2018

/cc @hvr

@fgaz fgaz added this to the 2.4.0.1 milestone Nov 6, 2018
@@ -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, "
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warn or die'?

Copy link
Member Author

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"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for warn.

@fgaz fgaz requested a review from 23Skidoo November 6, 2018 14:03
@fgaz fgaz force-pushed the new-install/no-exes-warn branch from 0151e81 to f6aaeee Compare November 6, 2018 14:18
haskell-pushbot pushed a commit to haskell-pushbot/cabal-binaries that referenced this pull request Nov 6, 2018
"url":"pull/5666",
"account":"haskell",
"repo":"cabal",
"commit": "f6aaeeeae3daca0240a6192024934f4b2143412e",
"tag":"linux-7.6.3"
}
haskell-pushbot pushed a commit to haskell-pushbot/cabal-binaries that referenced this pull request Nov 6, 2018
"url":"pull/5666",
"account":"haskell",
"repo":"cabal",
"commit": "f6aaeeeae3daca0240a6192024934f4b2143412e",
"tag":"linux-7.8.4"
}
haskell-pushbot pushed a commit to haskell-pushbot/cabal-binaries that referenced this pull request Nov 6, 2018
"url":"pull/5666",
"account":"haskell",
"repo":"cabal",
"commit": "f6aaeeeae3daca0240a6192024934f4b2143412e",
"tag":"linux-8.2.2"
}
haskell-pushbot pushed a commit to haskell-pushbot/cabal-binaries that referenced this pull request Nov 6, 2018
"url":"pull/5666",
"account":"haskell",
"repo":"cabal",
"commit": "f6aaeeeae3daca0240a6192024934f4b2143412e",
"tag":"linux-7.10.3"
}
haskell-pushbot pushed a commit to haskell-pushbot/cabal-binaries that referenced this pull request Nov 6, 2018
"url":"pull/5666",
"account":"haskell",
"repo":"cabal",
"commit": "f6aaeeeae3daca0240a6192024934f4b2143412e",
"tag":"linux-8.0.2"
}
haskell-pushbot pushed a commit to haskell-pushbot/cabal-binaries that referenced this pull request Nov 6, 2018
"url":"pull/5666",
"account":"haskell",
"repo":"cabal",
"commit": "f6aaeeeae3daca0240a6192024934f4b2143412e",
"tag":"linux-8.4.4"
}
haskell-pushbot pushed a commit to haskell-pushbot/cabal-binaries that referenced this pull request Nov 6, 2018
"url":"pull/5666",
"account":"haskell",
"repo":"cabal",
"commit": "f6aaeeeae3daca0240a6192024934f4b2143412e",
"tag":"linux-8.6.2"
}
haskell-pushbot pushed a commit to haskell-pushbot/cabal-binaries that referenced this pull request Nov 6, 2018
"url":"pull/5666",
"account":"haskell",
"repo":"cabal",
"commit": "f6aaeeeae3daca0240a6192024934f4b2143412e",
"tag":"linux-8.4.4-fdebug-expensive-assertions"
}
haskell-pushbot pushed a commit to haskell-pushbot/cabal-binaries that referenced this pull request Nov 6, 2018
"url":"pull/5666",
"account":"haskell",
"repo":"cabal",
"commit": "f6aaeeeae3daca0240a6192024934f4b2143412e",
"tag":"osx-7.8.4"
}
haskell-pushbot pushed a commit to haskell-pushbot/cabal-binaries that referenced this pull request Nov 6, 2018
"url":"pull/5666",
"account":"haskell",
"repo":"cabal",
"commit": "f6aaeeeae3daca0240a6192024934f4b2143412e",
"tag":"osx-7.10.3"
}
haskell-pushbot pushed a commit to haskell-pushbot/cabal-binaries that referenced this pull request Nov 6, 2018
"url":"pull/5666",
"account":"haskell",
"repo":"cabal",
"commit": "f6aaeeeae3daca0240a6192024934f4b2143412e",
"tag":"osx-8.0.2"
}
Copy link
Member

@23Skidoo 23Skidoo left a 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, "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for warn.

@23Skidoo
Copy link
Member

23Skidoo commented Nov 7, 2018

Huh, 100% green, nice. Did CI fix itself?

@fgaz
Copy link
Member Author

fgaz commented Nov 8, 2018

I think 5bc88cd fixed it

@fgaz fgaz merged commit db62fe4 into haskell:master Nov 8, 2018
fgaz added a commit that referenced this pull request Nov 8, 2018
Tell the user about --lib when new-installing a package with no exes
@fgaz
Copy link
Member Author

fgaz commented Nov 8, 2018

Cherry-picked to 2.4

@23Skidoo
Copy link
Member

23Skidoo commented Nov 8, 2018

@fgaz Oh BTW, when you cherry-pick patches, please use git cherry-pick -x.

I think 5bc88cd fixed it

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.

fgaz added a commit that referenced this pull request Nov 8, 2018
@fgaz
Copy link
Member Author

fgaz commented Nov 8, 2018

when you cherry-pick patches, please use git cherry-pick -x

oh,sorry. I'll do that from now on.

the release of 8.6.2 final

that's probably it then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants