Skip to content

Commit 149ee8e

Browse files
authored
Temporarily remove nuget V2 credential provider based on quirks (#8341)
* Temporarily remove nuget V2 credential provider based on quirks * Update patch version
1 parent db85e59 commit 149ee8e

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Tasks/Common/nuget-task-common/NuGetToolRunner2.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,11 @@ export function isCredentialProviderEnabled(quirks: NuGetQuirks): boolean {
208208
return false;
209209
}
210210

211-
if (quirks.hasQuirk(NuGetQuirkName.V2CredentialProvider) === true) {
211+
// Disabling quirk check during investigation
212+
/*if (quirks.hasQuirk(NuGetQuirkName.V2CredentialProvider) === true) {
212213
tl.debug("Credential provider V1 is disabled in favor of V2 plugin.");
213214
return false;
214-
}
215+
}*/
215216

216217
if (isAnyCredentialProviderEnabled(quirks)) {
217218
tl.debug("V1 credential provider is enabled");
@@ -238,10 +239,11 @@ export function isCredentialProviderV2Enabled(quirks: NuGetQuirks): boolean {
238239
return false;
239240
}
240241

241-
if (quirks.hasQuirk(NuGetQuirkName.V2CredentialProvider) === true) {
242+
// Disabling quirk check during investigation
243+
/*if (quirks.hasQuirk(NuGetQuirkName.V2CredentialProvider) === true) {
242244
tl.debug("V2 credential provider is enabled.");
243245
return true;
244-
}
246+
}*/
245247

246248
tl.debug("V2 credential provider is disabled due to quirks. To use V2 credential provider use NuGet version 4.8 or higher.");
247249
return false;

Tasks/NuGetCommandV2/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nugetcommand",
3-
"version": "2.0.36",
3+
"version": "2.0.41",
44
"description": "Restore, pack, or push NuGet packages, or run a NuGet command.",
55
"main": "nugetcommandmain.js",
66
"scripts": {

Tasks/NuGetCommandV2/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"version": {
1010
"Major": 2,
1111
"Minor": 0,
12-
"Patch": 40
12+
"Patch": 41
1313
},
1414
"runsOn": [
1515
"Agent",

0 commit comments

Comments
 (0)