govips icon indicating copy to clipboard operation
govips copied to clipboard

Options to relocate temporaryDirectory

Open xmlking opened this issue 2 years ago • 2 comments

I was trying Hasura-auth software which is using this lib. When I run this in docker container with non-root user, it keep failing due to permissions. ASK : please provide options to specify the temp location either via API or via environment variables

IMG_0315

xmlking avatar Apr 24 '24 05:04 xmlking

Hey @xmlking - I'm more than happy to review a PR. Please check the contributing documentation, and write a unit test.

tonimelisma avatar Apr 24 '24 05:04 tonimelisma

I found a solution to support non-root runner use case: by setting environment variable TMPDIR=/some_temp_root we can control base directory for ioutil.TempDir()

xmlking avatar Apr 26 '24 04:04 xmlking