chore: bump cloud-sql-proxy to version 2 - #9
Merged
Merged
Conversation
ashwin153
enabled auto-merge (squash)
February 19, 2026 21:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Greptile Summary
Updated the Cloud SQL Proxy installation script to explicitly fetch the latest v2.x release instead of the absolute latest release. This ensures compatibility with version 2 of the Cloud SQL Proxy.
Key changes:
/releases/latestendpoint to/releases?per_page=20to get a list of recent releasesgrep '"v2\.'"tag_name"to avoid false matchesThe change is straightforward and maintains backward compatibility for users who specify a version explicitly, while ensuring that users with
version: "latest"will get the latest v2.x release rather than potentially getting a v1.x release if it was marked as latest.Confidence Score: 4/5
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A[Start: Check VERSION variable] --> B{VERSION == 'latest'?} B -->|Yes| C[Fetch releases list from GitHub API<br/>per_page=20] B -->|No| H[Use specified VERSION] C --> D[Filter for 'tag_name' fields] D --> E[Filter for v2.x releases only<br/>grep 'v2\.'] E --> F[Take first result<br/>head -1] F --> G[Extract version number<br/>remove 'v' prefix] G --> H H --> I{Check architecture} I -->|x86_64| J[Set PLATFORM=amd64] I -->|aarch64/armv8| K[Set PLATFORM=arm64] I -->|Other| L[Error: unsupported architecture] J --> M[Download cloud-sql-proxy binary] K --> M M --> N[Make executable & create symlink] N --> O[End] L --> P[Exit with error]Last reviewed commit: 15a03ec