chocolatey / chocolatey/choco

[API] current directory may need adjusted

Open
#1,346 0 comments 0 reactions 0 assignees View on GitHub
0 - Backlog API Bug Priority - Low Up For Grabs
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.