air icon indicating copy to clipboard operation
air copied to clipboard

Handle absolute paths in config

Open ZipFile opened this issue 1 year ago • 2 comments

Was trying to use /tmp/air as tmp_dir but it did not work well. filepath.Join simply concatenates both components, resulting in something like /home/user/myproj/tmp/air, which is counter-intuitive.

ZipFile avatar Aug 02 '22 18:08 ZipFile

This is especially useful for those running air via docker because being able to set the tmp directory someplace else such as the system /tmp or even in the user's home directory would resolve issues where you have directories created that require elevated permissions to remove, manage or even ignore from git. Confusing because we can handle relative paths such as ../tmp or tmp, but not /tmp

PhilThurston avatar Nov 23 '23 05:11 PhilThurston

Yep, docker with restricted write permissions was my exact use case. Anyway, rebased with the latest master since there is an interest in this PR.

ZipFile avatar Nov 23 '23 09:11 ZipFile