Skip to content
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

If ChocolateyPath is set incorrectly, updating to 0.9.9+ fails #367

Closed
chucker opened this issue Jul 28, 2015 · 2 comments
Closed

If ChocolateyPath is set incorrectly, updating to 0.9.9+ fails #367

chucker opened this issue Jul 28, 2015 · 2 comments
Labels
0 - Waiting on User Bug No Response / Stale Pending Closure This issue has been marked as having no response or is stale and will soon be closed. Up For Grabs

Comments

@chucker
Copy link

chucker commented Jul 28, 2015

In my setup, the environment was set as follows (I'm not sure why):

ChocolateyInstall=C:\ProgramData\chocolatey // machine-level
ChocolateyPath=C:\Chocolatey // user-level

However, Chocolatey was always in %programdata%, so the second var was never correct. This wasn't a problem during the 0.9.9.x upgrades, but the update to 0.9.10-alpha1 (20150725) will try to remove what it believes to be the old path:

Attempting to upgrade 'C:\Chocolatey' to 'C:\ProgramData\chocolatey'.
 WARNING: Copying the contents of 'C:\Chocolatey' to 'C:\ProgramData\chocolatey'.
  This step may fail if you have anything in this folder running or locked.
 If it fails, just manually copy the rest of the items out and then delete the folder.
 !!!! ATTN: YOU WILL NEED TO CLOSE AND REOPEN YOUR SHELL !!!!
 Copy-Item : Cannot find path 'C:\Chocolatey\lib' because it does not exist.
 At C:\ProgramData\chocolatey\lib\chocolatey\tools\chocolateysetup.psm1:223 char:5
 +     Copy-Item "$chocolateyPathOld\lib\*" "$chocolateyPath\lib" -force ...
 +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     + CategoryInfo          : ObjectNotFound: (C:\Chocolatey\lib:String) [Copy-Item], ItemNotFoundException
     + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

Removing the ChocolateyPath variable apparently makes Chocolatey fall back to the (correctly set) ChocolateyInstall variable.

@ferventcoder ferventcoder changed the title If ChocolateyPath is set incorrectly, updating to 0.9.10-alpha1 fails If ChocolateyPath is set incorrectly, updating to 0.9.9+ fails Jul 28, 2015
@ferventcoder ferventcoder added this to the 0.9.10 milestone Jul 28, 2015
@ferventcoder ferventcoder modified the milestones: 0.9.10.x, 0.9.10 Oct 3, 2015
Copy link

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue will be closed in 14 days if it continues to be inactive.

@github-actions github-actions bot added the Pending Closure This issue has been marked as having no response or is stale and will soon be closed. label Feb 22, 2024
Copy link

github-actions bot commented Mar 7, 2024

Dear contributor,

As this issue seems to have been inactive for quite some time now, it has been automatically closed.
If you feel this is a valid issue, please feel free to re-open the issue if / when a pull request
has been added.
Thank you for your contribution.

@github-actions github-actions bot closed this as completed Mar 7, 2024
@gep13 gep13 removed this from the Future milestone Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - Waiting on User Bug No Response / Stale Pending Closure This issue has been marked as having no response or is stale and will soon be closed. Up For Grabs
Projects
None yet
Development

No branches or pull requests

4 participants