-
Notifications
You must be signed in to change notification settings - Fork 162
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
chocolatey\chocolatey\chocolatey\.... temp download paths #241
Comments
Seems like each package is going one level deeper :-) |
You can never have to much Ok, I will leave now... 😄 |
I have submitted chocolatey/choco#1211 to fix this issue. |
Just released this fix on 2.9.5 |
Still seeing this in 2.9.5 :-( |
Just guessing, but could it be that config.CacheLocation.EndsWith("chocolatey") would be false if CacheLocation had a trailing slash/backslash? |
Raised chocolatey/choco#1231 |
see chocolatey/choco#1232. I tested this build against boxstarter and the nested directories appear to be gone. |
Reopening this until the above is released |
Ugg - sorry I missed this - and I looked at this one the other day and chuckled about
|
no worries. this issue was closed which is probably why you missed it :) |
chocolatey/choco#1233 is the correct PR, just for reference. |
Confirmed that this is now resolved |
nope not resolved yet, |
yes we had to revert to choco 0.10.5 which "rebroke" this but fixed larger problems. |
but current (2.10.3) boxstarter installs choco 0.10.7, at least that's what the log says |
boxstarter doesn't install chocolatey unless your script installs it. It just calls into a chocolatey dll. |
oh maybe you are referring to the bootstrapper which does install the latest choco if it is not installed in order to install boxstarter. That would install 0.10.7 but it does not use it in boxstarter runs. |
right, sorry, i did refer to the bootstrapper |
I thought I had seen this as well - should have linked the two. chocolatey/choco#1233 (comment) |
Matt, any idea when a new version of Boxstarter will be released that will have a version of Chocolatey which addresses this issue? We are unable to use boxstarter with this issue in it. :( |
Are there any known workarounds? Can i reset the cache path after each package install? |
That did not work for me. If you try and it works let me know! |
@mwrock Hello Matt, I am using the latest version of Boxstarter bootstrapper, that installs the latest version of Chocolatey. I am seeing this issue as well when i try to install a series of packages using the text file on Git gist. Is there an easy way to workaround this issue? |
So it appears using c:\temp will work for now. Let me try updating my powershell scripts for boxstarter |
Yes, it is working now. |
thing only began to happen when I repaved my machine using Boxstarter. Is this a boxstarter issue as I don't seem to have this issue when running Chocolatey only? |
It was a bug in Chocolatey that has been fixed, but for unrelated reasons Boxstarter hasn't been able to upgrade to that newer version of Chocolatey yet. |
I see, so best thing to do is either run with the work around for now as suggested by @neilkidd or only use Chocolatey? |
Yes. (Credit to @kirannhegde).. It only becomes a problem if you exceed a certain number of packages. Some of my Boxstarter scripts get by without it, but the longer ones require the workaround for now. |
great catch @kirannhegde ! The below is what I am doing for now and every time I this the fails are happen randomly between packages. So I think adding the Temp cache to all is the safest bet. I like your cleaner look of dropping the cache location in a variable. Thanks. Now I have to clean up the script a bit. Arg I should have checked in before trying to trouble on my own. Lost some time. Thanks again!
|
Need to upgrade chocolatey lib to a later version - need to determine which one. This comment suggests it's fixed in 0.10.4. |
workaround for boxstarter bug chocolatey/boxstarter#241
This "increasing chocolatey temp path" happened to me to today when running this gist using the current downloadable Boxstarter: It ended up ultimately failing due to a "path too long" exception. |
It is the dll See my comments on #442 (comment) |
@me-kell Can we keep the comments on your issue? Just for clarity, replacing the |
@me-kell Yes. That way we keep everything relevant to that issue and the discussion only needs to happen once. Your issue is linked here so people can refer to it. |
@pauby Thank very much you for the hint. |
Greetings, I thought I'd submit a bug but seems this is a very well known issue. I think I got around the issue by setting the chocolatey config cache path. Seems very sad to have to resort to workarounds such as putting There's a handy tool called choco-cleaner in case people reading this haven't heard of it. A sprinkling of |
2.9.2 - seeing packages getting downloaded into weird folders (and then failing).
C:\Users\dgardiner\AppData\Local\Temp\chocolatey\chocolatey\chocolatey\chocolatey\chocolatey\chocolatey\chocolatey\chocolatey\chocolatey\chocolatey\chocolatey\chocolatey\chocolatey\chocolatey\chocolatey\chocolatey\chocolatey\chocolatey.squirrel-lock-0205C670A9D776F56D17A8FB985A520ADEE61F89: System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
The text was updated successfully, but these errors were encountered: