-
Notifications
You must be signed in to change notification settings - Fork 134
fix: to correct value of pursArgs in findFlag in Path.hs #688
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
Conversation
|
Hi @knight9999, thanks for contributing the fix! 👏 This was sort of a known bug for a while, but not enough people stumbled on the edge cases for it to be annoying. In fact you can see I left a "TODO add tests" just a few lines above your fix: spago/src/Spago/Command/Path.hs Lines 46 to 51 in 7dcd30d
It would be great if you could add these tests as part of this PR, as it might help catch any other bugs we might be introducing (for example, there seems to be a regression in the current tests) |
|
Thanks @f-f for the valuable advice. There are some issues in test cases that are not related with my PR, instead of the original one temporaly |
|
Thanks @f-f for the valuable advice. There are some test issue other than my PR, instead of the origin one |
f-f
left a comment
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 left a small comment but otherwise this looks great 👏
Improve comments aboute tests Co-authored-by: Fabrizio Ferrai <[email protected]>
|
Hi @f-f . Thank you very much. |
|
Thank you 🙂 |
Description of the change
This PR is to fix the bug that the user can not
spago runcommand when he specifies the output directory different fromoutput.Support user wants to specify output directory, for example,
output2directory.The build can be done by the command
However, the run leads to error by the command.
This issue is because
findFlagfunction inPath.hshas a problem.If we use
, the
pursArgsis["-o output2"], not["-o", "output2"].Therefore
(x:y:xs)can not match they = "output2".Checklist:
READMEP.S.: the above checks are not compulsory to get a change merged, so you may skip them. However, taking care of them will result in less work for the maintainers and will be much appreciated 😊