Skip to content

Commit

Permalink
fix(tools)!: upgreade sgcloudsqlproxy to 2.3.0 (breaking change)
Browse files Browse the repository at this point in the history
Beaking change as one will need to replace the cmd parameter from
'cloud_sql_proxy -instances=myproject:myregion:myinstance=tcp:5432 --enable_iam_login'
to:
'cloud-sql-proxy myproject:myregion:myinstance --port 5432 --auto-iam-authn'
  • Loading branch information
liufuyang committed Jun 19, 2023
1 parent b9fbd28 commit 4876f1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/sgcloudsqlproxy/tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
)

const (
version = "1.33.1"
binaryName = "cloud_sql_proxy"
version = "2.3.0"
binaryName = "cloud-sql-proxy"
)

func Command(ctx context.Context, args ...string) *exec.Cmd {
Expand All @@ -25,12 +25,12 @@ func PrepareCommand(ctx context.Context) error {
binDir := sg.FromToolsDir(binaryName, version)
binary := filepath.Join(binDir, binaryName)
filename := fmt.Sprintf(
"cloud_sql_proxy.%s.%s",
"cloud-sql-proxy.%s.%s",
runtime.GOOS,
runtime.GOARCH,
)
binURL := fmt.Sprintf(
"https://storage.googleapis.com/cloudsql-proxy/v%s/%s",
"https://storage.googleapis.com/cloud-sql-connectors/cloud-sql-proxy/v%s/%s",
version,
filename,
)
Expand Down

0 comments on commit 4876f1c

Please sign in to comment.