Travis Plunk
1730d8c496
MSI: update path with proper value ( #6441 )
...
MSI: update path with proper value
- Add verification that path is updated
2018-03-21 12:23:24 -07:00
Klaudia Algiz
ceef2e37e9
Use new Pester syntax: -Parameter for Pester tests in Language. ( #6304 )
2018-03-21 10:47:08 -07:00
rjmholt
cdc2015418
Change Get-FileHash
tests to use raw bytes ( #6430 )
...
* Change filehash tests to use raw bytes
* Remove testablescript.ps1 from Get-FileHash tests
* Use BOM-less UTF8 input for Get-FileHash
2018-03-20 15:11:37 -07:00
kasper3
271dd50df2
Add Alpine Linux support ( #6367 )
...
sys/sysctl header is not available in musl-libc based systems and system calls are available without any header inclusion. I have ported the cmake test from CoreFX repo (https://github.com/dotnet/corefx/blob/431475b8/src/Native/Unix/configure.cmake#L560 ).
Progress towards: #4605
2018-03-20 13:34:18 -07:00
Dongbo Wang
1b3c8aca50
Fix the NullRefException when using '-PipelineVariable' with 'DynamicParam' block ( #6433 )
2018-03-20 12:02:46 -07:00
Travis Plunk
f7c2b7def1
MSI: remove the version from the product name ( #6415 )
...
MSI: remove the version from the product name
During patching the original MSI information is displayed.
This makes installing a patch for an MSI with a specific version very confusing.
2018-03-20 10:49:01 -07:00
Travis Plunk
5e1bb01cb3
migrate the mac offical binary build to VSTS mac hosted preview ( #6363 )
...
create a PowerShellPackage...ps1 that works with these VMs (vs our custom VM)
create a script to create the \powershell folder with correct permissions
a YML VSTS build definition
2018-03-19 15:56:43 -07:00
Travis Plunk
ae636df526
remove runas.exe from tests as we have tags to control this behavior ( #6432 )
...
remove runas.exe from tests as we have tags to control this behavior
- this should reduce the likelihood of errors
2018-03-19 15:36:56 -07:00
Dongbo Wang
b49fb7f1b3
Update 'macos.md' and 'windows.md' with the version number '6.0.2' ( #6416 )
2018-03-19 11:38:27 -07:00
Dongbo Wang
d0d4e3cf0c
Update the 'ChangeLog.md' for 6.0.2 release ( #6417 )
2018-03-19 11:37:27 -07:00
Steve Lee
876085c6f0
Stop 'ConvertTo-Json' when 'Ctrl+c' is hit ( #6392 )
2018-03-19 09:13:05 -07:00
Andrew Palmer
be109922f3
Change 6.0.1 references to 6.0.2 for 'linux.md' ( #6411 )
2018-03-16 21:06:00 -07:00
Travis Plunk
260aa49c4f
fix secret and JavaScript compliance issues ( #6408 )
...
fix secret and JavaScript compliance issues
- mark secrets as a test only secrets
- make javascript use strict in a specific function
2018-03-16 18:05:32 -07:00
kwkam
8ef5d4b8ee
Make Resolve-Path -Relative return useful path when $PWD and -Path is on different drive ( #5740 )
...
* commands: make rvpa -relative do not return ./absolute_path
This happens on Windows when $pwd and -path is on different drive
* only return relative path inside current root
2018-03-16 15:06:37 -07:00
Steve Lee
263c98858b
Update to Governance doc to reflect current working model ( #6323 )
...
With some changes in the PowerShell Team, need to update Governance doc to reflect current working model being used
2018-03-16 15:04:32 -07:00
Steve Lee
4d0f8cc0f5
Add Waiting - DotNetCore
label ( #6406 )
...
Also, organize labels in alphabetical order.
2018-03-16 14:36:59 -07:00
Ilya
a281853fcb
Correct the '%c', '%l', '%k', '%s' and '%j' formats in 'Get-Date -UFormat' ( #4805 )
2018-03-16 09:44:42 -07:00
kwkam
5f202d676f
Add 'NullReference' checks to two code paths related to 'PseudoParameterBinder' ( #5738 )
...
1. Add a null check in the tab completion code on the binding result returned from `PseudoParameterBinder`;
2. Add a null check in `CommandDiscovery.LookupCommandProcessor` on the `CommandInfo` object returned from the method `LookupCommandInfo`.
2018-03-16 09:10:06 -07:00
Amaan Marfatia
80d5df55c2
Standard deviation implementation on Measure-Object ( #6238 )
...
Implement iterative standard deviation algorithm for Measure-Object
2018-03-15 20:45:59 -07:00
Travis Plunk
339e4533e7
Add configuration for https://github.com/probot/stale ( #6393 )
...
* Add yml for https://github.com/probot/stale
2018-03-15 18:44:08 -07:00
Dongbo Wang
294def7b11
Fix 'PropertyOnlyAdapter' to allow calling base methods ( #6394 )
...
For a PropertyOnlyAdapter, the property may come from various sources, but methods, including parameterized properties, still come from DotNetAdapter. So, the binder can optimize on method calls for objects that map to a custom PropertyOnlyAdapter.
2018-03-15 15:09:38 -07:00
Travis Plunk
a099786cdc
Update to DotNet 2.0.6 ( #6403 )
...
Update to DotNet 2.0.6
- this addresses [Microsoft Security Advisory CVE-2018-0875: Hash Collision can cause Denial of Service](https://github.com/PowerShell/Announcements/issues/4 )
- This is a port of d607f207b9
to 6.1
2018-03-15 14:54:00 -07:00
Travis Plunk
fcd6ddcfc7
Update version numbers to 6.0.2 ( #6402 )
...
* Add script to update the version number
* Update version to 6.0.2
2018-03-15 11:41:01 -07:00
Aditya Patwardhan
71cb49a99d
Build: Remov version forcing code from NuGet package generation ( #6390 )
2018-03-15 10:12:56 -07:00
Klaudia Algiz
090f8761e8
Use new Pester syntax: -Parameter for Pester tests in engine. ( #6298 )
...
* Use new Pester syntax: -Parameter for Pester tests in engine.
2018-03-14 12:13:32 -07:00
Jason Shirk
bd258a3dbc
Update CODEOWNERS
2018-03-14 10:04:56 -07:00
Dongbo Wang
7721042fd5
Pass the 'Match' object to $_ for the substitute script block in '-replace' operation ( #6029 )
2018-03-14 09:43:57 -07:00
Mathias R. Jessen
915639a177
Add lambda support to -replace operator
...
Add support for replacement lambdas when using the -replace operator.
Requires minimal changes to existing code by using the following overload:
Regex.Replace(string input, MatchEvaluator evaluator)
when a ScriptBlock is passed in as the replacement argument.
2018-03-14 09:43:57 -07:00
Travis Plunk
8ffc0b0e3c
Support non-GitHub commits in the change log generation script ( #6389 )
2018-03-13 17:13:56 -07:00
Travis Plunk
8ba6f319f3
MSI: update architecture specific filenames ( #6379 )
2018-03-13 14:02:12 -07:00
Travis Plunk
88b3833ee3
Add no appimage build ( #6380 )
2018-03-13 13:49:25 -07:00
kwkam
ac53dff089
Minor code clean-up changes ( #5737 )
2018-03-13 11:18:49 -07:00
Travis Plunk
982dbfe552
fix errors in start-psbootstrap during release builds ( #6159 )
...
set Debian front end to non-interactive during apt-get commands, to avoid error with prompting
add libffi-dev, which is required for ruby/fpm
let fpm update to the latest
2018-03-12 15:59:58 -07:00
Travis Plunk
491ee47ee7
When doing daily/test build in a non-release branch use the branch name as the preview name ( #6355 )
2018-03-12 12:31:34 -07:00
Travis Plunk
25ecf8c83c
Clean the intermediate artifact 'psoptions.json' from build ( #6356 )
2018-03-10 09:51:23 -08:00
Klaudia Algiz
bcf86d4f8a
Use new Pester syntax: -Parameter for Pester tests in Microsoft.PowerShell.Management module. ( #6294 )
2018-03-09 15:13:15 -08:00
Donovan Brown
489f8336b1
Added Service Point Manager call to force Tls12. ( #6310 )
...
Calls [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 during bootstrap to download PowerShell core to avoid an error.
2018-03-09 15:12:05 -08:00
Dongbo Wang
d623c9f10c
Add '-Restore' when build win-arm and win-arm64 ( #6353 )
2018-03-09 09:50:26 -08:00
Klaudia Algiz
31cef2afb5
Add negative tests for Copy-Item over remote sessions ( #6231 )
2018-03-09 08:34:19 -08:00
Mark Kraus
06b0bb2eb2
Make a relative redirect URI absolute when 'Authorization' header present ( #6325 )
2018-03-09 08:28:20 -08:00
Travis Plunk
2d58072460
Make sure package verification failure fails the AppVeyor build ( #6337 )
2018-03-08 15:58:59 -08:00
rjmholt
e42c1db395
Make relation-link handling in web cmdlets case insensitive ( #6338 )
2018-03-08 15:54:42 -08:00
Dongbo Wang
6d191970c5
Build: Remove two unneeded lines from 'Invoke-AppveyorFinish' ( #6344 )
2018-03-08 14:51:10 -08:00
Dongbo Wang
dcba3c486e
Specify the runtime when running 'dotnet restore' in 'Start-PSBuild' ( #6345 )
2018-03-08 14:25:39 -08:00
Dan Travison
0c845b94c7
Rename log and logerror to Write-Log [$message] [-error] ( #6333 )
...
Fix #6332
This change renames log and logerror functions to a single Write-Log [$message] [-error] function to avoid conflicting with the log command on MacOS.
2018-03-08 10:47:20 -08:00
Travis Plunk
28bf189e6e
Exclude lines about Pester executing test scripts from terse logs ( #6336 )
2018-03-08 10:17:23 -08:00
Travis Plunk
1426e24541
Build: Only restore once ( #6335 )
...
* don't restore with every publish
2018-03-08 10:01:19 -08:00
Travis Plunk
f1c0c2ade5
Clean build during daily build to ensure MSI package is generate correctly ( #6334 )
...
Clean build during the daily build to ensure MSI package is generated correctly
- Do another clean build directly before packaging to clean up files that test has added
2018-03-07 19:47:21 -08:00
Travis Plunk
46a8976f9a
markdown test: use strict in javascript ( #6328 )
2018-03-07 14:06:06 -08:00
Travis Plunk
8f4eaf3bbe
make Linux packages use correct version scheme for preview releases ( #6318 )
...
Fixes #6315
make Linux packages use correct version scheme for preview releases
- Now uses <Major>.<Minor>.<Patch>~<PreviewName> instead of <Major>.<Minor>.<Patch>-<PreviewName> as the - was interpretted as an iteration of the release not a preview.
2018-03-07 11:45:21 -08:00