Repository navigation
Default restore to true in sdk-task scripts - #14354
Merged
ViktorHofer merged 1 commit intoJul 14, 2026
Merged
Conversation
sdk-task.ps1/.sh previously defaulted restore to false, diverging from tools.ps1's default of true (which the .ps1 shadowed via its own [switch]). Default restore to true in both scripts and add a -norestore/--norestore opt-out. The -restore/--restore flag is retained as a legacy no-op so existing consumers that pass it don't break. Co-authored-by: Copilot <[email protected]> Copilot-Session: 9e366d06-83fa-487b-898d-dec74a8bea17
ViktorHofer
temporarily deployed
to
copilot-pat-pool
July 14, 2026 12:39 — with
GitHub Actions
Inactive
ViktorHofer
temporarily deployed
to
copilot-pat-pool
July 14, 2026 12:39 — with
GitHub Actions
Inactive
ViktorHofer
had a problem deploying
to
copilot-pat-pool
July 14, 2026 12:40 — with
GitHub Actions
Failure
ViktorHofer
temporarily deployed
to
copilot-pat-pool
July 14, 2026 12:42 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
Pull request overview
This PR aligns eng/common/sdk-task.ps1 and eng/common/sdk-task.sh with Arcade’s typical behavior by defaulting restore to on, while providing a -norestore/--norestore opt-out and keeping -restore/--restore as a legacy no-op for compatibility.
Changes:
- Default restore behavior changed to true in both scripts.
- Added
-norestore/--norestoreto skip the restore step. - Retained
-restore/--restoreas a backward-compatible no-op.
Show a summary per file
| File | Description |
|---|---|
| eng/common/sdk-task.sh | Default restore to true; add --norestore; update usage text. |
| eng/common/sdk-task.ps1 | Default restore behavior to run unless -norestore; update usage text and parameter set. |
Copilot's findings
- Files reviewed: 2/2 changed files
- Comments generated: 5
JanProvaznik
approved these changes
Jul 14, 2026
This was referenced Jul 16, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sdk-task.ps1/sdk-task.shdefaultedrestoreto false, diverging fromtools.ps1's default oftrue(the.ps1shadowed thetools.ps1default via its own[switch] $restore, which is alwaysfalseunless passed).This regressed upstream in dotnet/arcade@ea5fa16, which flipped the default from restoring-by-default to not restoring. That same commit reworked the SDK tasks to use
PackageReferenceitems, which means the tasks now need a restore in certain cases - so defaultingrestoreto false leaves those consumers broken.This changes both scripts to default restore to true and adds a
-norestore/--norestoreopt-out.Behavior
restorenow defaults to true in both scripts.-norestore/--norestoreflag skips the restore step.-restore/--restoreis retained as a legacy no-op so existing consumers that pass it don't break.