Skip to content

Commit

Permalink
Starting to deprecate NuGetRestoreV1 (#18771)
Browse files Browse the repository at this point in the history
* Starting to deprecate NuGetRestoreV1

* Increasing L0 test timeout time

---------

Co-authored-by: Abby Powell (from Dev Box) <abpowell@microsoft.com>
  • Loading branch information
amp-powell and Abby Powell (from Dev Box) authored Aug 8, 2023
1 parent dc4dd21 commit 3018681
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Tasks/NuGetRestoreV1/Tests/L0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('NuGetRestore Suite', function () {
after(() => {
});
it('restore single solution', (done: Mocha.Done) => {
this.timeout(1000);
this.timeout(10000);

let tp = path.join(__dirname, 'singlesln.js')
let tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);
Expand Down
1 change: 1 addition & 0 deletions Tasks/NuGetRestoreV1/nugetinstaller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class RestoreOptions implements INuGetCommandOptions {
}

async function main(): Promise<void> {
tl.warning("This task will be deprecated soon. Please switch to using NuGetCommand@2's 'restore' option");
let packagingLocation: pkgLocationUtils.PackagingLocation;
try {
tl.debug("getting the uris");
Expand Down
3 changes: 2 additions & 1 deletion Tasks/NuGetRestoreV1/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 223,
"Minor": 226,
"Patch": 0
},
"runsOn": [
"Agent",
"DeploymentGroup"
],
"minimumAgentVersion": "2.144.0",
"deprecated": true,
"groups": [
{
"name": "advanced",
Expand Down
3 changes: 2 additions & 1 deletion Tasks/NuGetRestoreV1/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 223,
"Minor": 226,
"Patch": 0
},
"runsOn": [
"Agent",
"DeploymentGroup"
],
"minimumAgentVersion": "2.144.0",
"deprecated": true,
"groups": [
{
"name": "advanced",
Expand Down

0 comments on commit 3018681

Please sign in to comment.