-
Notifications
You must be signed in to change notification settings - Fork 586
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
Fixed DocFx bug #2188
Fixed DocFx bug #2188
Conversation
Can you open an issue with the problem description? It is a bit unusual that this wouldn't work considering the amount of CI-Systems this stuff is running on. |
@matthid Yes, sure. For the FAKE build it seems that chocolatey was missing, we might want to add that to the build requirements. It would be awesome if you could check the file changes in the commit, I hope I used the Args module as it was intended. |
@DigitalFlow My suggestion would be to go with arg-lists all the way and switch to the |
Thanks for taking care of this! @matthid as you deprecated the params-stuff (e.g. |
@matthid: Would be interested in what to use as replacement for the stringification which was done in boolParam, stringParam, ... as well. |
Yes it would be nice to have the same helpers for list based parameter generation, I think @vbfox has written a library we might want to steal ;) |
Joke aside you can copy paste it if you want it's MIT but I can cross license to Apache 2 if you need :) Just please steal the printf integration ( https://github.com/vbfox/FoxSharp/blob/master/src/BlackFox.CommandLine/Readme.md ) : let cmd =
CmdLine.empty
|> CmdLine.append "build"
|> CmdLine.appendIf noRestore "--no-restore"
|> CmdLine.appendPrefixIfSome "--framework" framework
|> CmdLine.appendPrefixf "--configuration" "%A" configuration
|> CmdLine.appendf "-n=%s" name
|> CmdLine.toString Obviously I would prefer a reference as it will avoid fixing issues in two places (And I love that habit of JS ecosystem of making small dedicated libraries) but fake having some code so serialize / deserialize command lines already make it less simple than "just use it" ( vbfox/FoxSharp#1 ) |
@vbfox Yes referencing is an option but I don't think people should need to convert types between several libraries in order to start a process. I think process starting should be in the fake core. |
Can't you reference it in Fake.Core.Process ? is there a technical limitation or just a wish to keep fake core dependency free ? |
@vbfox No technical limitation, more that we should have a set of types working well together and the wish to have breaking changes around them in control ;) |
Or to be clear: I'm not against it. I just feel like having it in the repository leads to fewer issues in the long run.. |
@matthid: So how to continue? Copy the code you linked to a separate class and use it? |
@DigitalFlow sorry we got a bit sidetracked. What this pr needs is a basic test showing what this fixes |
any interest in finishing this? |
Yes just skip all manual escaping and just build a list of string is probably the easiest option |
Yes, we did no escaping, however building the strings had some issues, for example boolean options that were passed as - -option=true instead of just passing - -option. |
Description
This PR switches the DocFx module to use Args instead of the deprecated Process functions.
Unfortunately neither building the project using
fake run
nor usingdotnet
builds successfully.But this was also the case for me before I did the changes.
Some hints whether the stringify functions are ok as they are would be great.
TODO
unit or integration test exists (or short reasoning why it doesn't make sense)