Skip to content

feat: install default cloud SDK components#5

Open
flou wants to merge 1 commit into
mise-plugins:mainfrom
flou:default-sdk-components
Open

feat: install default cloud SDK components#5
flou wants to merge 1 commit into
mise-plugins:mainfrom
flou:default-sdk-components

Conversation

@flou

@flou flou commented May 18, 2026

Copy link
Copy Markdown

This PR adds support for installing default Google Cloud SDK components as part of the gcloud installation flow in the vfox plugin (like gke-gcloud-auth-plugin).

This functionality already existed in the asdf plugin, but was missing from the vfox implementation.

Fixes #4

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a feature to automatically install a predefined set of Google Cloud SDK components after installation by reading component IDs from a .default-cloud-sdk-components file. The review feedback highlights several critical improvements: validating component names to prevent command injection, handling Windows-specific binary names (gcloud.cmd) and configuration paths (%APPDATA%), and correcting the os.execute status check to ensure robust error handling across Lua environments.

Comment thread hooks/post_install.lua
Comment thread hooks/post_install.lua Outdated
Comment thread hooks/post_install.lua
Comment thread README.md Outdated
Comment thread hooks/post_install.lua
@flou flou force-pushed the default-sdk-components branch from e1ac027 to f4ea01b Compare May 19, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: install default sdk components

1 participant