-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Fix build.psm1 to not specify both version and quality for dotnet-install
#17589
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
Conversation
|
This is the reason why the following actions were failing: https://github.com/PowerShell/PowerShell/actions/workflows/codeql-analysis.yml And with this change applied the action is not failing: https://github.com/PowerShell/PowerShell/actions/runs/2569947207
|
|
Based on dotnet/install-scripts#287 it looks like the expectation is that only --version or --quality should be specified and if both it will error. |
SteveL-MSFT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
The Linux test is failing on a tab completion test. I think normally I would recommend that being in a separate PR, but this issue w/ dotnet-install.sh and the tabcompletion issue will need to be taken together to unblock CI. In ./test/powershell/host/TabCompletion/TabCompletion.Tests.ps1 on line 496, it's checking for a specific ordering of completions and that order appears to have changed. I don't think the test should rely on the ordering. So instead, I would recommend changing that line to: $res.CompletionMatches.CompletionText | Should -Contain 'Position'and do that in this PR. |
|
|
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
daxian-dbw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@tamasvajk it appears you haven't signed the CLA yet so we can't accept this contribution until that happens |
|
It seems it was correct for Windows all along: Lines 1901 to 1907 in 735096b
|
|
🎉 Handy links: |
|
/backport to release/v7.2.6 |
|
Started backporting to release/v7.2.6: https://github.com/PowerShell/PowerShell/actions/runs/2791667878
|
|
@daxian-dbw backporting to release/v7.2.6 failed, the patch most likely resulted in conflicts: $ git am --3way --ignore-whitespace --keep-non-patch changes.patch
Applying: Update `build.psm1` to not specify both version and quality for `dotnet-install`
Applying: Fix failing tab completion test
Using index info to reconstruct a base tree...
M test/powershell/Host/TabCompletion/TabCompletion.Tests.ps1
Falling back to patching base and 3-way merge...
Auto-merging test/powershell/Host/TabCompletion/TabCompletion.Tests.ps1
CONFLICT (content): Merge conflict in test/powershell/Host/TabCompletion/TabCompletion.Tests.ps1
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0002 Fix failing tab completion test
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128Please backport manually! |
|
/backport to release/v7.0.12 |
|
Started backporting to release/v7.0.12: https://github.com/PowerShell/PowerShell/actions/runs/2791674422
|
|
@daxian-dbw backporting to release/v7.0.12 failed, the patch most likely resulted in conflicts: $ git am --3way --ignore-whitespace --keep-non-patch changes.patch
Applying: Update `build.psm1` to not specify both version and quality for `dotnet-install`
Using index info to reconstruct a base tree...
M build.psm1
Falling back to patching base and 3-way merge...
Auto-merging build.psm1
CONFLICT (content): Merge conflict in build.psm1
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Update `build.psm1` to not specify both version and quality for `dotnet-install`
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128Please backport manually! |
|
Manual backport for 7.2.6 done. |
|
🎉 Handy links: |
The latest changes in
dotnet-installenforce that not both ofversionandqualityare specified. See the changes in https://github.com/dotnet/install-scripts/commits/main/src/dotnet-install.sh. Specifically this line.I haven't done any major testing in powershell context, just ran the following on MacOS:
./dotnet-install.sh -v 7.0.100-preview.2.22153.17 -q signedfails./dotnet-install.sh -v 7.0.100-preview.2.22153.17doesn't fail.PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).