Commit graph

1964 commits

Author SHA1 Message Date
Andy Schwartzmeyer 7048b5774c Merge pull request #834 from PowerShell/psreadline2
Host code to enable PSReadLine, and remove checking of .NET Framework
2016-04-13 13:57:45 -07:00
Andy Schwartzmeyer 2a7d6a51c6 Merge pull request #814 from PowerShell/andschwa/recursive-alc
Fix stack overflow exception when loading assemblies
2016-04-13 13:54:38 -07:00
George Fleming eb9daf0238 Host code to enable PSReadLine, and remove checking of .NET Framework version if CORECLR 2016-04-13 11:42:59 -07:00
Andy Schwartzmeyer f38a11fc02 Merge pull request #807 from PowerShell/GetVariablePesterUnitTest
Add Get-Variable Pester Unit Test
2016-04-13 11:11:08 -07:00
JumpingYang001 d0c759f10e Update indent for Get-Variable Pester unit test 2016-04-13 09:41:04 -07:00
JumpingYang001 191f232519 Update fixed comments from PR for Get-Variable Pester unit test 2016-04-13 09:41:04 -07:00
JumpingYang001 0531914377 Enable bug777 skip for Get-Variable 2016-04-13 09:41:04 -07:00
JumpingYang001 95eade1305 Add Get-Variable Pester Unit Test 2016-04-13 09:41:04 -07:00
Andy Schwartzmeyer 5b880dbbb8 Merge pull request #782 from PowerShell/ImportAliasPesterUnitTest
Add Import-Alias Pester Unit test
2016-04-13 09:40:28 -07:00
Andrew Schwartzmeyer 1bc2a9e576 Fix stack overflow exception when loading assemblies
When an assembly that exists outside of the trusted platform assembly
list but in the GAC on Windows was loaded, the use of `Assembly.Load`
before the `LoadFromAssemblyPath` caused a recursive loop to occur.

This happens because an `Assembly.Load` on a not-yet-loaded
assembly is overridden, thus calling back into the
`AssemblyLoadContext.Load` override.

By attempting to load from the file path first, we avoid this loop.
However, loading TPA assemblies by their path throws an exception, so
now we catch this particular exception and attempt the load through
`Assembly.Load`.

This is safe for TPA assemblies since they're already loaded, thus the
`Assembly.Load` does not re-load the assembly, but simply returns it.
2016-04-13 09:40:16 -07:00
JumpingYang001 6184dec3ad Update stand-alone tests for Import-Alias Pester unit test 2016-04-13 02:42:34 -07:00
Andy Schwartzmeyer ceef777d5e Merge pull request #826 from PowerShell/andschwa/remove-omi
Remove OMI and PSRP
2016-04-12 16:27:06 -07:00
Andrew Schwartzmeyer 841f76ec37 Update Git setup documentation
Now that everyone needs all the submodules. Much simpler.
2016-04-12 16:16:17 -07:00
Andrew Schwartzmeyer 285253da02 Disable xUnit tests on Travis temporarily
Until #806 is resolved.
2016-04-12 16:00:05 -07:00
Andrew Schwartzmeyer b8f326adf5 Redirect PSRP documentation to other repo 2016-04-12 15:59:38 -07:00
Andrew Schwartzmeyer a2fc6c330a Remove PSRP building documentation
Migrated to PSRP repository
2016-04-12 15:18:27 -07:00
Andrew Schwartzmeyer 1f19758614 Remove OMI and provider submodules 2016-04-12 12:10:54 -07:00
Andy Schwartzmeyer d621b44034 Merge pull request #813 from PowerShell/andschwa/download-v0.3.0
Update download.sh to get v0.3.0 deb asset
2016-04-11 13:19:13 -07:00
Andrew Schwartzmeyer ea53a15642 Update download.sh to get v0.3.0 deb asset 2016-04-11 12:41:58 -07:00
Andy Schwartzmeyer 2629fff55e Merge pull request #812 from PowerShell/andschwa/tests
Remove alias tests for Write-Output
2016-04-11 11:32:12 -07:00
Andrew Schwartzmeyer 735a702f1c Remove alias tests for Write-Output
The `echo` and `write` aliases were removed, which make these tests
inaccurate (but did not fail them).
2016-04-11 10:46:39 -07:00
Andy Schwartzmeyer bfca886f36 Merge pull request #811 from PowerShell/andschwa/build-24011
Bump .NET Core packages to build 24011
2016-04-11 10:46:11 -07:00
Andrew Schwartzmeyer 71b55abf66 Bump .NET Core packages to build 24011
And update the CorePsTypeCatalog.
2016-04-11 10:37:15 -07:00
Andy Schwartzmeyer 7f7c13e9b9 Merge pull request #810 from PowerShell/andschwa/prepare-v0.3.0
Update Linux installation documentation for v0.3.0
2016-04-11 10:06:07 -07:00
Andrew Schwartzmeyer e0547c81ff Update Linux installation documentation for v0.3.0 2016-04-11 09:50:58 -07:00
Andy Schwartzmeyer 5e0528ffe9 Merge pull request #805 from PowerShell/andschwa/pspackage
Improve Start-PSPackage
2016-04-11 09:17:57 -07:00
JumpingYang001 5c341e7d7f Remove Context for Import-Alias pester unit test 2016-04-10 19:38:35 -07:00
Andrew Schwartzmeyer 0afd4c2f98 Improve Start-PSPackage
- Now checks that previous Start-PSBuild was with -Publish
- Uses $script:Output automatically
- Uses /opt/microsoft/powershell on Linux per FHS
- Uses /usr/local/microsoft/powershell on OS X per FHS
- Specifies "--rpm-os linux" for RPM packages built elsewhere
- Creates symlink on demand for packaging
- Puts symlink in /usr/(local)/bin as it is expected to be in PATH
- Uses $Arguments array for better syntax
- Resolves #800

Note that if the target of the powershell symlink exists, `fpm` aborts
with a `utime` error on OS X.
2016-04-09 19:44:55 -07:00
Andrew Schwartzmeyer 865f174e22 Clean up comparison operators in build module 2016-04-09 18:56:14 -07:00
Andy Schwartzmeyer 244b41a974 Merge pull request #804 from PowerShell/andschwa/symbolic-target
Allow creation of symlink to non-existent target
2016-04-09 18:55:21 -07:00
Andrew Schwartzmeyer 3a43126a2e Allow creation of symlink to non-existent target
This action is completely valid on both Windows and Linux (and OS X)
operating systems; tested with `mklink` and `ln -s` respectively.

Note that targets for hard links must exist, thus we check specifically
for symbolic links.

Both the path globber in session state and the `New-Item` implementation
needed to be fixed to allow the target not to exist.

Resolves #801.

Also enable symbolic link tests on Windows.
2016-04-09 18:45:23 -07:00
Andy Schwartzmeyer be235b0f0b Merge pull request #803 from PowerShell/andschwa/help-online
Fix Get-Help -Online
2016-04-09 18:20:27 -07:00
Andrew Schwartzmeyer 70c23dacd7 Fix Get-Help -Online
While Windows will automatically open a URL used as a process by
launching a browser, OS X needs to use `open <URL>`, and Linux needs to
use `xdg-open <URL>` (the most distribution-independent way).

Resolves #802.
2016-04-09 18:05:49 -07:00
Andy Schwartzmeyer 76ad94d8a7 Merge pull request #798 from PowerShell/andschwa/pager
Respect PAGER variable and default to less on Linux
2016-04-08 22:04:57 -07:00
Andy Schwartzmeyer 5ec7eb46cb Merge pull request #797 from PowerShell/andschwa/packages
Bump .NET Core packages
2016-04-08 22:04:43 -07:00
Andrew Schwartzmeyer 022a63c6d2 Fix whitespace in csharp/project.json 2016-04-08 21:58:05 -07:00
Andrew Schwartzmeyer bd03b51c32 Respect PAGER variable and default to less on Linux 2016-04-08 21:52:14 -07:00
Andrew Schwartzmeyer 7ace2b6b64 Fix NuGet warnings by depending on NuGet.Packaging.Core
And upgrade dotnet-test-xunit
2016-04-08 21:50:24 -07:00
Andrew Schwartzmeyer feef62c5ea Bump .NET Core packages to 24004 2016-04-08 21:50:24 -07:00
Andy Schwartzmeyer fde82fdf46 Merge pull request #796 from PowerShell/vors/add-type
Make Add-Type work without a flat folder structure
2016-04-08 21:41:30 -07:00
Sergei Vorobev bf1a2c8521 Make Add-Type work without a flat folder structure
- Get rid of the assumption that all framework assemlbies live in
  the same place
- Enable build scenario (assemlbies are referenced directly from unpacked
  nuget packages)
- Fix #766
- Re-enable Add-Type tests
2016-04-08 21:41:30 -07:00
Andy Schwartzmeyer 0db0360b63 Merge pull request #794 from PowerShell/andschwa/profile-name
Rename profile from PSL to Microsoft.PowerShellCore
2016-04-08 21:41:29 -07:00
Andy Schwartzmeyer 3f00751159 Merge pull request #792 from PowerShell/andschwa/assembly-load
Try Assembly.Load correctly
2016-04-08 21:41:29 -07:00
Andrew Schwartzmeyer 6f45601a27 Rename profile from PSL to Microsoft.PowerShellCore
Final fix for #713.
2016-04-08 21:41:29 -07:00
Andrew Schwartzmeyer 839014b599 Try Assembly.Load correctly
This should resolve #791.

Instead of checking if `Assembly.Load` returned null (it doesn't), check
if it threw `FileNotFoundException`, which it will if it doesn't find
the assembly.
2016-04-08 19:09:38 -07:00
Andy Schwartzmeyer 80b15f64e2 Merge pull request #789 from PowerShell/andschwa/host-module
Fix accidental mapping change
2016-04-08 18:39:36 -07:00
Andrew Schwartzmeyer 733cda385d Fix accidental mapping change
Happened in programmatic update commit bfaad3f05.
2016-04-08 18:09:09 -07:00
Andy Schwartzmeyer a69ed31baf Merge pull request #788 from PowerShell/andschwa/publish
Add Publish support to Start-PSbuild
2016-04-08 16:38:45 -07:00
Andrew Schwartzmeyer ac157568d6 Publish on AppVeyor
So that the artifacts for Core PowerShell have the .NET Core
dependencies.
2016-04-08 16:25:53 -07:00
Andrew Schwartzmeyer d7233fc4d0 Remove import of Platform module from AppVeyor 2016-04-08 16:25:53 -07:00