Title: Suggestion on updating PSD1 metadata when a module is renamed · Issue #19745 · PowerShell/PowerShell · GitHub
Open Graph Title: Suggestion on updating PSD1 metadata when a module is renamed · Issue #19745 · PowerShell/PowerShell
X Title: Suggestion on updating PSD1 metadata when a module is renamed · Issue #19745 · PowerShell/PowerShell
Description: Summary of the new feature / enhancement Off the back of #19742 and also the upcoming rename of PowerShellGet I realised that one of the core issues with module renaming is that it can cause downstream issues when users are using Explici...
Open Graph Description: Summary of the new feature / enhancement Off the back of #19742 and also the upcoming rename of PowerShellGet I realised that one of the core issues with module renaming is that it can cause downst...
X Description: Summary of the new feature / enhancement Off the back of #19742 and also the upcoming rename of PowerShellGet I realised that one of the core issues with module renaming is that it can cause downst...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/19745
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Suggestion on updating PSD1 metadata when a module is renamed","articleBody":"### Summary of the new feature / enhancement\r\n\r\nOff the back of #19742 and also the upcoming [rename of PowerShellGet](https://github.com/PowerShell/PSResourceGet/issues/1120) I realised that one of the core issues with module renaming is that it can cause downstream issues when users are using Explicit Module Loading or Fully Qualified Module Names or even as part of their build or packaging process of modules as part of any scripts or modules, and may also impact others in other ways too.\r\n\r\nI'd Propose a suggested additional property in the PSData part of the PSD1 file of `ModuleAlias` to enable simpler mitigation of issues like this going forward & reduce overall maintenance of build/release/production scripts & modules\r\n\r\nThis would then allow for easier module renames without breaking scripts **as long as** the engine would also be updated to check for this new property when autoloading modules or when Fully Qualified Module Names are used in scripts. It would also likely need additional work in `PowerShellGet` / `PSResourceGet` to enable downloading this from the gallery using the Alias \r\n\r\nThis would be a nice to have to resolve what is classifiable as a self inflicted accidental & avoidable problem, but as products names and scope of modules change this could be a worthwhile investment to make.\r\n\r\n### Proposed technical implementation details (optional)\r\n\r\n_No response_\r\n\r\n\r\n#### Edited 27th July 2023\r\n\r\nMinor amendment - instead of using `ModuleAlias` in PSData within a manifest instead I'd suggest calling it `PreviousModuleName` as this could be used as suggested above for some redirection text for users. \r\n\r\n\r\n#### Edited 29th July 2023\r\nPlease see this issue in [PSResourceGet](https://github.com/PowerShell/PSResourceGet/issues/1314) for a better direction than originally suggested","author":{"url":"https://github.com/kilasuit","@type":"Person","name":"kilasuit"},"datePublished":"2023-06-05T16:57:41Z","url":"https://github.com/PowerShell/PowerShell/issues/19745"}
| 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:494f16e3-b07c-19c6-92cc-d836adcf0bc4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D9C6:1ECA09:44C129:5ABD14:6AFCEA80 |
| html-safe-nonce | 1447539665ee9864511601a0513a9cc04789e7afd25d8cd2b9121e7e0ea43cd4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUM2OjFFQ0EwOTo0NEMxMjk6NUFCRDE0OjZBRkNFQTgwIiwidmlzaXRvcl9pZCI6IjI0ODYyMzAxNzcxNTE3NzMzMTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d4ad6aeacd0981a2c48e7b8cf7000c55f4bdeb65287b597b286dd03f50397c6b |
| hovercard-subject-tag | issue:1742172058 |
| 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/19745/issue_layout |
| twitter:image | https://opengraph.githubassets.com/874bcbdbe8de3c2fa711d043397f731050dfd5a58a993513785024e37b13cb71/PowerShell/PowerShell/issues/19745 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/874bcbdbe8de3c2fa711d043397f731050dfd5a58a993513785024e37b13cb71/PowerShell/PowerShell/issues/19745 |
| og:image:alt | Summary of the new feature / enhancement Off the back of #19742 and also the upcoming rename of PowerShellGet I realised that one of the core issues with module renaming is that it can cause downst... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kilasuit |
| hostname | github.com |
| expected-hostname | github.com |
| None | 99aede4c5f55ec5cf06666a8c9e03ebf9f85f7231223e7f1c38c16e5504835b3 |
| 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 | ecfd63ca125ec74b42f74eeb158b3fa081c8c497 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width