Skip to content

Commit 30587d6

Browse files
authored
fix: use alloydb-tmp as default tmp dir (GoogleCloudPlatform#199)
1 parent cfcf17d commit 30587d6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ the maximum time has passed. Defaults to 0s.`)
379379
pflags.StringVar(&c.conf.FUSEDir, "fuse", "",
380380
"Mount a directory at the path using FUSE to access AlloyDB instances.")
381381
pflags.StringVar(&c.conf.FUSETempDir, "fuse-tmp-dir",
382-
filepath.Join(os.TempDir(), "csql-tmp"),
382+
filepath.Join(os.TempDir(), "alloydb-tmp"),
383383
"Temp dir for Unix sockets created with FUSE")
384384
pflags.StringVar(&c.impersonationChain, "impersonate-service-account", "",
385385
`Comma separated list of service accounts to impersonate. Last value

cmd/root_linux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
)
2424

2525
func TestNewCommandArgumentsOnLinux(t *testing.T) {
26-
defaultTmp := filepath.Join(os.TempDir(), "csql-tmp")
26+
defaultTmp := filepath.Join(os.TempDir(), "alloydb-tmp")
2727
tcs := []struct {
2828
desc string
2929
args []string

cmd/root_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func withDefaults(c *proxy.Config) *proxy.Config {
6969
}
7070
}
7171
if c.FUSETempDir == "" {
72-
c.FUSETempDir = filepath.Join(os.TempDir(), "csql-tmp")
72+
c.FUSETempDir = filepath.Join(os.TempDir(), "alloydb-tmp")
7373
}
7474
if c.APIEndpointURL == "" {
7575
c.APIEndpointURL = "https://alloydb.googleapis.com/v1beta"

0 commit comments

Comments
 (0)