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

(GH-442) always pass cache-location to choco #468

Closed
wants to merge 1 commit into from

Conversation

mwallner
Copy link
Member

Description

fixes GH-442 by always adding -cacheLocation to each Chocolatey call.

Related Issue

Fixes #442

Motivation and Context

every time you call Install-BoxstarterPackage -PackageName "$filename" additional subdirectories chocolatey\chocolatey are appended to $env:temp

env:temp=C:\Users\map\AppData\Local\Temp\chocolatey\chocolatey
env:temp=C:\Users\map\AppData\Local\Temp\chocolatey\chocolatey\chocolatey\chocolatey
env:temp=C:\Users\map\AppData\Local\Temp\chocolatey\chocolatey\chocolatey\chocolatey\chocolatey\chocolatey

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@mwallner mwallner self-assigned this Jan 31, 2021
@mwallner
Copy link
Member Author

I yet have to update the documentation to reflect this change.

@mwallner mwallner requested a review from pauby January 31, 2021 17:17
@ctmcisco
Copy link

ctmcisco commented Sep 8, 2021

Hello @mwallner and @pauby . Was this halted for some reason as it looked promising.
I am still using the following work around: https://david.gardiner.net.au/2018/07/boxstarter-and-chocolatey-tips.html but I was curious if anything has changed.

@flcdrg
Copy link
Member

flcdrg commented Sep 8, 2021

I'm assuming the = is optional when setting -cachelocation

@mwallner mwallner changed the title [WIP] (GH-442) always pass cache-location to choco (GH-442) always pass cache-location to choco Sep 8, 2021
@mwallner
Copy link
Member Author

mwallner commented Sep 8, 2021

hey @ctmcisco , thanks for bringing this up again! 😄
basically I didn't remove the [WIP] tag b/c I wanted to reflect the change this PR brings in somewhere in the documentation / webpage. (and afaik Paul doesn't look at PRs that still have that [WIP] tag 😉 )
unfortunately this somehow got "lost" along the way...

thanks for approving @flcdrg - do you have an Idea where we could "update the documentation to reflect this change"?

@pauby
Copy link
Member

pauby commented Sep 8, 2021

(and afaik Paul doesn't look at PRs that still have that [WIP] tag 😉 )

Yeah, I ignore those and Draft PR's unless tagged on them.

do you have an Idea where we could "update the documentation to reflect this change"?

Do we need to update the docs - would this not be expected behaviour?

@mwallner
Copy link
Member Author

Hey @pauby - I think this is ready to get merged / want to have it "out of the way" when my next (MUCH bigger) PR comes around ;-)

@mwallner
Copy link
Member Author

mwallner commented Feb 8, 2022

this is obsolete when GH-479 gets merged in

@gep13
Copy link
Member

gep13 commented Apr 8, 2022

This PR is no longer required, as this will be addressed in the new version of Chocolatey, which will be embedded in the v3 release.

@gep13 gep13 closed this Apr 8, 2022
@mwallner mwallner deleted the cachelocation branch April 27, 2022 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prevent the $env:temp variable from being changed on every run of Install-BoxstarterPackage
5 participants