PSResourceGet icon indicating copy to clipboard operation
PSResourceGet copied to clipboard

Make the temp folder for Save-Module configurable

Open Francisco-Gamino opened this issue 3 years ago • 3 comments

Prerequisites

  • [X] Write a descriptive title.
  • [X] Make sure you are able to repro it on the latest released version
  • [X] Search the existing issues.

Steps to reproduce

In Azure Functions, we use the Save-Module cmdlet to download the function app dependencies. At times, the modules to be installed are very large and the operation fails because there is not enough space in the temp directory. Having the ability to set an alternative to the temp directory via an environment variable could help us in this scenario. For reference, please see https://github.com/Azure/azure-functions-powershell-worker/issues/771.

Expected behavior

N/A

Actual behavior

N/A

Error details

N/A

Environment data

N/A

Visuals

No response

Francisco-Gamino avatar May 20 '22 23:05 Francisco-Gamino

/cc @anatolib @stefanushinardi

Francisco-Gamino avatar May 20 '22 23:05 Francisco-Gamino

Thanks for opening is issue, we are thinking through how we could light up this experience for you (and other users) without introducing complexity to the interface for other users

SydneyhSmith avatar Jun 02 '22 18:06 SydneyhSmith

After discussing this we decided to make this a parameter on Install-PSResource, Save-PSResource, Update-PSResource the parameter can be called -TemporaryPath

SydneyhSmith avatar Aug 09 '22 18:08 SydneyhSmith