-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
No temp nuget.config when NuGet 4.8 or higher #7997
Conversation
2666827
to
959db5c
Compare
@@ -30,6 +37,7 @@ function prepareNuGetExeEnvironment( | |||
let env: EnvironmentDictionary = {}; | |||
let originalCredProviderPath: string = null; | |||
let envVarCredProviderPathV2: string = null; | |||
let noTempConfigFile: string = null; |
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.
remove
|
||
const externalCredentials: string = JSON.stringify(enpointCredentialsJson); | ||
return externalCredentials; | ||
} |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Tasks/NuGetCommandV2/nugetrestore.ts
Outdated
@@ -163,19 +170,30 @@ export async function run(nuGetPath: string): Promise<void> { | |||
} | |||
} | |||
|
|||
// Setting creds in the temp NuGet.config if needed | |||
await nuGetConfigHelper.setAuthForSourcesInTempNuGetConfigAsync(); | |||
tl.debug('nuGetConfigPath'); // satus debugging |
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.
remove
env["VSS_NUGET_URI_PREFIXES"] = authInfo.internalAuthInfo.uriPrefixes.join(";") | ||
} | ||
|
||
let externalCredentials = buildCredentialJson(authInfo); |
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.
move this inside the V2 cred provider check
Tasks/NuGetCommandV2/nugetrestore.ts
Outdated
await nuGetConfigHelper.setAuthForSourcesInTempNuGetConfigAsync(); | ||
tl.debug('Setting nuget.config auth'); | ||
} else { | ||
tl.debug('Not setting temp nuget.config auth'); |
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.
nit: add a message saying the new provider will handle auth, or something similar. So we know why we're not adding it.
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.
Left some comments, looks good overall!
No description provided.