Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SandboxTest.ps1 #106266

Merged
merged 1 commit into from
May 9, 2023
Merged

Update SandboxTest.ps1 #106266

merged 1 commit into from
May 9, 2023

Conversation

Trenly
Copy link
Contributor

@Trenly Trenly commented May 9, 2023

SandboxTest.ps1 currently only has -PreRelease to select a version of winget. This is great, but it re-downloads winget every time you switch between using -PreRelease and not using it. This PR changes how the script detects winget versions. Instead of checking the SandboxTest folder for the winget appx, this change now makes it use the same directory that WingetVersionManager.ps1 uses. This way, if the user already has the version available in their directory structure, it doesn't need to be downloaded at all. Once the proper appx has been selected, it is then copied to the SandboxTest folder.

This PR also changes how the SHA and download URL for Winget are fetched - meaning that only a single call is made to GitHub API's instead of two calls, so that a new switch for selecting the Winget version can be implemented in a separate PR.

cc @mdanish-kh @SpecterShell @russellbanks @denelon

Microsoft Reviewers: Open in CodeFlow

@wingetbot
Copy link
Collaborator

Service Badge  Service Badge  

@microsoft-github-policy-service
Copy link
Contributor

Trenly,

Changes to one or more files in your PR require authorization to modify. This PR has been assigned to our on call staff to evaluate.

Template: msftbot/requiresApproval/MSFT

@microsoft-github-policy-service microsoft-github-policy-service bot added the Moderator-Approved One of the Moderators has reviewed and approved this PR label May 9, 2023
@denelon denelon merged commit 24a590a into microsoft:master May 9, 2023
@Trenly Trenly deleted the SandboxTestSaveTo branch May 9, 2023 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Moderator-Approved One of the Moderators has reviewed and approved this PR Project-File
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants