Skip to content

Commit e82b123

Browse files
authored
Fix #14576: Add updatePackageLastAccessTime to valid config keys list (#6809)
1 parent dd179e9 commit e82b123

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/NuGet.Core/NuGet.Configuration/Utility/ConfigurationContants.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ public static IReadOnlyList<string> GetConfigKeys()
154154
PasswordKey,
155155
NoProxy,
156156
MaxHttpRequestsPerSource,
157-
SignatureValidationMode
157+
SignatureValidationMode,
158+
UpdatePackageLastAccessTime
158159
};
159160
}
160161
}

test/NuGet.Core.FuncTests/NuGet.XPlat.FuncTest/XPlatConfigTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ public void ConfigGetCommand_UsingConfigKeyArgAndHelpOption_DisplaysHelpMessage(
271271
[Theory]
272272
[InlineData("signatureValidationMode", "accept")]
273273
[InlineData("maxHttpRequestsPerSource", "64")]
274+
[InlineData("updatePackageLastAccessTime", "true")]
274275
public void ConfigSetCommand_WithConfigFileArg_AddsSetting(string key, string value)
275276
{
276277
// Arrange & Act

0 commit comments

Comments
 (0)