-
Notifications
You must be signed in to change notification settings - Fork 696
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
4267 Add --exact flag to the list command #6618
Conversation
a47b0e3
to
b6cdb56
Compare
Pinging Dr. @phadej again |
b6cdb56
to
1bf4be6
Compare
@@ -1,6 +1,9 @@ | |||
-*-change-log-*- | |||
|
|||
3.2.0.0 Herbert Valerio Riedel <[email protected]> April 2020 | |||
3.2.0.0 Someone <mailto:[email protected]> February 2020 |
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.
Add fine to changelog.d
directory, see the issue-*
files for an examples
It's recent change, so we won't introduce conflicts to changelog files.
@@ -164,7 +164,7 @@ hackageBenchmarkMain = do | |||
if null argPackages | |||
then do | |||
putStrLn $ "Obtaining the package list (using " ++ argCabal1 ++ ") ..." | |||
list <- readProcess argCabal1 ["list", "--simple-output"] "" | |||
list <- readProcess argCabal1 ["list", "--simple-output", "--exact"] "" |
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.
This doesn't seem to be related to the reported issue. Why this change? Does exact
makes it somehow faster?
[ pkgs | ||
| pkgs@(pname, _) <- Map.toList m | ||
, lsearchterm `isInfixOf` lowercase (unPackageName pname) ] | ||
, if exactMatch | ||
then searchterm `isInfixOf` unPackageName pname |
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.
why still isInfixOf
?
This PR adds `--exact` flag to the cabal list command which enables exact match on the package name while searching.
1bf4be6
to
3d44fef
Compare
Merged in #6681. Thanks! |
fixes #4267
This PR adds
--exact
flag to the cabal list command whichenables exact match on the package name while searching.
The cabal list output looks like this for
mtl
package:And when using the
--exact
flag we are matching the exact package name like this: