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

NuGet.Restore.RestoreMSSolutionPackages quoting seems broken #1933

Closed
0x53A opened this issue May 17, 2018 · 8 comments
Closed

NuGet.Restore.RestoreMSSolutionPackages quoting seems broken #1933

0x53A opened this issue May 17, 2018 · 8 comments

Comments

@0x53A
Copy link
Contributor

0x53A commented May 17, 2018

    for s in solutions do
        NuGet.Restore.RestoreMSSolutionPackages (fun x -> { x with
                                                                OutputPath = (Path.GetDirectoryName s) @@ "packages"
                                                                Verbosity = NuGet.Restore.NugetRestoreVerbosity.Quiet
                                                                Sources = [ @"C:\Projekte_BUILD\a_CommonBinaries\nuget" ] }) s

grafik

PS C:\_build\fake-bootstrap> dotnet fake --version
FAKE 5 - F# Make (5.0.0-rc012.95+vsts.617e5c3e3ac66e15fd822f03d531fe4dce04dd85)
FakePath: C:\Users\rieluk\.nuget\packages\fake.runtime\5.0.0-rc012.95\lib\netstandard2.0\Fake.Runtime.dll

The whole quoting code looks suspicious, CLI passing on windows is a bleeping mess.

@matthid
Copy link
Member

matthid commented May 17, 2018

I think we now have a working quoting implementation in place. Problem is I might have mixed that with existing code trying to do manual quoting. Once that is figured out it should work correctly.

In particular I'm pretty sure that https://github.com/fsharp/FAKE/blob/master/src/app/Fake.Core.Process/CmdLineParsing.fs is working (I use it on various projects with weird command line arguments). Point is that we now need to ensure that whatever we give into:

https://github.com/fsharp/FAKE/blob/d099facbe19ed1676e66c74fef295baa43a73c66/src/app/Fake.DotNet.MSBuild/MSBuild.fs#L309

is the correct list of arguments.
Can you take a look and come up with a PR?

@matthid
Copy link
Member

matthid commented May 17, 2018

Ah wait you are talking about nuget task. We probably need to do the same as we did for the msbuild task and use Args.toWindowsCommandLine with the correct raw argument list (no quoting required)

@0x53A
Copy link
Contributor Author

0x53A commented May 17, 2018

Wanted to send something tonight, but need to go. Will try again next evening ;D

please ping if I don't.

@matthid
Copy link
Member

matthid commented May 19, 2018

@0x53A ping :)

@matthid
Copy link
Member

matthid commented May 21, 2018

I'm not even sure what I just saw... 92cd82b

@0x53A
Copy link
Contributor Author

0x53A commented May 21, 2018

lol. That is def bonkers.

Ich hab gerade ein schlechtes Gewissen bekommen und wollte auch noch schnell einen PR senden (was ich ja schon am Freitag wollte :D), aber ich glaube mein Computer sagt mir ich soll schlafen gehen ...¯_(ツ)_/¯

image

image

@matthid
Copy link
Member

matthid commented May 21, 2018

Don't worry about it. I was bored while waiting for a build ;)
that lock thing might indicate that you should get latest and do a global restore and/or update dotnet sdk to the latest preview (works pretty good on my machine with the global fake-cli tool)

@matthid
Copy link
Member

matthid commented May 21, 2018

However it will not be part of rc16 (because that was the build I was waiting on)

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

No branches or pull requests

2 participants