Title: $BuildRoot never gets set · Issue #25 · ModuleBuild/ModuleBuild · GitHub
Open Graph Title: $BuildRoot never gets set · Issue #25 · ModuleBuild/ModuleBuild
X Title: $BuildRoot never gets set · Issue #25 · ModuleBuild/ModuleBuild
Description: It seems that $ENV:BuildRoot never is assigned before Meta.tests.ps1 is executed. As a result $BuildRoot is never assigned in .\
Open Graph Description: It seems that $ENV:BuildRoot never is assigned before Meta.tests.ps1 is executed. As a result $BuildRoot is never assigned in .\
X Description: It seems that $ENV:BuildRoot never is assigned before Meta.tests.ps1 is executed. As a result $BuildRoot is never assigned in .\<ModuleName>.build.ps1 . OS: Windows 10 PowerShell Version: 5.1...
Opengraph URL: https://github.com/ModuleBuild/ModuleBuild/issues/25
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"$BuildRoot never gets set","articleBody":"It seems that $ENV:BuildRoot never is assigned before Meta.tests.ps1 is executed. As a result $BuildRoot is never assigned in `.\\\u003cModuleName\u003e.build.ps1` .\r\n\r\n- OS: Windows 10\r\n- PowerShell Version: 5.1\r\n- List the steps to reproduce the problem below (if possible attach a screenshot and/or link to the code): \r\n\r\nCreate a new module. Close PowerShell session. Run `.\\Build.ps1 -test`\r\n\r\n```\r\n[-] Text files formatting.Files encoding.Doesn't use Unicode encoding 65ms (46ms|19ms)\r\n at \u003cScriptBlock\u003e, .\\Tests\\meta\\Meta.tests.ps1:20\r\n at \u003cScriptBlock\u003e, .\\Tests\\meta\\Meta.tests.ps1:19\r\n ParameterBindingValidationException: Cannot bind argument to parameter 'fileInfo' because it is null.\r\n[-] Text files formatting.Indentations.Uses spaces for indentation, not tabs 4ms (3ms|1ms)\r\n at \u003cScriptBlock\u003e, .\\Tests\\meta\\Meta.tests.ps1:35\r\n at \u003cScriptBlock\u003e, .\\Tests\\meta\\Meta.tests.ps1:32\r\n ParameterBindingValidationException: Cannot bind argument to parameter 'Path' because it is null.\r\n```\r\nNote: Replace root module path with .\\ for this issue.\r\n\r\nAfter running the tests, $ENV:BuildRoot does get assigned, but appveyor fails at this same place.\r\n","author":{"url":"https://github.com/quonic","@type":"Person","name":"quonic"},"datePublished":"2022-07-17T20:13:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/25/ModuleBuild/issues/25"}
| 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:f0ee7d44-7216-243b-3ffe-a2f7c1b45d89 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C072:8E554:17E9613:1F8EEB3:698D74FE |
| html-safe-nonce | c94440c66801a9a1ba7bc7f3d0bdcbbef224c8e54cec2cbb07ca40f56e28217b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDcyOjhFNTU0OjE3RTk2MTM6MUY4RUVCMzo2OThENzRGRSIsInZpc2l0b3JfaWQiOiIzMTY4MDQxODM4NjM3MzE1MzI3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3f7f77751e68685a6d4a1b4554e2bc22ef8f3de60afc59f1800db9451a6740a0 |
| hovercard-subject-tag | issue:1307198137 |
| 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/ModuleBuild/ModuleBuild/25/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8128626def5ee09bf743a226be18adfb7a5295e1e50adcf85a38d2577e6e6c5b/ModuleBuild/ModuleBuild/issues/25 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8128626def5ee09bf743a226be18adfb7a5295e1e50adcf85a38d2577e6e6c5b/ModuleBuild/ModuleBuild/issues/25 |
| og:image:alt | It seems that $ENV:BuildRoot never is assigned before Meta.tests.ps1 is executed. As a result $BuildRoot is never assigned in .\ |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | quonic |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0818105fa276287e9369cfdefa0a0fa7953719791ceff9b94d69623c0a4fe8a |
| turbo-cache-control | no-preview |
| go-import | github.com/ModuleBuild/ModuleBuild git https://github.com/ModuleBuild/ModuleBuild.git |
| octolytics-dimension-user_id | 64282347 |
| octolytics-dimension-user_login | ModuleBuild |
| octolytics-dimension-repository_id | 93702203 |
| octolytics-dimension-repository_nwo | ModuleBuild/ModuleBuild |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 93702203 |
| octolytics-dimension-repository_network_root_nwo | ModuleBuild/ModuleBuild |
| 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 | 715890fa442134f528fb422ab338c0ad55c7a025 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width