Skip to content

fix for parsing output path when condition has no spaces - #1058

Merged
forki merged 2 commits into
fsprojects:masterfrom
ascjones:condition-parsing-fix
Sep 12, 2015
Merged

forki merged 2 commits into
fsprojects:masterfrom
ascjones:condition-parsing-fix

Conversation

@ascjones

Copy link
Copy Markdown
Contributor

Fix for issue: #1057

The tests pass, but @amazingant (who wrote the parsing code) may need to double check that to see that it doesn't break any other scenarios.

Comment thread src/Paket.Core/ProjectFile.fs Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What you wrote here should work fine for #1057.
If I had thought of conditions without spaces when I wrote the parser, I might have written this line as something like so:

let isCompChar c = c = '<' || c = '>' || c = '!' || c = '='
...
elif data.Length = 2 && isCompChar c

(helper function so the next elif could be simplified as well)
If you want to do that with this PR, let me know how the tests go; otherwise this looks good to me 👍

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Indeed you're right that is a significantly less naive approach. Pull request amended.

@ascjones

Copy link
Copy Markdown
Contributor Author

Travis build fails, but only because it fails to install mono due to some apt-get 404s:

The command "sudo apt-get install -qq mono-complete mono-vbnc fsharp nuget referenceassemblies-pcl" failed and exited with 100

#itbuildsonmymachine

@forki

forki commented Sep 11, 2015

Copy link
Copy Markdown
Member

yes same on FAKE build see fsprojects/FAKE#949

forki added a commit that referenced this pull request Sep 12, 2015
fix for parsing output path when condition has no spaces
@forki
forki merged commit 9a1c547 into fsprojects:master Sep 12, 2015
@forki

forki commented Sep 12, 2015

Copy link
Copy Markdown
Member

thx

@ascjones
ascjones deleted the condition-parsing-fix branch September 13, 2015 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants