Title: Build-Module can produce invalid module without raising error · Issue #101 · PoshCode/ModuleBuilder · GitHub
Open Graph Title: Build-Module can produce invalid module without raising error · Issue #101 · PoshCode/ModuleBuilder
X Title: Build-Module can produce invalid module without raising error · Issue #101 · PoshCode/ModuleBuilder
Description: In at least two cases, Build-Module produces a module which cannot be imported and does not generate an error: When you have a valid Build.psd1 and manifest but no source .ps1 files, Build-Module creates the output folder and the output ...
Open Graph Description: In at least two cases, Build-Module produces a module which cannot be imported and does not generate an error: When you have a valid Build.psd1 and manifest but no source .ps1 files, Build-Module c...
X Description: In at least two cases, Build-Module produces a module which cannot be imported and does not generate an error: When you have a valid Build.psd1 and manifest but no source .ps1 files, Build-Module c...
Opengraph URL: https://github.com/PoshCode/ModuleBuilder/issues/101
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Build-Module can produce invalid module without raising error","articleBody":"In at least two cases, Build-Module produces a module which cannot be imported and does not generate an error:\r\n- When you have a valid Build.psd1 and manifest but no source .ps1 files, Build-Module creates the output folder and the output manifest, but no .psm1.\r\n- When you have certain syntax errors (such as mismatched braces or misspelled function), Build-Module produces a .psm1 that will fail to import and does not complain about it.\r\n\r\nIt would be helpful if the tool responsible for building a script module could avoid producing output which cannot be imported and report an error when it is unable to do so.\r\n\r\nIf I were designing a build tool like this:\r\n- In the case of no source files, it would produce an error message and no output would be created. Another option would be to generate an empty .psm1 file if there is some reason for wanting to be able to generate a manifest even when there are no source files. An empty .psm1 can still be imported.\r\n- When there are syntax errors that would prevent the output module from being imported, it would report the errors, including source file and location, and generate no output.","author":{"url":"https://github.com/daviesj","@type":"Person","name":"daviesj"},"datePublished":"2020-10-07T19:41:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/101/ModuleBuilder/issues/101"}
| 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:6f024681-776d-d3cf-4ded-5af8227ab091 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90B0:344C46:27229D3:3784E5C:697907A4 |
| html-safe-nonce | 169e13b03d5226f590a6501d05005f534d94797ee2e6b88d867566c27a2dd0fb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEIwOjM0NEM0NjoyNzIyOUQzOjM3ODRFNUM6Njk3OTA3QTQiLCJ2aXNpdG9yX2lkIjoiMjY4NDg4NTU4MjkzNjA4MjM0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cb73e8896dd28cd8008f9ddca08ead8628ddb36482205a1057da3b04e5d73928 |
| hovercard-subject-tag | issue:716801847 |
| 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/PoshCode/ModuleBuilder/101/issue_layout |
| twitter:image | https://opengraph.githubassets.com/38051b9228f6229d20159fed04cb5b8ec62213c80093cae4cb16db07da0d2591/PoshCode/ModuleBuilder/issues/101 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/38051b9228f6229d20159fed04cb5b8ec62213c80093cae4cb16db07da0d2591/PoshCode/ModuleBuilder/issues/101 |
| og:image:alt | In at least two cases, Build-Module produces a module which cannot be imported and does not generate an error: When you have a valid Build.psd1 and manifest but no source .ps1 files, Build-Module c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | daviesj |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6ea7ee451781d61a7d52349482d8542aa79fb260ac3eee5bdb5bc3254706e297 |
| turbo-cache-control | no-preview |
| go-import | github.com/PoshCode/ModuleBuilder git https://github.com/PoshCode/ModuleBuilder.git |
| octolytics-dimension-user_id | 5641451 |
| octolytics-dimension-user_login | PoshCode |
| octolytics-dimension-repository_id | 18412121 |
| octolytics-dimension-repository_nwo | PoshCode/ModuleBuilder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 18412121 |
| octolytics-dimension-repository_network_root_nwo | PoshCode/ModuleBuilder |
| 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 | 26d23265f5ce81c7eb01d7a436e9442b19d30bc6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width