[API] current directory may need adjusted
- Dominant language
- C#
- Stars
- 11.5k
- Forks
- 960
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/mwrock/boxstarter/blob/3b2e57efebe23c6335b971e9efdf3b0f31d929db/Boxstarter.Chocolatey/invoke-chocolatey.ps1#L263-L267
~~~powershell
# Chocolatey.dll uses GetCurrentDirectory which is not quite right
# when calling via powershell. so we set it here
Write-BoxstarterMessage "setting current directory location to $((Get-Location).Path)" -Verbose
[System.IO.Directory]::SetCurrentDirectory("$(Convert-Path (Get-Location).Path)")
~~~
Contributor guide
Research direction
Start with the referenced invoke-chocolatey.ps1 lines 263-267 and inspect how the API is invoked from PowerShell. Reproduce the current-directory behavior, then confirm that the directory used by Chocolatey.dll matches the intended location without breaking other invocation paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100