Commit Graph
10810 Commits
Author SHA1 Message Date
MartinGC94 e489cec604 Remove Regex use 2024-12-12 11:17:44 -05:00
MartinGC94 1452374fbf Improve cim ETS member inference completion 2024-12-12 11:17:44 -05:00
Jordan Borean 7cc8a9ad32 Emit ProgressRecord in CLIXML minishell output
Instead of never emitting a ProgressRecord if stdout is redirected, continue to emit the CLIXML serialized record when pwsh was started with -OutputFormat xml regardless of redirection. This allows calling processes to receive the progress record from the spawned process when it captures the output.
2024-12-11 20:22:43 -05:00
Patrick Meinecke 36740ab4a2 Assign the value returned by the MaybeAdd method 2024-12-11 15:31:04 -05:00
Jordan Borean 294adb47f1 Add support for interface static abstract props
Add support for writing a PowerShell class that can implement an
interface that contains a static abstract property introduced in C# 11.
2024-12-10 14:02:11 -05:00
Jordan Borean 06e2093e8c Change call to optional add in the binder expression 2024-12-09 14:35:05 -05:00
Jordan Borean 89921dd500 Turn off AMSI member invocation on nix release builds
Turn off the AMSI member invocation logging for non-Windows release
builds. This is slightly more efficient as there's no extra work to
create the AMSI string.
2024-12-09 14:35:05 -05:00
dependabot[bot] 75961d5afb Bump github/codeql-action from 3.27.0 to 3.27.6 (#24639)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.27.0 to 3.27.6.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/662472033e021d55d94146f66f6058822b0b39fd...aa578102511db1f4524ed59b8cc2bae4f6e88195)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-09 10:19:54 -08:00
Jordan Borean 1e07bd0cb5 Add error for Get-PSSession -ComputerName on Unix (#21009) 2024-12-05 16:26:57 +05:00
Jordan BoreanandIlya 8aea111930 Update src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs
Co-authored-by: Ilya <darpa@yandex.ru>
2024-12-04 11:13:47 -05:00
Jordan BoreanandIlya ad8d13b2ac Apply suggestions from code review
Co-authored-by: Ilya <darpa@yandex.ru>
2024-12-04 11:13:47 -05:00
Jordan Borean 82341b0e3b Add remote runspace check for PushRunspace
Add explicit exception when attempting to call PushRunspace on a
runspace that is not remote. Instead of failing with a hard to
understand NullReferenceException an ArgumentException is raised with
information about what went wrong.
2024-12-04 11:13:47 -05:00
Matej Kafka b18eacaa83 Resolve symbolic link target relative to the symbolic link instead of the working directory (#15235) (#20943) 2024-12-03 15:00:00 -08:00
xtqqczze c24e8e4402 Set LangVersion compiler option to 13.0 (#24619) 2024-11-26 21:25:50 +05:00
Jordan Borean 22beba4a47 Fix up buffer management getting network roots (#24600)
Fixes the logic used when getting the PSDrive DisplayRoot for network PSDrive paths to exclude null terminators.
2024-11-26 11:59:34 +05:00
xtqqczze 060cbe3412 Set LangVersion compiler option to 13.0 (#24617) 2024-11-26 08:44:05 +05:00
Sean Wheeler a2b2d7e704 Update HelpInfoUri for 7.5 (#24610) 2024-11-22 09:58:44 -08:00
Aditya Patwardhan 7ca7aae1d1 Update metadata.json for PowerShell 7.5 RC1 release (#24589) 2024-11-15 16:15:00 -08:00
Aditya Patwardhan 5dbc3d564d Update nuget publish to use Deploy Box (#24596) 2024-11-15 15:44:12 -08:00
Justin Chung cc02e3119c Added Deploy Box Product Pathway to GitHub Release and NuGet Release Pipelines (#24583) 2024-11-15 15:14:44 -08:00
Aditya Patwardhan 435bd05d16 Update machine pool for copy blob and upload buildinfo stage (#24587) 2024-11-14 14:08:14 -08:00
PowerShell Team Bot c2f1ff00ae Bump .NET 9 and dependencies (#24573) 2024-11-12 15:57:38 -08:00
Jordan Borean ba238808fb Support PSObject wrapped values in ArgumentToEncodingTransformationAttribute (#24555) 2024-11-12 08:41:22 +05:00
dependabot[bot] 31b70ecd9f Bump actions/dependency-review-action from 4.3.4 to 4.4.0 (#24503)
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 4.3.4 to 4.4.0.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](https://github.com/actions/dependency-review-action/compare/5a2ce3f5b92ee19cbb1541a4984c76d921601d7c...4081bf99e2866ebe428fc0477b69eb4fcda7220a)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-05 09:38:41 -08:00
dependabot[bot] 1061a2e9bc Bump actions/checkout from 4.2.1 to 4.2.2 (#24488)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.1 to 4.2.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871...11bd71901bbe5b1630ceea73d27597364c9af683)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-05 09:38:07 -08:00
dependabot[bot] 59fe1c8eb2 Bump agrc/reminder-action from 1.0.14 to 1.0.15 (#24384)
Bumps [agrc/reminder-action](https://github.com/agrc/reminder-action) from 1.0.14 to 1.0.15.
- [Release notes](https://github.com/agrc/reminder-action/releases)
- [Changelog](https://github.com/agrc/reminder-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/agrc/reminder-action/compare/b5cc06580b6a711baddf6a947131f85a422fa263...45201302ec0071cce809a483111bda4cdc7d10f2)

---
updated-dependencies:
- dependency-name: agrc/reminder-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-05 09:37:41 -08:00
dependabot[bot] ecae5077a3 Bump actions/upload-artifact from 4.4.0 to 4.4.3 (#24410)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.4.0 to 4.4.3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/50769540e7f4bd5e21e526ee35c689e35e0d6874...b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-05 09:36:14 -08:00
dependabot[bot] a4552be9e3 Bump github/codeql-action from 3.26.10 to 3.27.0 (#24483)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.10 to 3.27.0.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/e2b3eafc8d227b0241d48be5f425d47c2d750a13...662472033e021d55d94146f66f6058822b0b39fd)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-05 09:32:16 -08:00
PowerShell Team BotandTravis Plunk 7db6a70b56 [master] Update branch for release (#24534)
* Update package references

* Update cgmanifest

* Update IsolatedModule.Tests.ps1

---------

Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2024-10-31 15:15:28 -07:00
Aditya Patwardhan 4b40e5f60e Revert "Update package references (#24414)" (#24532)
This reverts commit 01ae632636.
2024-10-31 13:29:49 -07:00
Travis Plunk adac4c7117 Add a way to use only NuGet feed sources (#24528)
* Update build.psm1

* update default feeds

* fix issue with cgmanifest having duplicate existing entries

* update pattern
2024-10-31 20:13:04 +00:00
Patrick Meinecke 3f51dfa603 Update changelog for v7.4.6 release (#24496) 2024-10-31 09:19:52 -07:00
alericksonandAditya Patwardhan c2dd2c0202 Update PSResourceGet to v1.1.0-RC2 (#24512)
* Update PSResourceGet to v1.1.0-RC2

* Fix windows packaging

* Update windows bom

* Update version string to be lowercase

---------

Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
2024-10-31 07:27:47 +00:00
Aditya Patwardhan fac134832c Bump .NET to 9.0.100-rc.2.24474.11 (#24509) 2024-10-30 18:21:09 -07:00
Aditya Patwardhan 38c2258954 Fix seed max value for Container Linux CI (#24510) 2024-10-30 17:16:30 -07:00
Aditya Patwardhan 2f4f585e7f Update metadata.json for 7.2.24 and 7.4.6 releases (#24484) 2024-10-23 22:20:17 +00:00
Aditya Patwardhan fa78b57ba9 Download package from package build for generating vpack (#24481) 2024-10-23 10:51:05 -07:00
Travis Plunk 623c45174a Keep the roff file when gzipping it. (#24450) 2024-10-15 21:36:07 -07:00
Patrick Meinecke 14c82b568a Delete the msix blob if it's already there (#24353) 2024-10-14 14:11:13 -07:00
Anam Navied 8b231fb49b Add PMC mapping for debian 12 (bookworm) (#24413) 2024-10-14 14:03:56 -07:00
Travis Plunk ac8ab0db22 Checkin generated manpage (#24423)
* checkin generataed manpage

* move ronn file into new folder

* update build and release to use new asset

* add a minimal macos packaging test

* add correct dependency for the macos packaging stage

* fix packaging error

* remove removing files
2024-10-14 12:16:10 -07:00
Travis Plunk 4f7819d143 Add CodeQL scanning to APIScan build (#24303)
* Enable CodeQL in the APIScan build

* fix indentation

* fix build name

* Manually add CodeQL

* enable TSA directly in codeql

* update codeql source code directory

* go back to version 0

* switch to variable to configure source code root

* Update .pipelines/apiscan-gen-notice.yml
2024-10-11 13:33:15 -07:00
PowerShell Team Bot 01ae632636 Update package references (#24414) 2024-10-11 19:08:14 +00:00
dependabot[bot] f8ae87975e Bump actions/checkout from 4.2.0 to 4.2.1 (#24395)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/d632683dd7b4114ad314bca15554477dd762a938...eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-10 13:35:26 -07:00
Thomas NietoandTravis Plunk c191efe890 Fix devcontainer extensions key (#24359)
* Fix devcontainer vscode extensions definition

* Fix formatting

---------

Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2024-10-03 23:03:04 +00:00
Tess Gauthier 5b6a667b50 Update vpack pipeline (#24281)
* explicitly disable async sdl

* Update PowerShell-vPack-Official.yml
2024-10-03 15:29:33 -07:00
Dongbo Wang 1a39e4e8e1 Update PSReadLine to 2.3.6 (#24380) 2024-10-03 15:09:24 -07:00
2d092b1ea6 Bring changes from v7.5.0-preview.5 Release Branch to Master (#24369)
* Merged PR 32689: Fix typo in release-MakeBlobPublic.yml

Fix typo in release-MakeBlobPublic.yml

* Merged PR 32696: Fixed Test Scenario for Compress-PSResource

The test was failing because a relative path was provided to parameter -DestinationPath.
Should update Compress-PSResource to accept relative paths for -DestinationPath.

----
#### AI description  (iteration 1)
#### PR Classification
Bug fix for a failing test scenario.

#### PR Summary
This pull request fixes the test scenario for the `Compress-PSResource` function.
- `Microsoft.PowerShell.PSResourceGet.Tests.ps1`: Updated the path resolution for `$PublishedNupkgs` using `Resolve-Path` and added a missing line break in the test for compressing a module.

* Merged PR 32709: Changelog for v7.5.0-preview.5

Added 7.5.0-preview.5 change log

----
Changelog update for the new preview release.
This pull request updates the changelog for the v7.5.0-preview.5 release, documenting breaking changes, engine updates, new features, and other improvements.
- `ConvertTo-Json`: Treat large Enum values as numbers.
- `Import-Module`: Fix processor architecture validation.
- `Resolve-Path` and `Convert-Path`: Add `-Force` parameter to support wildcard hidden files.
- `PSResourceGet` test: Fix cleanup.
- Various build and packaging improvements, including updates to dependencies and test scenarios.

* added ks2 to release pipeline

* Merged PR 32752: Copy global tools to static site

Rather than an intermediate folder that must be manually copied into the static site.

----
#### AI description  (iteration 1)
#### PR Classification
Code modification to enhance functionality.

#### PR Summary
This pull request updates the release pipeline to copy global tools to a static site.
- Changes in `/.pipelines/templates/release-MakeBlobPublic.yml` to set `prefix` and `destinationPrefix` for blob copying.
- Adjusted destination container name to use `$web` and updated blob naming conventions.

* Merged PR 32759: Switch to single quotes for container name in global tool copy

#### AI description  (iteration 1)
#### PR Classification
Code cleanup

#### PR Summary
This pull request updates the container name string to use single quotes for consistency.
- Changes in `/.pipelines/templates/release-MakeBlobPublic.yml` to switch `$destinationContainerName` from double quotes to single quotes.

* Added condition for make blob public

* moved conditional from global tools to copy

* conditional as a paramter instead of var

* removed dependency

* blob folder name to release Tag

---------

Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
Co-authored-by: Justin Chung <t-juchung@microsoft.com>
Co-authored-by: Justin Chung <chungjustin@microsoft.com>
Co-authored-by: Patrick Meinecke <pmeinecke@microsoft.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2024-10-03 21:32:33 +00:00
dependabot[bot] 4a129cd955 Bump actions/checkout from 4.1.7 to 4.2.0 (#24348)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/692973e3d937129bcbf40652eb9f2f61becf3332...d632683dd7b4114ad314bca15554477dd762a938)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-03 13:35:16 -07:00
dependabot[bot] 0aedc61a18 Bump github/codeql-action from 3.26.8 to 3.26.10 (#24364)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.8 to 3.26.10.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/294a9d92911152fe08befb9ec03e240add280cb3...e2b3eafc8d227b0241d48be5f425d47c2d750a13)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-03 13:34:39 -07:00