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

Strip quotes from nuget.exe path #2289

Merged
merged 1 commit into from
Aug 22, 2016

Conversation

jmyersmsft
Copy link
Member

No description provided.

@@ -139,7 +141,11 @@ function locateTool(tool: string, opts?: LocateOptions) {

export function locateNuGetExe(userNuGetExePath: string): string {
if (userNuGetExePath) {
tl.debug(`using user-supplied NuGet path ${userNuGetExePath}`)
if (os.platform() === "win32") {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is likely fine in your case. We discussed for lib and the reason we didn't do it there is double quote is valid in OSX and Linux in a dir name. So we can't blindly do it in a base lib.

Copy link
Member Author

Choose a reason for hiding this comment

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

yep, this is literally just to resolve that one break and even then only on windows.

@jmyersmsft jmyersmsft force-pushed the users/jmyers/stripQuotes branch from c0ab22c to d993a2a Compare August 17, 2016 19:57
@jmyersmsft
Copy link
Member Author

@prashkan90 Can you take a look at this since you were asking about the bug before?

@prashkan
Copy link
Member

prashkan commented Aug 17, 2016

@jmyersmsft Looks good to me. :shipit:

@jmyersmsft jmyersmsft merged commit bbbdee2 into microsoft:master Aug 22, 2016
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.

4 participants