Skip to content

Commit

Permalink
fix: use alloydb-tmp as default tmp dir (GoogleCloudPlatform#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
enocom authored Dec 8, 2022
1 parent cfcf17d commit 30587d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/root_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 30587d6

Please sign in to comment.