Title: Get-Module accepts nonsensical combinations of ModuleVersion and MaximumVersion entries for -FullyQualifiedName · Issue #7337 · PowerShell/PowerShell · GitHub
Open Graph Title: Get-Module accepts nonsensical combinations of ModuleVersion and MaximumVersion entries for -FullyQualifiedName · Issue #7337 · PowerShell/PowerShell
X Title: Get-Module accepts nonsensical combinations of ModuleVersion and MaximumVersion entries for -FullyQualifiedName · Issue #7337 · PowerShell/PowerShell
Description: Steps to reproduce Request a minimum version of 1.6.0 and - nonsensically - a maximum version of 1.5.0: Get-Module -ListAvailable -FullyQualifiedName @{ ModuleName='PowerShellGet'; ModuleVersion='1.6.0'; MaximumVersion='1.5.0' } Expected...
Open Graph Description: Steps to reproduce Request a minimum version of 1.6.0 and - nonsensically - a maximum version of 1.5.0: Get-Module -ListAvailable -FullyQualifiedName @{ ModuleName='PowerShellGet'; ModuleVersion='1...
X Description: Steps to reproduce Request a minimum version of 1.6.0 and - nonsensically - a maximum version of 1.5.0: Get-Module -ListAvailable -FullyQualifiedName @{ ModuleName='PowerShellGet'; ModuleVe...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/7337
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get-Module accepts nonsensical combinations of ModuleVersion and MaximumVersion entries for -FullyQualifiedName","articleBody":"\r\nSteps to reproduce\r\n------------------\r\n\r\nRequest a minimum version of 1.6.0 and - nonsensically - a maximum version of 1.5.0:\r\n\r\n```powershell\r\nGet-Module -ListAvailable -FullyQualifiedName @{ ModuleName='PowerShellGet'; ModuleVersion='1.6.0'; MaximumVersion='1.5.0' }\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\nI think a statement-terminating error indicating that `MaximumVersion` must be greater or equal to `ModuleVersion` (which uses _minimum_ logic) would be more helpful than the current behavior.\r\n\r\nIf feasible, this validation should be tied to fully qualified module names themselves, wherever they are accepted.\r\n\r\nActual behavior\r\n---------------\r\n\r\nThe argument is quietly accepted and therefore results in no output (because, by definition, no modules match).\r\n\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\r\n```powershell\r\nPowerShell Core v6.1.0-preview.3 on macOS 10.13.6\r\nPowerShell Core v6.1.0-preview.3 on Ubuntu 16.04.4 LTS\r\nPowerShell Core v6.1.0-preview.3 on Microsoft Windows 10 Pro (64-bit; Version 1803, OS Build: 17134.165)\r\n\\Windows PowerShell v5.1.17134.165 on Microsoft Windows 10 Pro (64-bit; Version 1803, OS Build: 17134.165)\r\n```\r\n","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2018-07-23T13:23:27Z","url":"https://github.com/PowerShell/PowerShell/issues/7337"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:77393f54-c418-6628-6a68-640181979c62 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D70C:BB03C:A89B7:EBB1B:6AFD4AFD |
| html-safe-nonce | ff38cd64771f11c7e1e92937b2e82eda370a76b71d6d8d3edc244f37f3152fee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzBDOkJCMDNDOkE4OUI3OkVCQjFCOjZBRkQ0QUZEIiwidmlzaXRvcl9pZCI6IjcyMDAzNDM1MDMzNjcxMjk4NTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | da2cca684dfb8c04af28e1e4913f23f4a6f4e3a42364eb15d8e65a9a7cbd1314 |
| hovercard-subject-tag | issue:343631240 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/7337/issue_layout |
| twitter:image | https://opengraph.githubassets.com/744a3449d1532a5057ff69731a5e7af96d0c3aa65f30ec50b4aab2f964ed131f/PowerShell/PowerShell/issues/7337 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/744a3449d1532a5057ff69731a5e7af96d0c3aa65f30ec50b4aab2f964ed131f/PowerShell/PowerShell/issues/7337 |
| og:image:alt | Steps to reproduce Request a minimum version of 1.6.0 and - nonsensically - a maximum version of 1.5.0: Get-Module -ListAvailable -FullyQualifiedName @{ ModuleName='PowerShellGet'; ModuleVersion='1... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mklement0 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width