How does tctl compute the configuration file path and is it overridable?

I’m running a tctl command from an openshift pod that sets the uid to something arbitrary, causing tctl to crash with an error such as:

tctl --namespace manetu namespace describe
creating config dir: /.config/temporalio
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x18e6275]
goroutine 1 [running]:
/home/builder/tctl/cmd/tctl/main.go:39 +0x35

Is there a way I can force tctl to use a certain path so I can ensure it is writable for this user?

My understanding is that tctl uses the $HOME env var as path to write the configuration .config/temporalio/tctl.yaml so could try to set it to path that works for you.

That did work, thank you!