René's URL Explorer Experiment


Title: PowerShellGet needs to check compatibility before installing a script or module · Issue #528 · PowerShell/PowerShellGetv2 · GitHub

Open Graph Title: PowerShellGet needs to check compatibility before installing a script or module · Issue #528 · PowerShell/PowerShellGetv2

X Title: PowerShellGet needs to check compatibility before installing a script or module · Issue #528 · PowerShell/PowerShellGetv2

Description: For reference, see the discussion on PowerShell/PowerShell#10318. That PR ensures that the workflow keyword results in a parse error. If you build that PR and run it, and try to run the PowerShellGet tests, you get an error when one of t...

Open Graph Description: For reference, see the discussion on PowerShell/PowerShell#10318. That PR ensures that the workflow keyword results in a parse error. If you build that PR and run it, and try to run the PowerShellG...

X Description: For reference, see the discussion on PowerShell/PowerShell#10318. That PR ensures that the workflow keyword results in a parse error. If you build that PR and run it, and try to run the PowerShellG...

Opengraph URL: https://github.com/PowerShell/PowerShellGetv2/issues/528

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PowerShellGet needs to check compatibility before installing a script or module","articleBody":"For reference, see the discussion on [PowerShell/PowerShell#10318](https://github.com/PowerShell/PowerShell/pull/10318).\r\n\r\nThat PR ensures that the `workflow` keyword results in a parse error. If you build that PR and run it, and try to run the PowerShellGet tests, you get an error when one of the tests tries to install `Fabrikam-ServerScript` from `www.poshtestgallery.com`. The error occurs because that script has a `workflow` defined within it, and that no longer parses, so the installation fails. The error occurs when PowerShellGet tries to get the script info, which requires parsing the script, which won't work in PowerShell 7.\r\n\r\nThe simple solution to this is for PowerShellGet to check if a script/module has workflow in it _before_ it tries to install it, and prevent that installation from happening with an appropriate error message in `PowerShell 6+`. Users can still save the script (this does not do any parsing checks), but they won't be able to install such a script, and they'll know why because the error message will tell them the script includes a PowerShell workflow, which is not supported on PowerShell 6 or later.\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n```powershell\r\n# Note you need to register www.poshtestgallery.com as a repo and save\r\n# the repo's name in $repoName before you run this command on\r\n# PowerShell 6 or later.\r\nInstall-Script Fabrikam-ServerScript -Repository $repoName\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\nAn error message indicating that the script cannot be installed because it contains PowerShell workflow, which is not available in PowerShell 6 or later.\r\n\r\nActual behavior\r\n---------------\r\n\r\nOn PowerShell 6, the script installs.\r\n\r\nOn PowerShell 7 with the PR code: an error is generated because the script does not parse.\r\n\r\nEnvironment data\r\n----------------\r\n\r\n```powershell\r\n\u003e $PSVersionTable\r\nName                           Value\r\n----                           -----\r\nPSVersion                      7.0.0-preview.2\r\nPSEdition                      Core\r\nGitCommitId                    7.0.0-preview.2-63-g00949ab3522c66bc2efdcb62779d64c7546a5830\r\nOS                             Microsoft Windows 10.0.17763\r\nPlatform                       Win32NT\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```powershell\r\n\u003e Get-Module -ListAvailable PowerShellGet,PackageManagement\r\n    Directory: C:\\Users\\kirka\\OneDrive\\Documents\\PowerShell\\Modules\r\n\r\nModuleType Version    PreRelease Name                                PSEdition ExportedCommands\r\n---------- -------    ---------- ----                                --------- ----------------\r\nScript     1.4.3                 PackageManagement                   Desk      {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}\r\nScript     2.2                   PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}\r\n\r\n    Directory: C:\\Program Files\\PowerShell\\Modules\r\n\r\nModuleType Version    PreRelease Name                                PSEdition ExportedCommands\r\n---------- -------    ---------- ----                                --------- ----------------\r\nScript     1.4                   PackageManagement                   Desk      {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}\r\nScript     1.2.3                 PackageManagement                   Desk      {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}\r\nScript     1.1.7.2               PackageManagement                   Desk      {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}\r\nScript     2.1.4                 PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}\r\nScript     2.0.3                 PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}\r\nScript     2.0.0                 PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}\r\n\r\n    Directory: C:\\users\\kirka\\source\\repos\\powershell\\src\\powershell-win-core\\bin\\debug\\netcoreapp3.0\\win7-x64\\publish\\Modules\r\n\r\nModuleType Version    PreRelease Name                                PSEdition ExportedCommands\r\n---------- -------    ---------- ----                                --------- ----------------\r\nScript     1.4.3                 PackageManagement                   Desk      {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}\r\nScript     2.2                   PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}\r\n```\r\n\r\n```powershell\r\n\u003e Get-PackageProvider -ListAvailable\r\nName                     Version          DynamicOptions\r\n----                     -------          --------------\r\nNuGet                    3.0.0.1          Destination, ExcludeVersion, Scope, SkipDependencies, Headers, FilterOnTag, Contains, AllowPrereleaseVersions, ConfigFile, SkipValidate\r\nPowerShellGet            2.2.0.0          PackageManagementProvider, Type, Scope, AllowClobber, SkipPublisherCheck, InstallUpdate, NoPathUpdate, AllowPrereleaseVersions, Filter, Tag, Includes, DscResource, RoleCapability, Command, Acce…\r\nPowerShellGet            2.1.4.0\r\nPowerShellGet            2.0.3.0\r\nPowerShellGet            2.0.0.0\r\n```\r\n","author":{"url":"https://github.com/KirkMunro","@type":"Person","name":"KirkMunro"},"datePublished":"2019-08-19T16:53:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/528/PowerShellGetv2/issues/528"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:dd35acf6-714e-180d-7b9c-faf22dee2ded
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id85B0:18991A:A60AF7:ED94A8:6A59F91F
html-safe-nonce647bca039457fbc501042652e683a63dc6f4f44a5c4fefda78daab28355b095a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUIwOjE4OTkxQTpBNjBBRjc6RUQ5NEE4OjZBNTlGOTFGIiwidmlzaXRvcl9pZCI6IjUxNjk1MzcxNjAyNTc4NjE5MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb63c0c0628d983c5a31c99a2d97e853591624bb849a8e11e0350489c469662fc
hovercard-subject-tagissue:482420129
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShellGetv2/528/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fd30178a3a82fe80fcf70afa8a22356ef024aedf8fe640e8b4dd84f8682e5e1e/PowerShell/PowerShellGetv2/issues/528
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fd30178a3a82fe80fcf70afa8a22356ef024aedf8fe640e8b4dd84f8682e5e1e/PowerShell/PowerShellGetv2/issues/528
og:image:altFor reference, see the discussion on PowerShell/PowerShell#10318. That PR ensures that the workflow keyword results in a parse error. If you build that PR and run it, and try to run the PowerShellG...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameKirkMunro
hostnamegithub.com
expected-hostnamegithub.com
Noneba3976babb66479b1c943a8edc0777d96157da48fadc0161f9ddb219deee8353
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PowerShellGetv2 git https://github.com/PowerShell/PowerShellGetv2.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id57910460
octolytics-dimension-repository_nwoPowerShell/PowerShellGetv2
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id57910460
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShellGetv2
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release24801cf86623a319252348d1fd69122ad974b842
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PowerShellGetv2/issues/528#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShellGetv2%2Fissues%2F528
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShellGetv2%2Fissues%2F528
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShell%2FPowerShellGetv2
Reloadhttps://github.com/PowerShell/PowerShellGetv2/issues/528
Reloadhttps://github.com/PowerShell/PowerShellGetv2/issues/528
Reloadhttps://github.com/PowerShell/PowerShellGetv2/issues/528
Please reload this pagehttps://github.com/PowerShell/PowerShellGetv2/issues/528
PowerShell https://github.com/PowerShell
PowerShellGetv2https://github.com/PowerShell/PowerShellGetv2
Notifications https://github.com/login?return_to=%2FPowerShell%2FPowerShellGetv2
Fork 133 https://github.com/login?return_to=%2FPowerShell%2FPowerShellGetv2
Star 432 https://github.com/login?return_to=%2FPowerShell%2FPowerShellGetv2
Code https://github.com/PowerShell/PowerShellGetv2
Issues 110 https://github.com/PowerShell/PowerShellGetv2/issues
Pull requests 5 https://github.com/PowerShell/PowerShellGetv2/pulls
Actions https://github.com/PowerShell/PowerShellGetv2/actions
Projects https://github.com/PowerShell/PowerShellGetv2/projects
Security and quality 0 https://github.com/PowerShell/PowerShellGetv2/security
Insights https://github.com/PowerShell/PowerShellGetv2/pulse
Code https://github.com/PowerShell/PowerShellGetv2
Issues https://github.com/PowerShell/PowerShellGetv2/issues
Pull requests https://github.com/PowerShell/PowerShellGetv2/pulls
Actions https://github.com/PowerShell/PowerShellGetv2/actions
Projects https://github.com/PowerShell/PowerShellGetv2/projects
Security and quality https://github.com/PowerShell/PowerShellGetv2/security
Insights https://github.com/PowerShell/PowerShellGetv2/pulse
PowerShellGet needs to check compatibility before installing a script or modulehttps://github.com/PowerShell/PowerShellGetv2/issues/528#top
Install-Modulehttps://github.com/PowerShell/PowerShellGetv2/issues?q=state%3Aopen%20label%3A%22Install-Module%22
Issue-Investigatehttps://github.com/PowerShell/PowerShellGetv2/issues?q=state%3Aopen%20label%3A%22Issue-Investigate%22
https://github.com/KirkMunro
KirkMunrohttps://github.com/KirkMunro
on Aug 19, 2019https://github.com/PowerShell/PowerShellGetv2/issues/528#issue-482420129
PowerShell/PowerShell#10318https://github.com/PowerShell/PowerShell/pull/10318
Install-Modulehttps://github.com/PowerShell/PowerShellGetv2/issues?q=state%3Aopen%20label%3A%22Install-Module%22
Issue-Investigatehttps://github.com/PowerShell/PowerShellGetv2/issues?q=state%3Aopen%20label%3A%22Issue-Investigate%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.