Skip to content

Allow override of NuGetCacheFolder location through environment variable - #2035

Merged
forki merged 2 commits into
fsprojects:masterfrom
chappoo:master
Nov 23, 2016
Merged

forki merged 2 commits into
fsprojects:masterfrom
chappoo:master

Conversation

@chappoo

@chappoo chappoo commented Nov 22, 2016

Copy link
Copy Markdown

The NuGet CLI (2.x) provides an environment variable override for specifying the location of the NuGet cache. This is key when running multiple processes that pull NuGet packages to avoid file locks in the cache (i.e. in a multi- build agent per server environment). This change enables support for the override in Paket, via an environment variable (e.g. Windows PS):

$env:NuGetCachePath = "C:\Custom\Cache\Location"

@forki

forki commented Nov 23, 2016

Copy link
Copy Markdown
Member

can you please add this to the docs as well?

@chappoo

chappoo commented Nov 23, 2016

Copy link
Copy Markdown
Author

Done - also added a bit of extra blurb about the machine cache, as it seems it's used regardless of any additional caches. If you'd prefer it elsewhere, happy to do so?

@chappoo

chappoo commented Nov 23, 2016

Copy link
Copy Markdown
Author

Also, looks like there's problem with the CI checks.. unrelated?

@forki

forki commented Nov 23, 2016

Copy link
Copy Markdown
Member

awesome. thx

@forki
forki merged commit fcc61dc into fsprojects:master Nov 23, 2016
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.

2 participants