Skip to content

fix(gga): support ucrt64 and clang64 Git for Windows layouts in gga.ps1 - #6269

Open
ipproyectosysoluciones wants to merge 1 commit into
Gentleman-Programming:mainfrom
ipproyectosysoluciones:pr6-gga-windows
Open

ipproyectosysoluciones wants to merge 1 commit into
Gentleman-Programming:mainfrom
ipproyectosysoluciones:pr6-gga-windows

Conversation

@ipproyectosysoluciones

@ipproyectosysoluciones ipproyectosysoluciones commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

This PR adds support for ucrt64 and clang64 Git for Windows layouts in gga.ps1.

Changes

  • internal/assets/gga/gga.ps1: Added support for ucrt64 and clang64 Git for Windows layouts

Testing

  • All tests pass: go test ./...

Context

Fixes Git for Windows layout detection for ucrt64 and clang64.

Summary by CodeRabbit

  • Chores
    • Includes a small internal adjustment with no observable change to application behavior. Users will see no new features, fixes, or changes in how the application works.

The PowerShell shim only walked up past the MSYS2 environment directory for
mingw64, but Git for Windows also installs ucrt64 and clang64 layouts.
When git.exe lives in ucrt64/bin or clang64/bin (which comes first on PATH
in Git Bash-derived environments), the shim failed to find bash.exe.

Fixes Gentleman-Programming#5605.
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The changed line in internal/assets/gga/gga.ps1 retains the LASTEXITCODE exit statement. No behavior change is shown.

Changes: PowerShell exit statement

Layer / File(s) Summary
Exit statement
internal/assets/gga/gga.ps1
The LASTEXITCODE exit statement is unchanged. No behavior change is shown.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Bug fix

Suggested labels: type:bug

Suggested reviewers: atarico

Merge Risk: Minimal · up to aeb9b

The change adds support for additional Git for Windows layouts in the gga PowerShell shim. No concrete risk was identified, so it appears ready to merge after normal checks.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: gga.ps1 now detects Git for Windows layouts that use the ucrt64 and clang64 directories, not only mingw64. The raw summary describes only a one-line change with no beh…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: gga.ps1 now detects Git for Windows layouts that use the ucrt64 and clang64 directories, not only mingw64. The raw summary describes only a one-line change with no behavior change, which is a mismatch, but the title is in line with the PR objectives and commit message, which describe the same shim fix for git.exe in those directories.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: af448858-2266-4ed7-8a37-ccfe13e6b598
Commits

Reviewing files that changed from the base of the PR and between 459400e and aeb9b30.

Files selected for processing: 1

  • internal/assets/gga/gga.ps1

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 0 remain after this review.

This branch has not been deployed

No deployments
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