Skip to content

Commit bded102

Browse files
authored
Fix typos in numerous files (#1875)
1 parent 3d28924 commit bded102

File tree

63 files changed

+613
-613
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+613
-613
lines changed

CHANGELOG/preview.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
- Update `-ModulePrefix` to be a static parameter (#1868)
1111
- Bug fix for populating all `#Requires` fields in `Update-PSScriptFileInfo` (#1863)
1212
- Bug fix for populating `Includes` metadata for packages from container registry repositories (#1861)
13-
- Bug fix for `Find-PSRessource` and `Install-PSResource` not retrieving unlisted package versions (#1859)
13+
- Bug fix for `Find-PSResource` and `Install-PSResource` not retrieving unlisted package versions (#1859)
1414

1515

1616
## [1.2.0-preview2](https://github.com/PowerShell/PSResourceGet/compare/v1.2.0-preview1..v1.2.0-preview2) - 2025-07-21
1717

1818
### New Features
19-
- Ingetration of the Azure Artifacts Credential Provider for ADO feeds (#1765)
19+
- Integration of the Azure Artifacts Credential Provider for ADO feeds (#1765)
2020

2121
### Bug Fix
2222
- Bug fixes for NuGet v3 dependencies (#1841 Thanks @o-l-a-v!)
@@ -46,7 +46,7 @@
4646

4747
- Update to use OCI v2 APIs for Container Registry (#1737)
4848
- Bug fixes for finding and installing from local repositories on Linux machines (#1738)
49-
- Bug fix for finding package name with 4 part version from local repositories (#1739)
49+
- Bug fix for finding package name with 4 part version from local repositories (#1739)
5050

5151
# Preview Changelog
5252

@@ -77,7 +77,7 @@
7777

7878
### Bug Fixes
7979

80-
- Add prerelease string when NormalizedVersion doesn't exist, but prelease string does (#1681 Thanks @sean-r-williams)
80+
- Add prerelease string when NormalizedVersion doesn't exist, but prerelease string does (#1681 Thanks @sean-r-williams)
8181
- Add retry logic when deleting files (#1667 Thanks @o-l-a-v!)
8282
- Fix broken PAT token use (#1672)
8383
- Updated error messaging for authenticode signature failures (#1701)
@@ -92,4 +92,4 @@
9292

9393
- Fix incorrect request URL when installing resources from ADO (#1597 Thanks @anytonyoni!)
9494
- Fix for swallowed exceptions (#1569)
95-
- Fix for PSResourceGet not working in Constrained Languange Mode (#1564)
95+
- Fix for PSResourceGet not working in Constrained Language Mode (#1564)

Examples/FindRepositorySearchingExamples.md

Lines changed: 125 additions & 125 deletions
Large diffs are not rendered by default.

buildtools.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
Copyright = '(c) Microsoft Corporation. All rights reserved.'
2525

2626
# Description of the functionality provided by this module
27-
Description = "Build utilties."
27+
Description = "Build utilities."
2828

2929
# Modules that must be imported into the global environment prior to importing this module
3030
#RequiredModules = @(

src/Microsoft.PowerShell.PSResourceGet.psd1

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@
6666
- Update `-ModulePrefix` to be a static parameter (#1868)
6767
- Bug fix for populating all `#Requires` fields in `Update-PSScriptFileInfo` (#1863)
6868
- Bug fix for populating `Includes` metadata for packages from container registry repositories (#1861)
69-
- Bug fix for `Find-PSRessource` and `Install-PSResource` not retrieving unlisted package versions (#1859)
69+
- Bug fix for `Find-PSResource` and `Install-PSResource` not retrieving unlisted package versions (#1859)
7070
7171
## 1.2.0-preview2
7272
7373
### New Features
74-
- Ingetration of the Azure Artifacts Credential Provider for ADO feeds (#1765)
74+
- Integration of the Azure Artifacts Credential Provider for ADO feeds (#1765)
7575
7676
### Bug Fix
7777
- Bug fixes for NuGet v3 dependencies (#1841 Thanks @o-l-a-v!)
@@ -124,7 +124,7 @@
124124
125125
- Update to use OCI v2 APIs for Container Registry (#1737)
126126
- Bug fixes for finding and installing from local repositories on Linux machines (#1738)
127-
- Bug fix for finding package name with 4 part version from local repositories (#1739)
127+
- Bug fix for finding package name with 4 part version from local repositories (#1739)
128128
129129
## 1.1.0-RC1
130130
@@ -136,7 +136,7 @@
136136
137137
- Fix packaging name matching when searching in local repositories (#1731)
138138
- `Compress-PSResource` `-PassThru` now passes `FileInfo` instead of string (#1720)
139-
- Fix for `Compress-PSResource` not properly compressing scripts (#1719)
139+
- Fix for `Compress-PSResource` not properly compressing scripts (#1719)
140140
- Add `AcceptLicense` to Save-PSResource (#1718 Thanks @o-l-a-v!)
141141
- Better support for NuGet v2 feeds (#1713 Thanks @o-l-a-v!)
142142
- Better handling of `-WhatIf` support in `Install-PSResource` (#1531 Thanks @o-l-a-v!)
@@ -153,7 +153,7 @@
153153
154154
### Bug Fixes
155155
156-
- Add prerelease string when NormalizedVersion doesn't exist, but prelease string does (#1681 Thanks @sean-r-williams)
156+
- Add prerelease string when NormalizedVersion doesn't exist, but prerelease string does (#1681 Thanks @sean-r-williams)
157157
- Add retry logic when deleting files (#1667 Thanks @o-l-a-v!)
158158
- Fix broken PAT token use (#1672)
159159
- Updated error messaging for authenticode signature failures (#1701)
@@ -162,14 +162,14 @@
162162
163163
### New Features
164164
165-
- Support for Azure Container Registries (#1495, #1497-#1499, #1501, #1502, #1505, #1522, #1545, #1548, #1550, #1554, #1560, #1567,
165+
- Support for Azure Container Registries (#1495, #1497-#1499, #1501, #1502, #1505, #1522, #1545, #1548, #1550, #1554, #1560, #1567,
166166
#1573, #1576, #1587, #1588, #1589, #1594, #1598, #1600, #1602, #1604, #1615)
167167
168168
### Bug Fixes
169169
170170
- Fix incorrect request URL when installing resources from ADO (#1597 Thanks @anytonyoni!)
171171
- Fix for swallowed exceptions (#1569)
172-
- Fix for PSResourceGet not working in Constrained Languange Mode (#1564)
172+
- Fix for PSResourceGet not working in Constrained Language Mode (#1564)
173173
174174
## 1.0.6
175175
@@ -243,7 +243,7 @@
243243
- Bug fix Artifactory v2 endpoint failures (#1428)
244244
- Bug fix Artifactory v3 endpoint failures (#1427)
245245
- Bug fix `-RequiredResource` silent failures (#1426)
246-
- Bug fix for v2 repository returning extra packages for `-Tag` based search with `-Prerelease` (#1405)
246+
- Bug fix for v2 repository returning extra packages for `-Tag` based search with `-Prerelease` (#1405)
247247
248248
See change log (CHANGELOG) at https://github.com/PowerShell/PSResourceGet
249249
'@

src/code/CompressPSResource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public sealed class CompressPSResource : PSCmdlet
5959

6060
protected override void BeginProcessing()
6161
{
62-
// Create a respository store (the PSResourceRepository.xml file) if it does not already exist
62+
// Create a repository store (the PSResourceRepository.xml file) if it does not already exist
6363
// This is to create a better experience for those who have just installed v3 and want to get up and running quickly
6464
RepositorySettings.CheckRepositoryStore();
6565

src/code/ContainerRegistryResponseUtil.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public ContainerRegistryResponseUtil(PSRepositoryInfo repository) : base(reposit
2626

2727
#endregion
2828

29-
#region Overriden Methods
29+
#region Overridden Methods
3030

3131
public override IEnumerable<PSResourceResult> ConvertToPSResourceResult(FindResults responseResults, bool isResourceRequestedWithWildcard = false)
3232
{

src/code/ContainerRegistryServerAPICalls.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public ContainerRegistryServerAPICalls(PSRepositoryInfo repository, PSCmdlet cmd
7575

7676
#endregion
7777

78-
#region Overriden Methods
78+
#region Overridden Methods
7979

8080
/// <summary>
8181
/// Find method which allows for searching for all packages from a repository and returns latest version for each.
@@ -126,7 +126,7 @@ public override FindResults FindCommandOrDscResource(string[] tags, bool include
126126
/// Find method which allows for searching for single name and returns latest version.
127127
/// Name: no wildcard support
128128
/// Examples: Search "PowerShellGet"
129-
/// Implementation Note: Need to filter further for latest version (prerelease or non-prerelease dependening on user preference)
129+
/// Implementation Note: Need to filter further for latest version (prerelease or non-prerelease depending on user preference)
130130
/// </summary>
131131
public override FindResults FindName(string packageName, bool includePrerelease, ResourceType type, out ErrorRecord errRecord)
132132
{
@@ -451,12 +451,12 @@ internal string GetContainerRegistryAccessToken(bool needCatalogAccess, out Erro
451451
/// <summary>
452452
/// Checks if container registry repository is unauthenticated.
453453
/// </summary>
454-
internal bool IsContainerRegistryUnauthenticated(string containerRegistyUrl, bool needCatalogAccess, out ErrorRecord errRecord, out string anonymousAccessToken)
454+
internal bool IsContainerRegistryUnauthenticated(string containerRegistryUrl, bool needCatalogAccess, out ErrorRecord errRecord, out string anonymousAccessToken)
455455
{
456456
_cmdletPassedIn.WriteDebug("In ContainerRegistryServerAPICalls::IsContainerRegistryUnauthenticated()");
457457
errRecord = null;
458458
anonymousAccessToken = string.Empty;
459-
string endpoint = $"{containerRegistyUrl}/v2/";
459+
string endpoint = $"{containerRegistryUrl}/v2/";
460460
HttpResponseMessage response;
461461
try
462462
{
@@ -497,7 +497,7 @@ internal bool IsContainerRegistryUnauthenticated(string containerRegistyUrl, boo
497497

498498
_cmdletPassedIn.WriteDebug($"Getting anonymous access token from the realm: {url}");
499499

500-
// we dont check the errorrecord here because we want to return false if we get a 401 and not throw an error
500+
// we don't check the error record here because we want to return false if we get a 401 and not throw an error
501501
_cmdletPassedIn.WriteDebug($"Getting anonymous access token from the realm: {url}");
502502
ErrorRecord errRecordTemp = null;
503503

@@ -644,7 +644,7 @@ internal JObject GetContainerRegistryRepositoryManifest(string packageName, stri
644644
}
645645

646646
/// <summary>
647-
/// Get the blob for the package (ie repository in container registry terms) from the repositroy (ie registry in container registry terms)
647+
/// Get the blob for the package (ie repository in container registry terms) from the repository (ie registry in container registry terms)
648648
/// Used when installing the package
649649
/// </summary>
650650
internal async Task<HttpContent> GetContainerRegistryBlobAsync(string packageName, string digest, string containerRegistryAccessToken)
@@ -916,7 +916,7 @@ internal async Task<HttpResponseMessage> UploadManifest(string packageName, stri
916916
}
917917
catch (HttpRequestException e)
918918
{
919-
throw new HttpRequestException("Error occured while trying to create manifest: " + e.Message);
919+
throw new HttpRequestException("Error occurred while trying to create manifest: " + e.Message);
920920
}
921921
}
922922

@@ -931,7 +931,7 @@ internal async Task<HttpContent> GetHttpContentResponseJObject(string url, Colle
931931
}
932932
catch (HttpRequestException e)
933933
{
934-
throw new HttpRequestException("Error occured while trying to retrieve response: " + e.Message);
934+
throw new HttpRequestException("Error occurred while trying to retrieve response: " + e.Message);
935935
}
936936
}
937937

@@ -1074,7 +1074,7 @@ internal async Task<HttpResponseHeaders> GetHttpResponseHeader(string url, HttpM
10741074
}
10751075
catch (HttpRequestException e)
10761076
{
1077-
throw new HttpRequestException("Error occured while trying to retrieve response header: " + e.Message);
1077+
throw new HttpRequestException("Error occurred while trying to retrieve response header: " + e.Message);
10781078
}
10791079
}
10801080

@@ -1117,7 +1117,7 @@ private async Task<HttpContent> SendContentRequestAsync(HttpRequestMessage messa
11171117
}
11181118
catch (Exception e)
11191119
{
1120-
throw new SendRequestException($"Error occured while sending request to Container Registry server for content with: {e.GetType()} '{e.Message}'", e);
1120+
throw new SendRequestException($"Error occurred while sending request to Container Registry server for content with: {e.GetType()} '{e.Message}'", e);
11211121
}
11221122
}
11231123

@@ -1133,7 +1133,7 @@ private async Task<JObject> SendRequestAsync(HttpRequestMessage message)
11331133
}
11341134
catch (Exception e)
11351135
{
1136-
throw new SendRequestException($"Error occured while sending request to Container Registry server with: {e.GetType()} '{e.Message}'", e);
1136+
throw new SendRequestException($"Error occurred while sending request to Container Registry server with: {e.GetType()} '{e.Message}'", e);
11371137
}
11381138

11391139
switch (response.StatusCode)
@@ -1233,7 +1233,7 @@ private async Task<HttpResponseHeaders> SendRequestHeaderAsync(HttpRequestMessag
12331233
}
12341234
catch (HttpRequestException e)
12351235
{
1236-
throw new HttpRequestException("Error occured while trying to retrieve response: " + e.Message);
1236+
throw new HttpRequestException("Error occurred while trying to retrieve response: " + e.Message);
12371237
}
12381238
}
12391239

@@ -1264,7 +1264,7 @@ private async Task<HttpResponseMessage> PutRequestAsync(string url, string fileP
12641264
}
12651265
catch (Exception e)
12661266
{
1267-
throw new SendRequestException($"Error occured while uploading module to ContainerRegistry: {e.GetType()} '{e.Message}'", e);
1267+
throw new SendRequestException($"Error occurred while uploading module to ContainerRegistry: {e.GetType()} '{e.Message}'", e);
12681268
}
12691269
}
12701270

@@ -1552,7 +1552,7 @@ private bool TryCreateAndUploadManifest(string fullNupkgFile,
15521552
catch (Exception e)
15531553
{
15541554
errRecord = new ErrorRecord(
1555-
new UploadBlobException($"Error occured while uploading package manifest to ContainerRegistry: {e.GetType()} '{e.Message}'", e),
1555+
new UploadBlobException($"Error occurred while uploading package manifest to ContainerRegistry: {e.GetType()} '{e.Message}'", e),
15561556
"PackageManifestUploadError",
15571557
ErrorCategory.InvalidResult,
15581558
_cmdletPassedIn);
@@ -1741,7 +1741,7 @@ internal async Task<string> GetStartUploadBlobLocation(string packageName, strin
17411741
}
17421742
catch (Exception e)
17431743
{
1744-
throw new UploadBlobException($"Error occured while starting to upload the blob location used for publishing to ContainerRegistry: {e.GetType()} '{e.Message}'", e);
1744+
throw new UploadBlobException($"Error occurred while starting to upload the blob location used for publishing to ContainerRegistry: {e.GetType()} '{e.Message}'", e);
17451745
}
17461746
}
17471747

@@ -1759,7 +1759,7 @@ internal async Task<HttpResponseMessage> EndUploadBlob(string location, string f
17591759
}
17601760
catch (Exception e)
17611761
{
1762-
throw new UploadBlobException($"Error occured while uploading module to ContainerRegistry: {e.GetType()} '{e.Message}'", e);
1762+
throw new UploadBlobException($"Error occurred while uploading module to ContainerRegistry: {e.GetType()} '{e.Message}'", e);
17631763
}
17641764
}
17651765

src/code/CredentialProvider.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ private static string VSCredentialProviderFile(string visualStudioPath, string c
113113

114114
internal static PSCredential GetCredentialsFromProvider(Uri uri, PSCmdlet cmdletPassedIn)
115115
{
116-
cmdletPassedIn.WriteVerbose("Enterting CredentialProvider::GetCredentialsFromProvider");
116+
cmdletPassedIn.WriteVerbose("Entering CredentialProvider::GetCredentialsFromProvider");
117117
string credProviderPath = string.Empty;
118-
118+
119119
// Find credential provider
120120
// Option 1. Use env var 'NUGET_PLUGIN_PATHS' to find credential provider.
121121
// See: https://docs.microsoft.com/en-us/nuget/reference/extensibility/nuget-cross-platform-plugins#plugin-installation-and-discovery
@@ -161,7 +161,7 @@ internal static PSCredential GetCredentialsFromProvider(Uri uri, PSCmdlet cmdlet
161161
{
162162
FileInfo fileInfo = new FileInfo(credProviderPath);
163163
if (!Utils.TryGetCaseInsensitiveFilePath(fileInfo.Directory.FullName, _credProviderDll, out credProviderPath))
164-
{
164+
{
165165
cmdletPassedIn.WriteError(new ErrorRecord(
166166
new FileNotFoundException($"Path found '{credProviderPath}' is not a valid Azure Artifact Credential Provider executable. See https://github.com/NuGet/Home/wiki/NuGet-cross-plat-authentication-plugin#plugin-installation-and-discovery to set up the Credential Provider."),
167167
"CredentialProviderFileNotFound",

src/code/GetHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ public IEnumerable<String> FilterPkgPathsByVersion(VersionRange versionRange, Li
175175
_cmdletPassedIn.WriteDebug($"Package version parsed as NuGet version: '{pkgNugetVersion}'");
176176

177177
// For Uninstall-PSResource Prerelease parameter equates to selecting prerelease versions only to uninstall.
178-
// For other cmdlets (Find-PSResource, Install-PSResource) Prerelease parmater equates to selecting stable and prerelease versions.
179-
// We will not just select prerelase versions. For Get-InstalledPSResource, there is no Prerelease parameter.
178+
// For other cmdlets (Find-PSResource, Install-PSResource) Prerelease parameter equates to selecting stable and prerelease versions.
179+
// We will not just select prerelease versions. For Get-InstalledPSResource, there is no Prerelease parameter.
180180
if (versionRange.Satisfies(pkgNugetVersion))
181181
{
182182
if (!selectPrereleaseOnly || pkgNugetVersion.IsPrerelease)

src/code/GetInstalledPSResource.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected override void BeginProcessing()
6666
// an exact version will be formatted into a version range.
6767
if (Version == null)
6868
{
69-
WriteDebug("Searcing for all versions");
69+
WriteDebug("Searching for all versions");
7070
_versionRange = VersionRange.All;
7171
}
7272
else if (!Utils.TryParseVersionOrVersionRange(Version, out _versionRange))
@@ -153,7 +153,7 @@ protected override void ProcessRecord()
153153
List<string> pkgsNotFound = new List<string>();
154154
foreach (string name in namesToSearch)
155155
{
156-
if (!pkgsFound.Contains(name, StringComparer.OrdinalIgnoreCase))
156+
if (!pkgsFound.Contains(name, StringComparer.OrdinalIgnoreCase))
157157
{
158158
if (name.Contains('*'))
159159
{

0 commit comments

Comments
 (0)