Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd PS 7 to UseCompatibleSyntax #1331
Conversation
|
Looks ok but it would be nicer to have a helper method that allowed to specify something like a minimum version and returned an IEnumerable of version strings to avoid some hard coding as I imagine finding those places to be updated will be hard if there will be PS 8 (probably due to .net 5) |
Co-Authored-By: Christoph Bergmeister [MVP] <c.bergmeister@gmail.com>
|
Well the minimum version doesn't solve all issues; some syntaxes only work below or in a certain version of PowerShell, like The places to update correspond exactly to a syntax, so I don't think that can be simplified, only moved around. Perhaps we need a nicer data structure to deal with version checks (which can deal with only specifying a major version or not) |
|
Yes, I agree, other improvements are optional and could be done in later PRs. This PR can go ahead, I'll just close and re-open to re-trigger the build (which should be green now as we've fixed the Ubuntu build) |
1202f4e
into
PowerShell:master
|
@rjmholt It seems because the PR got merged a long time after the last PR build that there is an integration tests failure as there are 4 failing tests in master since this merge. Can you please open a PR with a fix for it? |
|
@JamesWTruher and I looked into this yesterday for a while. We weren't able to reproduce it on the 16.04 Docker image, but I feel I have before when I investigated it (I feel like I wrote it in an issue somewhere, but can't find it). Anyway, this is on my list for next week, so I'll keep trying then. |
|
Yes, the fact that some of your tests fail on Ubuntu16 on AppVeyor now as well, really makes me think we either have to find the root cause and fix them or declare technical debt and ignore them on Linux only. AppVeyor also has an Ubuntu1804 image, unfortunately the 4 test failures happen there as well... |
|
Those tests aren't essential at all in my opinion; they aren't substantially different from the other tests (just added coverage) and we can't repro them. So if they're a blocker we can disable or remove them to get you unblocked while I investigate the cause. |
rjmholt commentedSep 10, 2019
PR Summary
Adds PS 7 recognition to UseCompatibleSyntax
PR Checklist
.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.