Skip to content

Commit 9b0c1a9

Browse files
committed
# Conflicts: # src/System.Management.Automation/engine/ExperimentalFeature/ExperimentalFeature.cs # src/System.Management.Automation/engine/parser/token.cs # test/powershell/Language/Parser/Parsing.Tests.ps1
2 parents 0020155 + 0d5d017 commit 9b0c1a9

1,882 files changed

Lines changed: 20655 additions & 11262 deletions

File tree

Some content is hidden

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

‎.dependabot/config.yml‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,52 @@ update_configs:
88
update_schedule: "live"
99
default_labels:
1010
- "CL-BuildPackaging"
11+
ignored_updates:
12+
- match:
13+
dependency_name: "System.*"
14+
- match:
15+
dependency_name: "Microsoft.Win32.Registry.AccessControl"
16+
- match:
17+
dependency_name: "Microsoft.Windows.Compatibility"
1118

1219
- package_manager: "dotnet:nuget"
1320
directory: "/tools/packaging/projects/reference/Microsoft.PowerShell.Commands.Utility"
1421
update_schedule: "live"
1522
default_labels:
1623
- "CL-BuildPackaging"
24+
ignored_updates:
25+
- match:
26+
dependency_name: "System.*"
27+
- match:
28+
dependency_name: "Microsoft.Win32.Registry.AccessControl"
29+
- match:
30+
dependency_name: "Microsoft.Windows.Compatibility"
1731

1832
- package_manager: "dotnet:nuget"
1933
directory: "/tools/packaging/projects/reference/System.Management.Automation"
2034
update_schedule: "live"
2135
default_labels:
2236
- "CL-BuildPackaging"
37+
ignored_updates:
38+
- match:
39+
dependency_name: "System.*"
40+
- match:
41+
dependency_name: "Microsoft.Win32.Registry.AccessControl"
42+
- match:
43+
dependency_name: "Microsoft.Windows.Compatibility"
2344

2445
- package_manager: "dotnet:nuget"
2546
directory: "/test/tools/Modules"
2647
update_schedule: "live"
2748
default_labels:
2849
- "CL-BuildPackaging"
50+
ignored_updates:
51+
- match:
52+
dependency_name: "System.*"
53+
- match:
54+
dependency_name: "Microsoft.Win32.Registry.AccessControl"
55+
- match:
56+
dependency_name: "Microsoft.Windows.Compatibility"
2957

3058
- package_manager: "dotnet:nuget"
3159
directory: "/src/Modules"

‎.devcontainer/Dockerfile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#-------------------------------------------------------------------------------------------------------------
2-
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Copyright (c) Microsoft Corporation.
33
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
44
#-------------------------------------------------------------------------------------------------------------
55

6-
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.101
6+
FROM mcr.microsoft.com/dotnet/core/sdk:5.0.100-preview.2
77

88
# Avoid warnings by switching to noninteractive
99
ENV DEBIAN_FRONTEND=noninteractive
@@ -13,7 +13,7 @@ RUN apt-get update \
1313
&& apt-get -y install --no-install-recommends apt-utils 2>&1 \
1414
#
1515
# Verify git, process tools, lsb-release (common in install instructions for CLIs) installed
16-
&& apt-get -y install git procps lsb-release \
16+
&& apt-get -y install --no-install-recommends git procps lsb-release \
1717
#
1818
# Clean up
1919
&& apt-get autoremove -y \

‎.devcontainer/devcontainer.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// See https://aka.ms/vscode-remote/devcontainer.json for format details.
22
{
3-
"name": ".NET Core 3.1, including pwsh (Debian 10)",
3+
"name": ".NET Core 5.0, including pwsh (Debian 10)",
44
"dockerFile": "Dockerfile",
55

66
// Uncomment the next line to run commands after the container is created.
77
"postCreateCommand": "cd src/powershell-unix && dotnet restore",
88

99
"extensions": [
1010
"ms-azure-devops.azure-pipelines",
11-
"ms-vscode.csharp",
11+
"ms-dotnettools.csharp",
1212
"ms-vscode.powershell",
1313
"DavidAnson.vscode-markdownlint",
1414
"vitaliymaz.vscode-svg-previewer"

‎.devcontainer/fedora30/devcontainer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
"extensions": [
1010
"ms-azure-devops.azure-pipelines",
11-
"ms-vscode.csharp",
11+
"ms-dotnettools.csharp",
1212
"ms-vscode.powershell",
1313
"DavidAnson.vscode-markdownlint",
1414
"vitaliymaz.vscode-svg-previewer"

‎.github/CODEOWNERS‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ src/Microsoft.PowerShell.Commands.Management/ @daxian-dbw @adityapatwardhan
3333
src/Microsoft.PowerShell.Commands.Utility/ @JamesWTruher @PaulHigin
3434

3535
# Area: Console
36-
src/Microsoft.PowerShell.ConsoleHost/ @daxian-dbw @anmenaga
36+
src/Microsoft.PowerShell.ConsoleHost/ @daxian-dbw @anmenaga @TylerLeonhardt
3737

3838
# Area: Demos
3939
demos/ @joeyaiello @SteveL-MSFT @HemantMahawar

‎.github/CONTRIBUTING.md‎

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Please read the rest of this document to ensure a smooth contribution process.
1919

2020
## Quick Start Checklist
2121

22-
* Review the [Contribution License Agreement][CLA] requirement.
22+
* Review the [Contributor License Agreement][CLA] requirement.
2323
* Get familiar with the [PowerShell repository](../docs/git).
2424

2525
## Contributing to Issues
@@ -115,7 +115,7 @@ Please see [Building PowerShell](../README.md#building-the-repository).
115115

116116
#### Testing PowerShell
117117

118-
Please see PowerShell [Testing Guidelines - Running Tests Outside of CI][running-tests-outside-of-ci] on how to test you build locally.
118+
Please see PowerShell [Testing Guidelines - Running Tests Outside of CI][running-tests-outside-of-ci] on how to test your build locally.
119119

120120
### Finding or creating an issue
121121

@@ -167,11 +167,11 @@ Additional references:
167167
An issue title is to briefly describe what is wrong, while a PR title is to briefly describe what is changed.
168168
A better example is: "Add Ensure parameter to New-Item cmdlet", with "Fix #5" in the PR's body.
169169
* When you create a pull request,
170-
including a summary about your changes in the PR description.
170+
include a summary about your changes in the PR description.
171171
The description is used to create change logs,
172172
so try to have the first sentence explain the benefit to end users.
173173
If the changes are related to an existing GitHub issue,
174-
please reference the issue in PR description (e.g. ```Fix #11```).
174+
please reference the issue in the PR description (e.g. ```Fix #11```).
175175
See [this][closing-via-message] for more details.
176176

177177
* Please use the present tense and imperative mood when describing your changes:
@@ -196,15 +196,15 @@ Additional references:
196196
* For `.h`, `.cpp`, and `.cs` files use the copyright header with empty line after it:
197197

198198
```c#
199-
// Copyright (c) Microsoft Corporation. All rights reserved.
199+
// Copyright (c) Microsoft Corporation.
200200
// Licensed under the MIT License.
201201
<Add empty line here>
202202
```
203203

204204
* For `.ps1` and `.psm1` files use the copyright header with empty line after it:
205205

206206
```powershell
207-
# Copyright (c) Microsoft Corporation. All rights reserved.
207+
# Copyright (c) Microsoft Corporation.
208208
# Licensed under the MIT License.
209209
<Add empty line here>
210210
```
@@ -214,7 +214,7 @@ Additional references:
214214
```powershell
215215
Author = "PowerShell"
216216
Company = "Microsoft Corporation"
217-
Copyright = "Copyright (c) Microsoft Corporation. All rights reserved."
217+
Copyright = "Copyright (c) Microsoft Corporation."
218218
```
219219

220220
is at the top.
@@ -277,10 +277,10 @@ Additional references:
277277
- `Request changes` if you believe the PR merge should be blocked if your feedback is not addressed,
278278
- `Approve` if you believe your feedback has been addressed or the code is fine as-is, it is customary (although not required) to leave a simple "Looks good to me" (or "LGTM") as the comment for approval.
279279
- `Comment` if you are making suggestions that the *author* does not have to accept.
280-
Early in the review, it is acceptable to provide feedback on coding formatting based on the published [Coding Guidelines](../docs/dev-process/coding-guidelines.md), however,
281-
after the PR has been approved, it is generally _not_ recommended to focus on formatting issues unless they go against the [Coding Guidelines](../docs/dev-process/coding-guidelines.md).
280+
Early in the review, it is acceptable to provide feedback on coding formatting based on the published [Coding Guidelines][coding-guidelines], however,
281+
after the PR has been approved, it is generally _not_ recommended to focus on formatting issues unless they go against the [Coding Guidelines][coding-guidelines].
282282
Non-critical late feedback (after PR has been approved) can be submitted as a new issue or new pull request from the *reviewer*.
283-
1. *Assignee* who are always *Maintainers* ensure that proper review has occurred and if they believe one approval is not sufficient, the *maintainer* is responsible to add more reviewers.
283+
1. *Assignees* who are always *Maintainers* ensure that proper review has occurred and if they believe one approval is not sufficient, the *maintainer* is responsible to add more reviewers.
284284
An *assignee* may also be a reviewer, but the roles are distinct.
285285
Once the PR has been approved and the CI system is passing, the *assignee* will merge the PR after giving one business day for any critical feedback.
286286
For more information on the PowerShell Maintainers' process, see the [documentation](../docs/maintainers).
@@ -302,22 +302,22 @@ In these cases:
302302
## Making Breaking Changes
303303

304304
When you make code changes,
305-
please pay attention to these that can affect the [Public Contract](../docs/dev-process/breaking-change-contract.md).
305+
please pay attention to these that can affect the [Public Contract][breaking-changes-contract].
306306
For example, changing PowerShell parameters, APIs, or protocols break the public contract.
307307
Before making changes to the code,
308-
first review the [breaking changes contract](../docs/dev-process/breaking-change-contract.md)
308+
first review the [breaking changes contract][breaking-changes-contract]
309309
and follow the guidelines to keep PowerShell backward compatible.
310310

311311
## Making Design Changes
312312

313313
To add new features such as cmdlets or making design changes,
314-
please follow the [PowerShell Request for Comments (RFC)](https://github.com/PowerShell/PowerShell-RFC) process.
314+
please follow the [PowerShell Request for Comments (RFC)][rfc-process] process.
315315

316316
## Common Engineering Practices
317317

318-
Other than the guidelines for ([coding](../docs/dev-process/coding-guidelines.md),
319-
the [RFC process](https://github.com/PowerShell/PowerShell-RFC) for design,
320-
[documentation](#contributing-to-documentation) and [testing](../docs/testing-guidelines/testing-guidelines.md)) discussed above,
318+
Other than the guidelines for [coding][coding-guidelines],
319+
the [RFC process][rfc-process] for design,
320+
[documentation](#contributing-to-documentation) and [testing](../docs/testing-guidelines/testing-guidelines.md) discussed above,
321321
we encourage contributors to follow these common engineering practices:
322322

323323
* Format commit messages following these guidelines:
@@ -359,7 +359,7 @@ is also appropriate, as is using Markdown syntax.
359359
If you find code that you think is a good fit to add to PowerShell,
360360
file an issue and start a discussion before proceeding.
361361
* Create and/or update tests when making code changes.
362-
* Run tests and ensure they are passing before pull request.
362+
* Run tests and ensure they are passing before opening a pull request.
363363
* All pull requests **must** pass CI systems before they can be approved.
364364
* Avoid making big pull requests.
365365
Before you invest a large amount of time,
@@ -368,7 +368,7 @@ is also appropriate, as is using Markdown syntax.
368368
## Contributor License Agreement (CLA)
369369

370370
To speed up the acceptance of any contribution to any PowerShell repositories,
371-
you should to [sign a Microsoft Contribution Licensing Agreement (CLA)](https://cla.microsoft.com/) ahead of time.
371+
you should sign the Microsoft [Contributor License Agreement (CLA)](https://cla.microsoft.com/) ahead of time.
372372
If you've already contributed to PowerShell or Microsoft repositories in the past, congratulations!
373373
You've already completed this step.
374374
This a one-time requirement for the PowerShell project.
@@ -395,8 +395,10 @@ Once you sign a CLA, all your existing and future pull requests will have the st
395395
[up-for-grabs]: https://github.com/powershell/powershell/issues?q=is%3Aopen+is%3Aissue+label%3AUp-for-Grabs
396396
[semantic linefeeds]: https://rhodesmill.org/brandon/2012/one-sentence-per-line/
397397
[PowerShell-Docs]: https://github.com/powershell/powershell-docs/
398-
[use-vscode-editor]: ../docs/learning-powershell/using-vscode.md#editing-with-visual-studio-code
398+
[use-vscode-editor]: https://docs.microsoft.com/dotnet/core/tutorials/with-visual-studio-code
399399
[repository-maintainer]: ../docs/community/governance.md#repository-maintainers
400400
[area-expert]: ../docs/community/governance.md#area-experts
401-
[ci-system]: ../docs/testing-guidelines/testing-guidelines.md#ci-system
402401
[first-time-issue]: https://github.com/powershell/powershell/issues?q=is%3Aopen+is%3Aissue+label%3AFirst-Time-Issue
402+
[coding-guidelines]: ../docs/dev-process/coding-guidelines.md
403+
[breaking-changes-contract]: ../docs/dev-process/breaking-change-contract.md
404+
[rfc-process]: https://github.com/PowerShell/PowerShell-RFC

‎.github/ISSUE_TEMPLATE/Bug_Report.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,29 @@ This repository is **ONLY** for PowerShell Core 6 and PowerShell 7+ issues.
1616
- Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)
1717
- Search the existing issues.
1818
- Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).
19-
- Refer to the [known issues](https://docs.microsoft.com/powershell/scripting/whats-new/known-issues-ps6?view=powershell-6).
19+
- Refer to the [known issues](https://docs.microsoft.com/powershell/scripting/whats-new/known-issues-ps6).
2020
2121
-->
2222

23-
# Steps to reproduce
23+
## Steps to reproduce
2424

2525
```powershell
2626
2727
```
2828

29-
# Expected behavior
29+
## Expected behavior
3030

3131
```none
3232
3333
```
3434

35-
# Actual behavior
35+
## Actual behavior
3636

3737
```none
3838
3939
```
4040

41-
# Environment data
41+
## Environment data
4242

4343
<!-- provide the output of $PSVersionTable -->
4444

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,35 @@
11
---
22
name: Distribution Support Request
3-
about: Requests suppoort for a new distribution
3+
about: Requests support for a new distribution
44
title: "Distribution Support Request"
55
labels: Distribution-Request
66
assignees: ''
77

88
---
99

10-
# Details of the Distribution
10+
## Details of the Distribution
1111

12-
- Name of the Distribution:
12+
- Name of the Distribution:
1313
- Version of the Distribution:
14-
- Processor Architecture (One per request):
14+
- Package Types
15+
- [ ] Deb
16+
- [ ] RPM
17+
- [ ] Tar.gz
18+
- Snap - Please file issue in https://github.com/powershell/powershell-snap. This issues type is unrelated to snap packages with a distribution neutral.
19+
- Processor Architecture (One per request):
1520
- [ ] **Required** - An issues has been filed to create a Docker image in https://github.com/powershell/powershell-docker
1621
- The following is a requirement for supporting a distribution **without exception.**
17-
- [ ] The version and architecture of the Distribution is [supported by .NET Core](https://github.com/dotnet/core/blob/master/release-notes/3.0/3.0-supported-os.md#linux).
22+
- [ ] The version and architecture of the Distribution is [supported by .NET Core](https://github.com/dotnet/core/blob/master/release-notes/3.0/3.0-supported-os.md#linux).
1823
- The following are requirements for supporting a distribution.
19-
Please write a justification for any exception where these criteria are not met and
20-
the PowerShell comittee will review the request.
21-
- [ ] The version of the Distribution is supported for at least one year.
22-
- [ ] The version of the Distribution is not an [interim release](https://ubuntu.com/about/release-cycle) or equivalent.
24+
Please write a justification for any exception where these criteria are not met and
25+
the PowerShell committee will review the request.
26+
- [ ] The version of the Distribution is supported for at least one year.
27+
- [ ] The version of the Distribution is not an [interim release](https://ubuntu.com/about/release-cycle) or equivalent.
2328

2429
## Progress - For PowerShell Team **ONLY**
2530

2631
- [ ] Docker image created
2732
- [ ] Docker image published
2833
- [ ] Distribution tested
29-
- [ ] Lifecycle updated
34+
- [ ] [Lifecycle](https://github.com/MicrosoftDocs/PowerShell-Docs/blob/staging/reference/docs-conceptual/PowerShell-Support-Lifecycle.md) updated
3035
- [ ] Documentation Updated

‎.github/ISSUE_TEMPLATE/Feature_Request.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ assignees: ''
77

88
---
99

10-
# Summary of the new feature/enhancement
10+
## Summary of the new feature/enhancement
1111

1212
<!--
1313
A clear and concise description of what the problem is that the new feature would solve.
1414
Try formulating it in user story style (if applicable):
1515
'As a user I want X so that Y.' with X being the being the action and Y being the value of the action.
1616
-->
1717

18-
# Proposed technical implementation details (optional)
18+
## Proposed technical implementation details (optional)
1919

2020
<!--
2121
A clear and concise description of what you want to happen.

‎.github/ISSUE_TEMPLATE/Release_Process.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This template is for maintainers to create an issues to track the release proces
1212
Please **only** use this template if you are a maintainer.
1313
-->
1414

15-
# Release Process for v6.x.x
15+
## Checklist
1616

1717
- [ ] Verify that `PowerShell-Native` has been updated/released as needed.
1818
- [ ] Check for `PowerShellGet` and `PackageManagement` release plans.

0 commit comments

Comments
 (0)