From 30587d610b550404cc3365d6429e943fe16ed358 Mon Sep 17 00:00:00 2001 From: Eno Compton Date: Thu, 8 Dec 2022 12:13:10 -0700 Subject: [PATCH] fix: use alloydb-tmp as default tmp dir (#199) --- cmd/root.go | 2 +- cmd/root_linux_test.go | 2 +- cmd/root_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 01a8e1dc55..fc23cb28a3 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -379,7 +379,7 @@ the maximum time has passed. Defaults to 0s.`) pflags.StringVar(&c.conf.FUSEDir, "fuse", "", "Mount a directory at the path using FUSE to access AlloyDB instances.") pflags.StringVar(&c.conf.FUSETempDir, "fuse-tmp-dir", - filepath.Join(os.TempDir(), "csql-tmp"), + filepath.Join(os.TempDir(), "alloydb-tmp"), "Temp dir for Unix sockets created with FUSE") pflags.StringVar(&c.impersonationChain, "impersonate-service-account", "", `Comma separated list of service accounts to impersonate. Last value diff --git a/cmd/root_linux_test.go b/cmd/root_linux_test.go index 0a2e8e4997..cfa1441ed3 100644 --- a/cmd/root_linux_test.go +++ b/cmd/root_linux_test.go @@ -23,7 +23,7 @@ import ( ) func TestNewCommandArgumentsOnLinux(t *testing.T) { - defaultTmp := filepath.Join(os.TempDir(), "csql-tmp") + defaultTmp := filepath.Join(os.TempDir(), "alloydb-tmp") tcs := []struct { desc string args []string diff --git a/cmd/root_test.go b/cmd/root_test.go index 905028d5fe..ef972f3bd0 100644 --- a/cmd/root_test.go +++ b/cmd/root_test.go @@ -69,7 +69,7 @@ func withDefaults(c *proxy.Config) *proxy.Config { } } if c.FUSETempDir == "" { - c.FUSETempDir = filepath.Join(os.TempDir(), "csql-tmp") + c.FUSETempDir = filepath.Join(os.TempDir(), "alloydb-tmp") } if c.APIEndpointURL == "" { c.APIEndpointURL = "https://alloydb.googleapis.com/v1beta"