Skip to content

fix: install.ps1 compatibility and improved path resolution#23

Open
anirudhpv wants to merge 1 commit into
googleads:mainfrom
anirudhpv:fix/ps-compatibility-and-pathing
Open

fix: install.ps1 compatibility and improved path resolution#23
anirudhpv wants to merge 1 commit into
googleads:mainfrom
anirudhpv:fix/ps-compatibility-and-pathing

Conversation

@anirudhpv
Copy link
Copy Markdown

This PR addresses two issues in the Windows installation script to improve the user experience for standard Windows environments.

Changes:

  1. PowerShell 5.1 Compatibility: Replaced -LiteralPath with -Path in the New-Item call. The -LiteralPath parameter for New-Item was introduced in PowerShell Core (7.0+) and causes failures on the default Windows PowerShell 5.1.
  2. Flexible Path Resolution: Updated the root directory detection to check for GEMINI.md in the current folder before falling back to git rev-parse. This allows the assistant to be installed correctly when it is nested within a larger project subdirectory.

@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 15, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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.

1 participant