Skip to content

[pull] master from PowerShell:master - #368

Open
pull[bot] wants to merge 2795 commits into
Chatina73:masterfrom
PowerShell:master
Open

[pull] master from PowerShell:master#368
pull[bot] wants to merge 2795 commits into
Chatina73:masterfrom
PowerShell:master

Conversation

@pull

@pull pull Bot commented Mar 26, 2021

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull Bot added the ⤵️ pull label Mar 26, 2021
@TravisEz13
TravisEz13 deleted the branch Chatina73:master November 11, 2021 22:00
@TravisEz13
TravisEz13 deleted the master branch November 11, 2021 22:00
@TravisEz13
TravisEz13 restored the master branch November 11, 2021 22:00
pwshBot and others added 26 commits November 2, 2025 15:25
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: anamnavi <annavied@microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ous pattern (#26429)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
daxian-dbw and others added 30 commits July 6, 2026 16:29
…ipeline (#27667)

1. Create the `LocProject.json` file for PowerShell localization.
2. Remove the unused `.resx` resource files and source files.
3. Update the `ResourceValidation` tests.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Justin Chung <chungjustin@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4d8b066a-3f02-4ae4-bfd5-c08b6a180beb
`Test-Bom` was only used in `New-MSIPackage`, which was removed in #27213 as we are not building MSI packages for v7.7 and onward.

`Test-Bom` is no longer used anywhere in PowerShell repo, so removing it and its helpers, as well as the boms JSON files, in this PR.
This PR essentially reverts #3331, which updated all W3C URIs in the `.resx` files from `http` to `https`.

That change turned out to be wrong. Those W3C URIs are namespace identifiers, not fetchable URLs -- they must be byte‑exact. Changing them to use `https` corrupted them, and thus `ManagedParser` in the localization pipeline can't recognize the schema, which resulted in the `BL1024 "child table to itself"` error.

- This PR makes pure, mechanical 2-line substitution in every `.resx` file: `https://www.w3.orghttp://www.w3.org`.
- The `ClipboardResources.resx` was using Schema version 1.3, and it's changed to version 2.0 as the rest `.resx` files in this PR.
…se pipelines (#27795)

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Justin Chung <124807742+jshigetomi@users.noreply.github.com>
Co-authored-by: Justin Chung <chungjustin@microsoft.com>
Copilot-Session: 8784f802-9d66-4692-b64d-c0713fa213cb
Co-authored-by: Justin Chung <chungjustin@microsoft.com>
Copilot-Session: 8784f802-9d66-4692-b64d-c0713fa213cb
Co-authored-by: Justin Chung <124807742+jshigetomi@users.noreply.github.com>
The method `GetLookupDirectoryPaths` always returns the cached instance of path collection. However, the returned collection gets mutated in `CommandPathSearch.ResolveCurrentDirectoryInLookupPaths` to resolve the relative paths such as `.\tools` based on the user's current working directory `$PWD`, so for example, `.\tools` gets replaced with `cwd-1\tools` in the cached instance. Then, when the user changes to a different working directory `cwd-2`, command discovery won't find the executable or ps1 script under `cwd-2/tools` as expected, but those executables under `cwd-1\tools` will always be discoverable no matter what the `$PWD` is. That behavior is incorrect.

This pull request improves the caching logic of `GetLookupDirectoryPaths` and makes it return a copy of the path collection, so the mutation happens to the returned copy, and the cached instance is kept intact. So, for every command search, the `CommandPathSearch` will resolve relative paths against the `$PWD` that the user is located at that time.
…s and also enable tests (#27773)

- Fix the scripts used for `Copy-Item -FromSessoin/-ToSession` and `PSEdit`. They use `-Encoding Byte`, which only works in PS5.1. In PS 7+, we need to use `-AsByteStream` instead. So, those scenarios (copy alternate data stream to/from remote PS 7 session and edit file from a remote PS 7 session) have been broken for a long time.
- The remote tests for `Copy-Item` have always been disabled. This PR re-enables those tests for Windows (the `HelperRemoting` module only works on Windows).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.