{"action":"opened","issue":{"url":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/388","repository_url":"https://api.github.com/repos/PowerShell/PowerShellGet","labels_url":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/388/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/388/comments","events_url":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/388/events","html_url":"https://github.com/PowerShell/PowerShellGet/issues/388","id":393115571,"node_id":"MDU6SXNzdWUzOTMxMTU1NzE=","number":388,"title":"AllowPreRelease switch does not work in PowerShell 6.1.1 on Ubuntu 18.04 in WSL","user":{"login":"bergmeister","id":9250262,"node_id":"MDQ6VXNlcjkyNTAyNjI=","avatar_url":"https://avatars0.githubusercontent.com/u/9250262?v=4","gravatar_id":"","url":"https://api.github.com/users/bergmeister","html_url":"https://github.com/bergmeister","followers_url":"https://api.github.com/users/bergmeister/followers","following_url":"https://api.github.com/users/bergmeister/following{/other_user}","gists_url":"https://api.github.com/users/bergmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/bergmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bergmeister/subscriptions","organizations_url":"https://api.github.com/users/bergmeister/orgs","repos_url":"https://api.github.com/users/bergmeister/repos","events_url":"https://api.github.com/users/bergmeister/events{/privacy}","received_events_url":"https://api.github.com/users/bergmeister/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-20T16:18:16Z","updated_at":"2018-12-20T16:18:16Z","closed_at":null,"author_association":"NONE","body":"\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n```powershell\r\n install-Module pester -Verbose -AllowPrerelease -scope currentuser -whatif\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n```none\r\nWhat if: Performing the operation \"Install-Module\" on target \"Version '4.5.0-beta1' of module 'Pester'\".\r\n```\r\n\r\nActual behavior\r\n---------------\r\n\r\n```none\r\nVERBOSE: Using the provider 'PowerShellGet' for searching packages.\r\nVERBOSE: The -Repository parameter was not specified.  PowerShellGet will use all of the registered repositories.\r\nVERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.\r\nVERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.\r\nVERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='pester'' for ''.\r\nVERBOSE: Total package yield:'1' for the specified package 'pester'.\r\nVERBOSE: Skipping installed module Pester 4.4.3.\r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n<!-- If relevant to your issue, please paste output from the following commands -->\r\n\r\n```powershell\r\n> $PSVersionTable\r\nName                           Value\r\n----                           -----\r\nPSVersion                      6.1.1\r\nPSEdition                      Core\r\nGitCommitId                    6.1.1\r\nOS                             Linux 4.4.0-17763-Microsoft #194-Microsoft Mon Dec 03 17:58:00 PST 2018\r\nPlatform                       Unix\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\nWSManStackVersion              3.0\r\n\r\n```\r\n\r\n```powershell\r\n> Get-Module -ListAvailable PowerShellGet,PackageManagement\r\n\r\n\r\n    Directory: /home/chris/.local/share/powershell/Modules\r\n\r\n\r\nModuleType Version    Name                                PSEdition ExportedCommands\r\n---------- -------    ----                                --------- ----------------\r\nScript     1.2.4      PackageManagement                   Desk      {Find-Package, Get-Package, Get-PackageProvider,...\r\nScript     2.0.3      PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-Module, Fi...\r\n\r\n\r\n    Directory: /opt/microsoft/powershell/6/Modules\r\n\r\n\r\nModuleType Version    Name                                PSEdition ExportedCommands\r\n---------- -------    ----                                --------- ----------------\r\nScript     1.1.7.2    PackageManagement                   Desk      {Find-Package, Get-Package, Get-PackageProvider,...\r\nScript     1.6.7      PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-Module, Fi...\r\n```\r\n\r\n```powershell\r\n> Get-PackageProvider -ListAvailable\r\nName                     Version          DynamicOptions\r\n----                     -------          --------------\r\nNuGet                    3.0.0.1          Destination, ExcludeVersion, Scope, SkipDependencies, Headers, FilterOnTag...\r\nPowerShellGet            2.0.3.0          PackageManagementProvider, Type, Scope, AllowClobber, SkipPublisherCheck, ...\r\nPowerShellGet            1.6.7.0\r\n```\r\n"}}
{"actor":{"display_login":"bergmeister"}}