Title: RequiredModules manifest property stopped working recently (noticed in daily build) · Issue #8204 · PowerShell/PowerShell · GitHub
Open Graph Title: RequiredModules manifest property stopped working recently (noticed in daily build) · Issue #8204 · PowerShell/PowerShell
X Title: RequiredModules manifest property stopped working recently (noticed in daily build) · Issue #8204 · PowerShell/PowerShell
Description: This issue started only in the last few days using the daily build and does not happen with 6.1 or 6.1-preview. Calling Import-Module on a module that declares RequiredModules = @('C:\full\path\to\manifest.psd1'), causes loading of it to...
Open Graph Description: This issue started only in the last few days using the daily build and does not happen with 6.1 or 6.1-preview. Calling Import-Module on a module that declares RequiredModules = @('C:\full\path\to\...
X Description: This issue started only in the last few days using the daily build and does not happen with 6.1 or 6.1-preview. Calling Import-Module on a module that declares RequiredModules = @('C:\full\path...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/8204
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RequiredModules manifest property stopped working recently (noticed in daily build)","articleBody":"This issue started only in the last few days using the daily build and does not happen with `6.1` or `6.1-preview`.\r\nCalling `Import-Module` on a module that declares `RequiredModules = @('C:\\full\\path\\to\\manifest.psd1')`, causes loading of it to fail. A specific example of such a manifest is [here](https://github.com/bergmeister/posh-profile/blob/master/source/posh-profile.psd1) but even if I change it to just one dependent module with a full path, it still happens, therefore I think the issue is generic to any manifest. with `RequiredModules`\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n```powershell\r\nImport-Module $PathToManifestThatDeclaresRequiredModules\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\nImports dependent modules\r\n\r\nActual behavior\r\n---------------\r\n\r\nThrows because it fails to import dependent modules.\r\n```\r\nImport-Module : The required module 'C:\\Users\\cberg\\git\\posh-profile\\source\\dotnetCli\\dotnetCli.psd1' is not loaded. Load the module or remove the module from 'RequiredModules' in the file 'C:\\Users\\cberg\\git\\posh-profile\\source\\posh-profile.psd1'.\r\n```\r\nLoading the dependent module works fine but an `Import-Module` of the main module fails again with the same error\r\n\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```powershell\r\n> $PSVersionTable\r\nName Value\r\n---- -----\r\nPSVersion 6.2.0-preview.864\r\nPSEdition Core\r\nGitCommitId 6.2.0-preview.864\r\nOS Microsoft Windows 10.0.17134\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```","author":{"url":"https://github.com/bergmeister","@type":"Person","name":"bergmeister"},"datePublished":"2018-11-07T23:16:36Z","url":"https://github.com/PowerShell/PowerShell/issues/8204"}
| 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:585d345e-4738-6150-79ef-8aa20c6d1422 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B7E0:3756EB:28AD08A:38AA3EB:6AFD4FEF |
| html-safe-nonce | 06d7696860c807c946e04f7bfff8ac8dd9f6dad46682dc8333dac5994429f246 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0UwOjM3NTZFQjoyOEFEMDhBOjM4QUEzRUI6NkFGRDRGRUYiLCJ2aXNpdG9yX2lkIjoiODIwODc5MTIyODc4MzYxMTg4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a41a2b12b9799a7c0fe0685d374db6c520a6f831a16309c4b98c94c6734b2aec |
| hovercard-subject-tag | issue:378510814 |
| 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/8204/issue_layout |
| twitter:image | https://opengraph.githubassets.com/103ed6b3cdc72208837beb6ad3cbbcc8aeefbf662947c6650a7c2acb153232ef/PowerShell/PowerShell/issues/8204 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/103ed6b3cdc72208837beb6ad3cbbcc8aeefbf662947c6650a7c2acb153232ef/PowerShell/PowerShell/issues/8204 |
| og:image:alt | This issue started only in the last few days using the daily build and does not happen with 6.1 or 6.1-preview. Calling Import-Module on a module that declares RequiredModules = @('C:\full\path\to\... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bergmeister |
| 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