Skip to content

Commit 4a4464b

Browse files
amp-powellAbby Powell (from Dev Box)
andauthored
Added date to deprecation warnings for DownloadPackageV0, NuGetInstallerV0, and NuGetRestoreV1 (#19078)
* Added date to deprecation warnings for DownloadPackageV0, NuGetInstallerV0, and NuGetRestoreV1 * Modified L0 tests to accept new deprecation message * Added removalDate and updated patches * Reverted changes to DownloadPackageV0's package-lock.json file * Clearer deprecation message --------- Co-authored-by: Abby Powell (from Dev Box) <[email protected]>
1 parent 3c052b8 commit 4a4464b

File tree

10 files changed

+16
-16
lines changed

10 files changed

+16
-16
lines changed

Tasks/DownloadPackageV0/download.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { WebApi } from 'azure-devops-node-api';
1313
tl.setResourcePath(path.join(__dirname, 'task.json'));
1414

1515
async function main(): Promise<void> {
16-
tl.warning("This task will be deprecated soon. Please switch to using DownloadPackage@1");
16+
tl.warning("This task is deprecated. Builds that use it will break on 11-27-2023. Please switch to using DownloadPackage@1 as soon as possible.");
1717
var feed = getProjectAndFeedIdFromInputParam("feed");
1818
if(feed.projectId) {
1919
throw new Error(tl.loc("UnsupportedProjectScopedFeeds"));

Tasks/DownloadPackageV0/task.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
"version": {
1111
"Major": 0,
1212
"Minor": 229,
13-
"Patch": 1
13+
"Patch": 2
1414
},
1515
"demands": [],
1616
"minimumAgentVersion": "2.144.0",
1717
"deprecated": true,
18-
"removalDate": "2024-04-22",
18+
"removalDate": "2023-11-27",
1919
"inputs": [
2020
{
2121
"name": "feed",

Tasks/DownloadPackageV0/task.loc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
"version": {
1111
"Major": 0,
1212
"Minor": 229,
13-
"Patch": 1
13+
"Patch": 2
1414
},
1515
"demands": [],
1616
"minimumAgentVersion": "2.144.0",
1717
"deprecated": true,
18-
"removalDate": "2024-04-22",
18+
"removalDate": "2023-11-27",
1919
"inputs": [
2020
{
2121
"name": "feed",

Tasks/NuGetInstallerV0/Tests/L0.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('NuGetInstaller Suite', function () {
3333
assert(tr.stdout.indexOf('credProviderPath = ') >= 0, "should have found credential provider path");
3434
assert(tr.succeeded, 'should have succeeded');
3535
assert(tr.invokedToolCount == 1, 'should have run NuGet');
36-
assert.equal(tr.warningIssues[0], 'This task will be deprecated soon', "should have deprecation warning");
36+
assert.equal(tr.warningIssues[0], "This task is deprecated. Builds that use it will break on 11-27-2023. Please switch to using NuGetCommand@2's 'restore' option as soon as possible.", "should have deprecation warning");
3737
assert.equal(tr.errorIssues.length, 0, "should have no errors");
3838
done();
3939
}).timeout(20000);

Tasks/NuGetInstallerV0/nugetinstaller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class RestoreOptions implements INuGetCommandOptions {
2424
}
2525

2626
async function main(): Promise<void> {
27-
tl.warning("This task will be deprecated soon");
27+
tl.warning("This task is deprecated. Builds that use it will break on 11-27-2023. Please switch to using NuGetCommand@2's 'restore' option as soon as possible.");
2828
let packagingLocation: pkgLocationUtils.PackagingLocation;
2929
try {
3030
packagingLocation = await pkgLocationUtils.getPackagingUris(pkgLocationUtils.ProtocolType.NuGet);

Tasks/NuGetInstallerV0/task.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
"version": {
1111
"Major": 0,
1212
"Minor": 229,
13-
"Patch": 0
13+
"Patch": 1
1414
},
1515
"runsOn": [
1616
"Agent",
1717
"DeploymentGroup"
1818
],
1919
"minimumAgentVersion": "2.115.0",
2020
"deprecated": true,
21-
"removalDate": "2024-04-22",
21+
"removalDate": "2023-11-27",
2222
"groups": [
2323
{
2424
"name": "advanced",

Tasks/NuGetInstallerV0/task.loc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
"version": {
1111
"Major": 0,
1212
"Minor": 229,
13-
"Patch": 0
13+
"Patch": 1
1414
},
1515
"runsOn": [
1616
"Agent",
1717
"DeploymentGroup"
1818
],
1919
"minimumAgentVersion": "2.115.0",
2020
"deprecated": true,
21-
"removalDate": "2024-04-22",
21+
"removalDate": "2023-11-27",
2222
"groups": [
2323
{
2424
"name": "advanced",

Tasks/NuGetRestoreV1/nugetinstaller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class RestoreOptions implements INuGetCommandOptions {
3030
}
3131

3232
async function main(): Promise<void> {
33-
tl.warning("This task will be deprecated soon. Please switch to using NuGetCommand@2's 'restore' option");
33+
tl.warning("This task is deprecated. Builds that use it will break on 11-27-2023. Please switch to using NuGetCommand@2's 'restore' option as soon as possible.");
3434
let packagingLocation: pkgLocationUtils.PackagingLocation;
3535
try {
3636
tl.debug("getting the uris");

Tasks/NuGetRestoreV1/task.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
"version": {
1111
"Major": 1,
1212
"Minor": 229,
13-
"Patch": 3
13+
"Patch": 4
1414
},
1515
"runsOn": [
1616
"Agent",
1717
"DeploymentGroup"
1818
],
1919
"minimumAgentVersion": "2.144.0",
2020
"deprecated": true,
21-
"removalDate": "2024-04-22",
21+
"removalDate": "2023-11-27",
2222
"groups": [
2323
{
2424
"name": "advanced",

Tasks/NuGetRestoreV1/task.loc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
"version": {
1111
"Major": 1,
1212
"Minor": 229,
13-
"Patch": 3
13+
"Patch": 4
1414
},
1515
"runsOn": [
1616
"Agent",
1717
"DeploymentGroup"
1818
],
1919
"minimumAgentVersion": "2.144.0",
2020
"deprecated": true,
21-
"removalDate": "2024-04-22",
21+
"removalDate": "2023-11-27",
2222
"groups": [
2323
{
2424
"name": "advanced",

0 commit comments

Comments
 (0)