You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Setting --cli-artifacts-dir does not appear to be respected #2212
Howdy, in an attempt to keep things out of /tmp, I tried adding --cli-artifacts-dir /var/local/lib/concourse/ as an argument to my binary Concourse deployment, but it seems to still be reading from /tmp/cli-artifacts anyway. I'm still on Concourse 3.9.1, but I don't think this bit of code changes much. I tried manually placing the fly binaries in /var/local/lib/concourse/ and /var/local/lib/concourse/cli-artifacts, in case this flag also disabled the directory creation, but no luck.
--cli-artifacts-dir is meant for use cases where atc binary is used by itself and cli binary is packaged in different location(like bosh deployments). In case of concourse binary cli is packaged and user is not expected to set this flag.
Path of tmp directory can be changed by setting environment variable TMPDIR. Golang should recognize this and create any further tmp dir under that path
Activity
shashwathi commentedon May 15, 2018
@hfinucane
--cli-artifacts-diris meant for use cases where atc binary is used by itself and cli binary is packaged in different location(like bosh deployments). In case of concourse binary cli is packaged and user is not expected to set this flag.Is your intention not to use
/tmp/dir ?hfinucane commentedon May 15, 2018
Yeah, I'm trying to avoid
tmpwatch,systemd-tmpfiles-clean, etc.shashwathi commentedon May 16, 2018
@hfinucane :
Path of tmp directory can be changed by setting environment variable
TMPDIR. Golang should recognize this and create any further tmp dir under that pathRef docs:
https://golang.org/src/os/file.go?s=9724:9745#L304
https://golang.org/pkg/os/#TempDir
jama22 commentedon May 23, 2018
@hfinucane looks like @shashwathi was able to help you out. Closing this issue, feel free to reopen if you feel like we've missed something
bump etree tsa handlers mux clockwork goxmldsig genproto grpc