Title: Get-BuildVariable: inconsistent PATH parameter usage · Issue #110 · PowerShellOrg/BuildHelpers · GitHub
Open Graph Title: Get-BuildVariable: inconsistent PATH parameter usage · Issue #110 · PowerShellOrg/BuildHelpers
X Title: Get-BuildVariable: inconsistent PATH parameter usage · Issue #110 · PowerShellOrg/BuildHelpers
Description: Build environment Azure Devops Tested PS5.1/PS6core build stage Issue the commit message detection code ((https://github.com/RamblingCookieMonster/BuildHelpers/blob/303eebee0bf92f9e086f131d89cf478a6ff87275/BuildHelpers/Public/Get-BuildVa...
Open Graph Description: Build environment Azure Devops Tested PS5.1/PS6core build stage Issue the commit message detection code ((https://github.com/RamblingCookieMonster/BuildHelpers/blob/303eebee0bf92f9e086f131d89cf478a...
X Description: Build environment Azure Devops Tested PS5.1/PS6core build stage Issue the commit message detection code ((https://github.com/RamblingCookieMonster/BuildHelpers/blob/303eebee0bf92f9e086f131d89cf478a...
Opengraph URL: https://github.com/PowerShellOrg/BuildHelpers/issues/110
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get-BuildVariable: inconsistent PATH parameter usage","articleBody":"**Build environment**\r\nAzure Devops\r\n\r\n**Tested**\r\nPS5.1/PS6core\r\nbuild stage\r\n\r\n**Issue**\r\nthe commit message detection code ((https://github.com/RamblingCookieMonster/BuildHelpers/blob/303eebee0bf92f9e086f131d89cf478a6ff87275/BuildHelpers/Public/Get-BuildVariable.ps1#L154) ignores a provided path.\r\n\r\nwhen not using the 'standard ' location, but by providing the 'path' parameter to either Get-BuildEnvironment or Get-BuildVariable, Azure Devops returns an error:\r\n\r\n```PowerShell\r\n##[error]Invoke-Git : fatal: d:\\a\\1\\s: 'd:\\a\\1\\s' is outside repository\r\n##[error]At C:\\Users\\VssAdministrator\\Documents\\WindowsPowerShell\\Modules\\BuildHelpers\\2.0.9\\Public\\Get-BuildVariable.ps1:189\r\n```\r\n\r\n**cause**\r\nGet-BuildVariable (and Get-BuildEnvironment) has a 'PATH\" parameter to provide a path to the variables to detect. Yet, in the commit message part of the code, this is totally ignored by just using the detected environment values.\r\n\r\nAlthough the $path variable is part of the invoke-git @IGParams part, in the Git command itself \r\n```Powershell\r\n\"log --format=%B -n 1 $( (Get-Item -Path \"ENV:$_\").Value )\"\r\n```\r\n it is not used, and thus ignored. This results in strange behavior when providing a path with these commands.\r\n","author":{"url":"https://github.com/peppekerstens","@type":"Person","name":"peppekerstens"},"datePublished":"2019-06-11T13:09:44Z","url":"https://github.com/PowerShellOrg/BuildHelpers/issues/110"}
| 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:3a385b54-3860-679d-bce4-42d9285c8f14 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B210:3D30AB:93ADAA:CBB5BB:6AFD33EB |
| html-safe-nonce | 977dd1d6435e48b11adb19b34a1060ee739dc148ae76b9269520ac72ed6539e9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjEwOjNEMzBBQjo5M0FEQUE6Q0JCNUJCOjZBRkQzM0VCIiwidmlzaXRvcl9pZCI6IjQ5MTczNzIwNTgyOTMwNTY0OTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | de58852ce45d50fb2f9f09bdaa731cb3f8fcd08c229e9ec821a02495b763a117 |
| hovercard-subject-tag | issue:454681270 |
| 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/PowerShellOrg/BuildHelpers/110/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6c100b33e7477727aa92b1e526c2997781876b7e421a347d642c858af3e5374f/PowerShellOrg/BuildHelpers/issues/110 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6c100b33e7477727aa92b1e526c2997781876b7e421a347d642c858af3e5374f/PowerShellOrg/BuildHelpers/issues/110 |
| og:image:alt | Build environment Azure Devops Tested PS5.1/PS6core build stage Issue the commit message detection code ((https://github.com/RamblingCookieMonster/BuildHelpers/blob/303eebee0bf92f9e086f131d89cf478a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | peppekerstens |
| hostname | github.com |
| expected-hostname | github.com |
| None | 065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShellOrg/BuildHelpers git https://github.com/PowerShellOrg/BuildHelpers.git |
| octolytics-dimension-user_id | 4895314 |
| octolytics-dimension-user_login | PowerShellOrg |
| octolytics-dimension-repository_id | 59748913 |
| octolytics-dimension-repository_nwo | PowerShellOrg/BuildHelpers |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 59748913 |
| octolytics-dimension-repository_network_root_nwo | PowerShellOrg/BuildHelpers |
| 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 | 941021edf0c2ec58298f4a2c8f27ae507d129c92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width