air
air copied to clipboard
Disable tmp directory
Hey, first of all I want to thank you guys for creating this amazing tool.
I'd like to disable the creation of the tmp
directory. But I cannot find any way to do this.
I managed to disable the creation of any files inside the directory, but the directory itself is still created.
This is my .air.toml
file, I run it inside a Docker container using a development
stage:
root = "/app"
tmp_dir = "tmp"
[build]
args_bin = []
bin = "/go/bin/app"
cmd = "go build -o /go/bin/app ."
delay = 1000
exclude_dir = ["tmp"]
exclude_file = []
exclude_regex = ["_test.go"]
exclude_unchanged = false
follow_symlink = false
full_bin = ""
include_dir = []
include_ext = ["go"]
include_file = []
kill_delay = "0s"
log = "/dev/null"
poll = true
poll_interval = 0
post_cmd = []
pre_cmd = []
rerun = false
rerun_delay = 500
send_interrupt = false
stop_on_error = false
[color]
app = ""
build = "yellow"
main = "magenta"
runner = "green"
watcher = "cyan"
[log]
main_only = true
time = false
[misc]
clean_on_exit = true
[screen]
clear_on_rebuild = false
keep_scroll = true
+1 for this! There is always an empty tmp directory even if not used. I tried settings tmp_dir=""
, but still created a tmp folder.