-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working directory always being replaced with configured cache location when using Start-ChocolateyProcessAsAdmin #2051
Comments
This is completed and will be released in 0.10.16. |
ferventcoder
changed the title
Get-ChocolateyUnzip / Start-ChocolateyProcessAsAdmin - Path always being replaced with cacheLocation
Start-ChocolateyProcessAsAdmin - workingDirectory always being replaced with cacheLocation
May 16, 2020
ferventcoder
pushed a commit
that referenced
this issue
May 16, 2020
The previous commit 9e2e49a to address UNC paths broke the ability to provide a working directory to the Start-ChocolateyProcessAsAdmin helper function. The test `$workingDirectory.ProviderPath -eq $null` always evaluates to true because the String type does not have the member ProviderPath. The fix is to obtain the location object only when no path is provided to the helper and to verify its validity before use, possibly falling back to the cache location, similar to how it was implemented for Get-ChocolateyUnzip.
ferventcoder
added a commit
that referenced
this issue
May 16, 2020
* pr2006: (GH-2051) Fix: workingDirectory always replaced w/cacheLocation
johnstevenson
added a commit
to johnstevenson/choco
that referenced
this issue
Jun 20, 2020
* upstream/master: (21 commits) (doc) Changed cla links from clahub to cla-assistant (chocolateyGH-2055) remove logs/config folder in nupkg (version) 0.10.16-beta (chocolateyGH-2023) Install git in the docker container (chocolateyGH-1859) Fix error message for missing 32-bit URL (chocolateyGH-1859) Fix error message for missing 32-bit URL (chocolateyGH-2051) Fix: workingDirectory always replaced w/cacheLocation (chocolateyGH-1983) exit-on-reboot-detected environment variable (maint) update resharper settings (maint) formatting (chocolateyGH-1843) Fix: search exact all versions returns 1 (chocolateyGH-1020) fix build (chocolateyGH-1020) Direct platform only for windows tests (chocolateyGH-1020) WindowsOnly tests by platform, not ignore (chocolateyGH-1020) Docker add ChocolateyInstall Env Var (chocolateyGH-1020) Docker use code_drop instead of build_output (doc) Update mono installation instructions in README (chocolateyGH-1020) Dockerfile and Travis to Mono 5.20.1 (chocolateyGH-1020) Add mono-4.5 configuration Add missing start of comment block ...
There is a beta of this at https://chocolatey.org/packages/chocolatey/0.10.16-beta-20200806 |
gep13
added a commit
to gep13/choco
that referenced
this issue
Mar 1, 2021
In an earlier commit, the default value of the WorkingDirectory parameter was changed to be $null, but the parameter description wasn't updated.
gep13
changed the title
Start-ChocolateyProcessAsAdmin - workingDirectory always being replaced with cacheLocation
Working directory always being replaced with configured cache location when using Start-ChocolateyProcessAsAdmin
May 18, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As a result of #1781, which was implemented in Chocolatey v0.10.14, the working directory path is always being replaced with cacheLocation / TEMP for Start-ChocolateyProcessAsAdmin.
The text was updated successfully, but these errors were encountered: