{"action":"created","comment":{"url":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/comments/196259357","pull_request_review_id":129777964,"id":196259357,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NjI1OTM1Nw==","diff_hunk":"@@ -113,12 +115,95 @@ function Install-NuGetClientBinaries\n                                     (-not $_.Path.StartsWith($env:windir, [System.StringComparison]::OrdinalIgnoreCase))\n                                 } | Microsoft.PowerShell.Utility\\Select-Object -First 1 -ErrorAction Ignore\n \n-                if($nugetCmd -and $nugetCmd.Path)\n+                if($nugetCmd -and $nugetCmd.Path -and $nugetCmd.FileVersionInfo.FileVersion)\n                 {\n                     $script:NuGetExePath = $nugetCmd.Path\n+                    $script:NuGetExeVersion = $nugetCmd.FileVersionInfo.FileVersion\n                     $BootstrapNuGetExe = $false\n                 }\n             }\n+\n+            # When -Force is specified, bootstrap the latest version if the local version is less than the minimum version\n+            if ($script:NuGetExeVersion -and ($script:NuGetExeVersion -lt $script:NuGetExeMinRequiredVersion)) \n+            {\n+                if ($Force)\n+                {\n+                    $BootstrapNuGetExe = $true\n+                }\n+                else \n+                {\n+                    # prompt for an upgrade\n+                    $upgradeShouldContinueQueryMessage = $LocalizedData.InstallNugetExeUpgradeShouldContinueQuery -f @($script:NuGetExeMinRequiredVersion, $script:PSGetProgramDataPath, $script:PSGetAppLocalPath)\n+                    $upgradeShouldContinueCaption = $LocalizedData.InstallNuGetExeShouldContinueCaption\n+\n+                    $AdditionalParams = Get-ParametersHashtable -Proxy $Proxy -ProxyCredential $ProxyCredential\n+\n+                    if($Force -or $psCmdlet.ShouldContinue($upgradeShouldContinueQueryMessage, $upgradeShouldContinueCaption))\n+                    {\n+                        if($bootstrapNuGetProvider)","path":"PowerShellGet/private/functions/Install-NuGetClientBinaries.ps1","position":44,"original_position":44,"commit_id":"7e46dece2b9060243a12b2e85778c95635e25e89","original_commit_id":"7ae3abf889739dc92db03fd413420f616601c39d","user":{"login":"bmanikm","id":5000058,"node_id":"MDQ6VXNlcjUwMDAwNTg=","avatar_url":"https://avatars3.githubusercontent.com/u/5000058?v=4","gravatar_id":"","url":"https://api.github.com/users/bmanikm","html_url":"https://github.com/bmanikm","followers_url":"https://api.github.com/users/bmanikm/followers","following_url":"https://api.github.com/users/bmanikm/following{/other_user}","gists_url":"https://api.github.com/users/bmanikm/gists{/gist_id}","starred_url":"https://api.github.com/users/bmanikm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmanikm/subscriptions","organizations_url":"https://api.github.com/users/bmanikm/orgs","repos_url":"https://api.github.com/users/bmanikm/repos","events_url":"https://api.github.com/users/bmanikm/events{/privacy}","received_events_url":"https://api.github.com/users/bmanikm/received_events","type":"User","site_admin":false},"body":">$bootstrapNuGetProvider [](start = 27, length = 23)\r\n\r\nAbove prompt message is only for upgrading the NuGet.exe. If we are bootstrapping the NuGet provider, please update the prompt message logic.","created_at":"2018-06-18T23:51:22Z","updated_at":"2018-06-18T23:51:22Z","html_url":"https://github.com/PowerShell/PowerShellGet/pull/291#discussion_r196259357","pull_request_url":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/291","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/comments/196259357"},"html":{"href":"https://github.com/PowerShell/PowerShellGet/pull/291#discussion_r196259357"},"pull_request":{"href":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/291"}}},"pull_request":{"url":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/291","id":195356690,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1MzU2Njkw","html_url":"https://github.com/PowerShell/PowerShellGet/pull/291","diff_url":"https://github.com/PowerShell/PowerShellGet/pull/291.diff","patch_url":"https://github.com/PowerShell/PowerShellGet/pull/291.patch","issue_url":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/291","number":291,"state":"open","locked":false,"title":"Updated NuGet.exe dependency to min version 4.1.0 for Publish-Module and Publish-Script","user":{"login":"alerickson","id":25858831,"node_id":"MDQ6VXNlcjI1ODU4ODMx","avatar_url":"https://avatars2.githubusercontent.com/u/25858831?v=4","gravatar_id":"","url":"https://api.github.com/users/alerickson","html_url":"https://github.com/alerickson","followers_url":"https://api.github.com/users/alerickson/followers","following_url":"https://api.github.com/users/alerickson/following{/other_user}","gists_url":"https://api.github.com/users/alerickson/gists{/gist_id}","starred_url":"https://api.github.com/users/alerickson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alerickson/subscriptions","organizations_url":"https://api.github.com/users/alerickson/orgs","repos_url":"https://api.github.com/users/alerickson/repos","events_url":"https://api.github.com/users/alerickson/events{/privacy}","received_events_url":"https://api.github.com/users/alerickson/received_events","type":"User","site_admin":false},"body":"- Updated dependency to version 4.1.0 of NuGet.exe\r\n- Updated NuGet bootstrap URL to from version 2.8 (https://nuget.org/nuget.exe) to latest version (https://dist.nuget.org/win-x86-commandline/latest/nuget.exe)\r\n- Updated dotnet version dependency from 2.0.0 to 2.1.0\r\n- Added prompt for NuGet.exe upgrade if version is less than minimum required version","created_at":"2018-06-17T01:33:56Z","updated_at":"2018-06-18T23:51:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1168f392ce279558d9a63dcda5c534d168336f31","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/291/commits","review_comments_url":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/291/comments","review_comment_url":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/291/comments","statuses_url":"https://api.github.com/repos/PowerShell/PowerShellGet/statuses/7e46dece2b9060243a12b2e85778c95635e25e89","head":{"label":"alerickson:nugetDependency","ref":"nugetDependency","sha":"7e46dece2b9060243a12b2e85778c95635e25e89","user":{"login":"alerickson","id":25858831,"node_id":"MDQ6VXNlcjI1ODU4ODMx","avatar_url":"https://avatars2.githubusercontent.com/u/25858831?v=4","gravatar_id":"","url":"https://api.github.com/users/alerickson","html_url":"https://github.com/alerickson","followers_url":"https://api.github.com/users/alerickson/followers","following_url":"https://api.github.com/users/alerickson/following{/other_user}","gists_url":"https://api.github.com/users/alerickson/gists{/gist_id}","starred_url":"https://api.github.com/users/alerickson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alerickson/subscriptions","organizations_url":"https://api.github.com/users/alerickson/orgs","repos_url":"https://api.github.com/users/alerickson/repos","events_url":"https://api.github.com/users/alerickson/events{/privacy}","received_events_url":"https://api.github.com/users/alerickson/received_events","type":"User","site_admin":false},"repo":{"id":132494603,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI0OTQ2MDM=","name":"PowerShellGet","full_name":"alerickson/PowerShellGet","owner":{"login":"alerickson","id":25858831,"node_id":"MDQ6VXNlcjI1ODU4ODMx","avatar_url":"https://avatars2.githubusercontent.com/u/25858831?v=4","gravatar_id":"","url":"https://api.github.com/users/alerickson","html_url":"https://github.com/alerickson","followers_url":"https://api.github.com/users/alerickson/followers","following_url":"https://api.github.com/users/alerickson/following{/other_user}","gists_url":"https://api.github.com/users/alerickson/gists{/gist_id}","starred_url":"https://api.github.com/users/alerickson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alerickson/subscriptions","organizations_url":"https://api.github.com/users/alerickson/orgs","repos_url":"https://api.github.com/users/alerickson/repos","events_url":"https://api.github.com/users/alerickson/events{/privacy}","received_events_url":"https://api.github.com/users/alerickson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alerickson/PowerShellGet","description":"PowerShellGet is the Package Manager for PowerShell","fork":true,"url":"https://api.github.com/repos/alerickson/PowerShellGet","forks_url":"https://api.github.com/repos/alerickson/PowerShellGet/forks","keys_url":"https://api.github.com/repos/alerickson/PowerShellGet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alerickson/PowerShellGet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alerickson/PowerShellGet/teams","hooks_url":"https://api.github.com/repos/alerickson/PowerShellGet/hooks","issue_events_url":"https://api.github.com/repos/alerickson/PowerShellGet/issues/events{/number}","events_url":"https://api.github.com/repos/alerickson/PowerShellGet/events","assignees_url":"https://api.github.com/repos/alerickson/PowerShellGet/assignees{/user}","branches_url":"https://api.github.com/repos/alerickson/PowerShellGet/branches{/branch}","tags_url":"https://api.github.com/repos/alerickson/PowerShellGet/tags","blobs_url":"https://api.github.com/repos/alerickson/PowerShellGet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alerickson/PowerShellGet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alerickson/PowerShellGet/git/refs{/sha}","trees_url":"https://api.github.com/repos/alerickson/PowerShellGet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alerickson/PowerShellGet/statuses/{sha}","languages_url":"https://api.github.com/repos/alerickson/PowerShellGet/languages","stargazers_url":"https://api.github.com/repos/alerickson/PowerShellGet/stargazers","contributors_url":"https://api.github.com/repos/alerickson/PowerShellGet/contributors","subscribers_url":"https://api.github.com/repos/alerickson/PowerShellGet/subscribers","subscription_url":"https://api.github.com/repos/alerickson/PowerShellGet/subscription","commits_url":"https://api.github.com/repos/alerickson/PowerShellGet/commits{/sha}","git_commits_url":"https://api.github.com/repos/alerickson/PowerShellGet/git/commits{/sha}","comments_url":"https://api.github.com/repos/alerickson/PowerShellGet/comments{/number}","issue_comment_url":"https://api.github.com/repos/alerickson/PowerShellGet/issues/comments{/number}","contents_url":"https://api.github.com/repos/alerickson/PowerShellGet/contents/{+path}","compare_url":"https://api.github.com/repos/alerickson/PowerShellGet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alerickson/PowerShellGet/merges","archive_url":"https://api.github.com/repos/alerickson/PowerShellGet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alerickson/PowerShellGet/downloads","issues_url":"https://api.github.com/repos/alerickson/PowerShellGet/issues{/number}","pulls_url":"https://api.github.com/repos/alerickson/PowerShellGet/pulls{/number}","milestones_url":"https://api.github.com/repos/alerickson/PowerShellGet/milestones{/number}","notifications_url":"https://api.github.com/repos/alerickson/PowerShellGet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alerickson/PowerShellGet/labels{/name}","releases_url":"https://api.github.com/repos/alerickson/PowerShellGet/releases{/id}","deployments_url":"https://api.github.com/repos/alerickson/PowerShellGet/deployments","created_at":"2018-05-07T17:30:38Z","updated_at":"2018-06-05T21:13:11Z","pushed_at":"2018-06-18T22:45:51Z","git_url":"git://github.com/alerickson/PowerShellGet.git","ssh_url":"git@github.com:alerickson/PowerShellGet.git","clone_url":"https://github.com/alerickson/PowerShellGet.git","svn_url":"https://github.com/alerickson/PowerShellGet","homepage":"https://www.PowerShellGallery.com","size":1264,"stargazers_count":0,"watchers_count":0,"language":"PowerShell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"development"}},"base":{"label":"PowerShell:development","ref":"development","sha":"c5af7554cc638d80eb3cec6a979949400ae5b0de","user":{"login":"PowerShell","id":11524380,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNTI0Mzgw","avatar_url":"https://avatars3.githubusercontent.com/u/11524380?v=4","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"repo":{"id":57910460,"node_id":"MDEwOlJlcG9zaXRvcnk1NzkxMDQ2MA==","name":"PowerShellGet","full_name":"PowerShell/PowerShellGet","owner":{"login":"PowerShell","id":11524380,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNTI0Mzgw","avatar_url":"https://avatars3.githubusercontent.com/u/11524380?v=4","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PowerShell/PowerShellGet","description":"PowerShellGet is the Package Manager for PowerShell","fork":false,"url":"https://api.github.com/repos/PowerShell/PowerShellGet","forks_url":"https://api.github.com/repos/PowerShell/PowerShellGet/forks","keys_url":"https://api.github.com/repos/PowerShell/PowerShellGet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PowerShell/PowerShellGet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PowerShell/PowerShellGet/teams","hooks_url":"https://api.github.com/repos/PowerShell/PowerShellGet/hooks","issue_events_url":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/events{/number}","events_url":"https://api.github.com/repos/PowerShell/PowerShellGet/events","assignees_url":"https://api.github.com/repos/PowerShell/PowerShellGet/assignees{/user}","branches_url":"https://api.github.com/repos/PowerShell/PowerShellGet/branches{/branch}","tags_url":"https://api.github.com/repos/PowerShell/PowerShellGet/tags","blobs_url":"https://api.github.com/repos/PowerShell/PowerShellGet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PowerShell/PowerShellGet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PowerShell/PowerShellGet/git/refs{/sha}","trees_url":"https://api.github.com/repos/PowerShell/PowerShellGet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PowerShell/PowerShellGet/statuses/{sha}","languages_url":"https://api.github.com/repos/PowerShell/PowerShellGet/languages","stargazers_url":"https://api.github.com/repos/PowerShell/PowerShellGet/stargazers","contributors_url":"https://api.github.com/repos/PowerShell/PowerShellGet/contributors","subscribers_url":"https://api.github.com/repos/PowerShell/PowerShellGet/subscribers","subscription_url":"https://api.github.com/repos/PowerShell/PowerShellGet/subscription","commits_url":"https://api.github.com/repos/PowerShell/PowerShellGet/commits{/sha}","git_commits_url":"https://api.github.com/repos/PowerShell/PowerShellGet/git/commits{/sha}","comments_url":"https://api.github.com/repos/PowerShell/PowerShellGet/comments{/number}","issue_comment_url":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/comments{/number}","contents_url":"https://api.github.com/repos/PowerShell/PowerShellGet/contents/{+path}","compare_url":"https://api.github.com/repos/PowerShell/PowerShellGet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PowerShell/PowerShellGet/merges","archive_url":"https://api.github.com/repos/PowerShell/PowerShellGet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PowerShell/PowerShellGet/downloads","issues_url":"https://api.github.com/repos/PowerShell/PowerShellGet/issues{/number}","pulls_url":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls{/number}","milestones_url":"https://api.github.com/repos/PowerShell/PowerShellGet/milestones{/number}","notifications_url":"https://api.github.com/repos/PowerShell/PowerShellGet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PowerShell/PowerShellGet/labels{/name}","releases_url":"https://api.github.com/repos/PowerShell/PowerShellGet/releases{/id}","deployments_url":"https://api.github.com/repos/PowerShell/PowerShellGet/deployments","created_at":"2016-05-02T18:13:31Z","updated_at":"2018-06-17T18:21:38Z","pushed_at":"2018-06-18T22:45:53Z","git_url":"git://github.com/PowerShell/PowerShellGet.git","ssh_url":"git@github.com:PowerShell/PowerShellGet.git","clone_url":"https://github.com/PowerShell/PowerShellGet.git","svn_url":"https://github.com/PowerShell/PowerShellGet","homepage":"https://www.PowerShellGallery.com","size":1196,"stargazers_count":185,"watchers_count":185,"language":"PowerShell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":78,"mirror_url":null,"archived":false,"open_issues_count":98,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":78,"open_issues":98,"watchers":185,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/291"},"html":{"href":"https://github.com/PowerShell/PowerShellGet/pull/291"},"issue":{"href":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/291"},"comments":{"href":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/291/comments"},"review_comments":{"href":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/291/comments"},"review_comment":{"href":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PowerShell/PowerShellGet/pulls/291/commits"},"statuses":{"href":"https://api.github.com/repos/PowerShell/PowerShellGet/statuses/7e46dece2b9060243a12b2e85778c95635e25e89"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"bmanikm"}}