Commit graph

2849 commits

Author SHA1 Message Date
Andrew Schwartzmeyer
c5df728176 Import PSReadLine change to throw when redirected
A similar change was made to the Source Depot fork of PSReadLine, and
the behavior is depended on in the ConsoleHost. The host always attempts
to load PSReadLine, because a future version of PSReadLine will support
redirected input/output, and until then, PSReadLine must throw so that
the host correctly falls back to Console.ReadLine().
2016-07-01 14:36:15 -07:00
Andrew Schwartzmeyer
75777b42ee Check that switchKey isn't empty 2016-07-01 14:36:15 -07:00
Andrew Schwartzmeyer
e3fd809d42 Normalize slashes in path given to --file
Since we don't yet have a canonical way to normalize paths, here is yet
another use of String.Replace (and this is how it happens).
2016-07-01 14:36:15 -07:00
Andrew Schwartzmeyer
25e2316345 Fix Console-Host tests
Update tests from Source Depot and run everywhere.
2016-07-01 14:36:15 -07:00
Andrew Schwartzmeyer
2dd01a9d31 Fix Write-Host tests
These were not testing the development build of PowerShell.
2016-07-01 14:36:15 -07:00
Andrew Schwartzmeyer
fe56aaafa7 Re-enable tests on OS X 2016-07-01 14:36:15 -07:00
Andrew Schwartzmeyer
290cc2c2de Implement FlushInputBuffer 2016-07-01 14:36:15 -07:00
Andrew Schwartzmeyer
80486044d8 Guard use of throwable APIs in System.Console
This is reconciled with the .NET Core 1.0 Unix ConsolePal
implementation, with additional error handling for when System.Console
returns unusable values.
2016-07-01 14:36:15 -07:00
Andy Schwartzmeyer
b7f33f6822 Merge pull request #1255 from PowerShell/jasonsh/measure-object-fix
Fix Measure-Object -Property w/ wildcards
2016-07-01 10:25:11 -07:00
Jason Shirk (POWERSHELL)
dc1d672a86 Fix Measure-Object -Property w/ wildcards
Fixes #1215
2016-06-30 18:16:37 -07:00
Jason Shirk
80be756e2a Merge pull request #1199 from PowerShell/jasonsh/split-path-qualifier
Revert Unix specific Split-Path -Qualifier code
2016-06-30 17:06:18 -07:00
Andy Schwartzmeyer
e5472277dd Merge pull request #1253 from PowerShell/andschwa/fix-isubuntu
Fix IsUbuntu logic in build module
2016-06-30 14:02:08 -07:00
Andrew Schwartzmeyer
19a4f4faf5 Fix IsUbuntu logic in build module
I previously broke the automatic uninstallation logic by changing how I
identified the Linux distribution.
2016-06-30 13:41:43 -07:00
Jason Shirk (POWERSHELL)
4269398379 Fix Split-Path -NoQualifier for Unix paths 2016-06-30 12:59:04 -07:00
Raghu Shantha [MSFT]
ac3fcd932a Merge pull request #1251 from PowerShell/RaghuS-PowerShellGet
Resurect accidentally deleted files for PowerShellGet
2016-06-30 12:45:07 -07:00
Raghu Shantha [MSFT]
8f5d1f885a Resurect accidentally deleted files for PowerShellGet
The remove happened in eea998b4d
2016-06-30 12:08:06 -07:00
Sergei Vorobev
75ee763d32 Merge pull request #1245 from PowerShell/vors/types
Make DefineTypes aware of / as a path delimiter on non-windows systems
2016-06-30 10:29:43 -07:00
Andy Schwartzmeyer
2ab8a6ea4b Merge pull request #1244 from HemantMahawar/demos
Initial demo scripts for installation and PowerShellGet demos
2016-06-30 10:28:48 -07:00
Andy Schwartzmeyer
31d35f9c06 Merge pull request #1248 from PowerShell/kapil/nuget
Add CoreCLR nuget packages
2016-06-30 09:21:14 -07:00
Andy Schwartzmeyer
c688c4640a Merge pull request #1242 from PowerShell/andschwa/json-package
Downgrade Newtonsoft.Json package to 7.0.1
2016-06-30 09:20:48 -07:00
Raghu Shantha [MSFT]
5bb5c1c4c6 Merge pull request #1237 from PowerShell/quoct/powershellmetaproviderfix
Make PowerShellGet loaded for PackageManagement
2016-06-30 08:59:16 -07:00
Sergei Vorobev
6896735a76 Merge pull request #1243 from PowerShell/vors/issue-template
Simplify ISSUE_TEMPLATE.md
2016-06-29 14:47:26 -07:00
Sergei Vorobev
db4b3a6083 Make DefineTypes aware of / as a path delimiter on non-windows systems 2016-06-29 14:28:09 -07:00
Sergei Vorobev
df866bb7d8 Simplify ISSUE_TEMPLATE.md
- only use $PSVersionTable as Environment data requirement
- add a statement, that you don't need to fill up the template for non-bug-reports
2016-06-29 14:17:16 -07:00
Hemant Mahawar
f611dfca6b Update 1-PowerShellGet.ps1 2016-06-29 14:15:02 -07:00
Hemant Mahawar
5bc7af327b Update 0-Install.sh.ps1 2016-06-29 14:14:42 -07:00
Jason Shirk (POWERSHELL)
bfc5b7e836 Revert Unix specific Split-Path -Qualifier code
The -Qualifier code for Split-Path made some incorrect assumptions:

* That a path only referred to the file system
* That drives cannot be used on Unix systems

These assumptions were both wrong, so I've reverted the change so we
do not have any Unix specific code in Split-Path now.

Fixes #1176
2016-06-29 14:12:29 -07:00
Quoc Truong
e8fd91c5e6 Fix build break associated with adding PORTABLE to PackageManagementService 2016-06-29 14:09:46 -07:00
Andrew Schwartzmeyer
e08c216c07 Downgrade Newtonsoft.Json package to 7.0.1
This is the same as on Nano.
2016-06-29 14:05:09 -07:00
Hemant Mahawar
32f1e98a2c Initial Demo scripts for installation and PowerShellGet 2016-06-29 13:57:04 -07:00
quoctruong
5fcd59db92 use PORTABLE instead of commenting out code 2016-06-29 12:40:25 -07:00
Andy Schwartzmeyer
9ed5c77df5 Merge pull request #1239 from PowerShell/andschwa/testrestructure
Restructure of Pester test layout
2016-06-29 12:34:52 -07:00
James Truher
1e1c4b7dc0 Restructure of pester test layout
This restructuring moves tests to a directory name which matches the module
in which the cmdlet resides which should improve the discoverability of a
specific test.
For tests which are not about cmdlets in a module, new directories have been
created to make those tests easier to find as well
2016-06-29 12:05:41 -07:00
Andy Schwartzmeyer
ef32e2339e Merge pull request #1235 from PowerShell/andschwa/alc-wip
Converge the AssemblyLoadContext scenario
2016-06-29 12:01:10 -07:00
Andrew Schwartzmeyer
fec2cb8b74 Use publish instead of build on Travis
AppVeyor also does this, and it's the scenario our packages ship, so
it's what we should test.
2016-06-29 09:52:32 -07:00
Dongbo Wang
297eda9721 Filter Assembly.Load requests to let the default context load TPAs 2016-06-29 09:50:41 -07:00
quoctruong
eea998b4df Make PowerShellGet loaded for PackageManagement 2016-06-29 09:33:47 -07:00
Andrew Schwartzmeyer
2e927d8155 Disable xUnit tests
This is temporary. We need to rewrite the test context to ensure the
AssemblyLoadContext is used properly, since the default can no longer be
initialized.
2016-06-28 20:08:11 -07:00
Andrew Schwartzmeyer
4086644de7 Disable JIT cache tests
This test fails since we've disabled the JIT cache entirely.
2016-06-28 20:08:11 -07:00
Andrew Schwartzmeyer
2360d1ef46 Filter runtime assemblies out of custom context 2016-06-28 19:19:55 -07:00
Andrew Schwartzmeyer
5a29df50f1 Re-enable assembly load handler in CompletionCompleters 2016-06-28 18:31:38 -07:00
Dongbo Wang
03c99586a4 Update ALC to work in publish scenario 2016-06-28 18:31:38 -07:00
Dongbo Wang
ca28391b38 Fix it for 'dotnet build' scenario 2016-06-28 18:31:38 -07:00
Dongbo Wang
66dcd00d93 Make AssemblyLoadContext a singleton and refactor 2016-06-28 18:31:38 -07:00
Andrew Schwartzmeyer
fdfd02ccda Remove TPA list work-around 2016-06-28 18:31:38 -07:00
Andrew Schwartzmeyer
c58c7d3543 Assert basePaths was not null 2016-06-28 18:31:38 -07:00
Andrew Schwartzmeyer
c78732d226 Remove ClrFacade.Load
Instead, rely on intercepting Assembly.Load
2016-06-28 18:31:38 -07:00
Andrew Schwartzmeyer
6356a5a778 Mimic InitializeDefaultLoadContext 2016-06-28 18:31:38 -07:00
Sergei Vorobev
bd21c84ece Merge pull request #1232 from PowerShell/vors/misc
Add misc missed files for modules
2016-06-28 16:58:22 -07:00
PowerShell Team
716459bfbf Copy Maml xsd schema files from [SD:717473]
commit 559488db3
2016-06-28 16:27:03 -07:00