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 upInstall dotnet sdk if missing on Unix as well to fix failing Ubuntu build due to image update and Pester/PowerShell bug #1107
Conversation
…AvoidUsingUsernameAndPasswordParams
…uild due to image update and Pester/PowerShell bug (PowerShell#1107) * add unix support for installing the .net core sdk on-demand * add logging * update sdk * adapt for dotnet writing to stderr * fix parenthesis * only set protocol if needed and set erroraction to avoid ci failur * try fix nullreferenceexception * use use --list-sdks * use 2.1.403 sdk, which is at least available on Windows * use erroractionpreference * redirect error * use continue * use 2.1.400 that is available on both windows and linux and revert other changes that would break break wmf4 * remove if check that could break wmf4? * use --list-sdks * try different syntax to get wmf4 to work * disable wmf4 for the moment * use 2.1.403 and re-enable wmf4 * fix typo (wmf4) * use .net core sdk 2.1.502 * ignore 5 pester failure on Ubuntu for AppVeyor due Pester/PowerShell bug that happens on AppVeyor environment * Fix typo * add more skip statements for failing appveyor tests * Revert "add more skip statements for failing appveyor tests" This reverts commit 064683f. * Revert "Fix typo" This reverts commit 61c4d59. * Revert "ignore 5 pester failure on Ubuntu for AppVeyor due Pester/PowerShell bug that happens on AppVeyor environment" This reverts commit 8c48e93. * set locale * empty * Revert "set locale" This reverts commit ee79467. * simplify dotnet check * output debug details and disable other images * output rule names * output more * add more and downgrade sdk * use 2.1.403 sdk * 2.1.401 sdk * 2.1.400 sdk * Revert "simplify dotnet check" This reverts commit 7db40c3. * 2.1.401 * 2.1.403 * 2.1.502 * fix resource string casing of AvoidUsingUsernameAndPassWordParams to AvoidUsingUsernameAndPasswordParams * another resource string casing optimisation * use OrdinalIgnoreCase to be really case insensitive * cleanup

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

bergmeister commentedDec 11, 2018
•
edited
PR Summary
The build is failing on Linux at the moment because the required SDK is missing due to an image update and
dotnet --versionbinary now throw is minor version differs, therefore also update SDK version. Improvement to restoring security protocol is similar to already approved PR #1076. There were initially also 5 test failures on Linux but they were bugs when using PowerShell 6.1.1 due to it being partially case sensitive on that environment. They started happening after the image updated PowerShell from 6.0.2 to 6.1.1, see here for the logged issue of Pester with PSCore 6.1 on Linux.EDIT: a hotfix has been published for Pester now and I made some small tweaks so everything is green now
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.