Title: Verbose output on function exported but isn't actually exported (nor intended to be exported) from script module · Issue #8740 · PowerShell/PowerShell · GitHub
Open Graph Title: Verbose output on function exported but isn't actually exported (nor intended to be exported) from script module · Issue #8740 · PowerShell/PowerShell
X Title: Verbose output on function exported but isn't actually exported (nor intended to be exported) from script module · Issue #8740 · PowerShell/PowerShell
Description: Steps to reproduce New-ModuleManifest -Path ./noexport.psd1 -RootModule noexport.psm1 -FunctionsToExport @() "function test-notExported {}" > noexport.psm1 ipmo ./noexport.psd1 -verbose Expected behavior VERBOSE: Loading module from path...
Open Graph Description: Steps to reproduce New-ModuleManifest -Path ./noexport.psd1 -RootModule noexport.psm1 -FunctionsToExport @() "function test-notExported {}" > noexport.psm1 ipmo ./noexport.psd1 -verbose Expected be...
X Description: Steps to reproduce New-ModuleManifest -Path ./noexport.psd1 -RootModule noexport.psm1 -FunctionsToExport @() "function test-notExported {}" > noexport.psm1 ipmo ./noexport.psd1 -verbos...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/8740
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Verbose output on function exported but isn't actually exported (nor intended to be exported) from script module","articleBody":"\u003c!--\r\n\r\nFor Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:\r\nWindows PowerShell [UserVoice](https://windowsserver.uservoice.com/forums/301869-powershell)\r\n\r\nThis repository is **ONLY** for PowerShell Core 6 issues.\r\n\r\n- Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- Search the existing issues.\r\n- Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- Refer to the [known issues](https://docs.microsoft.com/powershell/scripting/whats-new/known-issues-ps6?view=powershell-6).\r\n\r\n--\u003e\r\n\r\n# Steps to reproduce\r\n\r\n```powershell\r\nNew-ModuleManifest -Path ./noexport.psd1 -RootModule noexport.psm1 -FunctionsToExport @()\r\n \"function test-notExported {}\" \u003e noexport.psm1\r\nipmo ./noexport.psd1 -verbose\r\n```\r\n\r\n# Expected behavior\r\n\r\n```none\r\nVERBOSE: Loading module from path '/Users/steve/test/Modules/noexport/noexport.psd1'.\r\nVERBOSE: Loading module from path '/Users/steve/test/Modules/noexport/noexport.psm1'.\r\n```\r\n\r\n# Actual behavior\r\n\r\n```none\r\nVERBOSE: Loading module from path '/Users/steve/test/Modules/noexport/noexport.psd1'.\r\nVERBOSE: Loading module from path '/Users/steve/test/Modules/noexport/noexport.psm1'.\r\nVERBOSE: Exporting function 'test-notExported'.\r\n```\r\n\r\nNote that the function isn't actually exported, seems like the verbose message is in the wrong place in the code.\r\n\r\n# Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\n```none\r\nName Value\r\n---- -----\r\nPSVersion 6.2.0-preview.3\r\nPSEdition Core\r\nGitCommitId 6.2.0-preview.3\r\nOS Darwin 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64\r\nPlatform Unix\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","author":{"url":"https://github.com/SteveL-MSFT","@type":"Person","name":"SteveL-MSFT"},"datePublished":"2019-01-24T22:19:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/8740/PowerShell/issues/8740"}
| 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:28d63ae5-eb6e-cc8d-0332-d702356456fe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9DD4:277ED1:99438D:C71325:6A5C128D |
| html-safe-nonce | 5c4f76d373495207df858062f5b5f87e60ee1d17a8938974eac5a8ca2e880f6a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REQ0OjI3N0VEMTo5OTQzOEQ6QzcxMzI1OjZBNUMxMjhEIiwidmlzaXRvcl9pZCI6IjQ2MDI3Nzc0Njc3NjU5MjAzOTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 88e0f600a508e87ad8effe6deb3fdb9ab1ac4445628be822c78fee4d0c28fefc |
| hovercard-subject-tag | issue:402920846 |
| 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/8740/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b8385e7700688f1eca4d17c6d7e5482808456804a972aee5e2cae17e337e4e8b/PowerShell/PowerShell/issues/8740 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b8385e7700688f1eca4d17c6d7e5482808456804a972aee5e2cae17e337e4e8b/PowerShell/PowerShell/issues/8740 |
| og:image:alt | Steps to reproduce New-ModuleManifest -Path ./noexport.psd1 -RootModule noexport.psm1 -FunctionsToExport @() "function test-notExported {}" > noexport.psm1 ipmo ./noexport.psd1 -verbose Expected be... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SteveL-MSFT |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width