Skip to content

Conversation

@SorYoshino
Copy link
Contributor

Summary

Refines mingit manifest, improving maintainability, license information, and autoupdate logic.

Changes

  • Add arm64 architecture support.
  • Update description to a more formal and professional style.
  • Correcte homepage URL to the official Git for Windows site.
  • Enhance license field with SPDX identifier and URL.
  • Replace bin field with env_add_path for cmd directory to simplify PATH handling.
  • Update checkver to use GitHub API with JSONPath and regex for MinGit assets.

Notes

  • Add the entire cmd directory to PATH ensures all MinGit utilities are available without manually enumerating binaries.

Testing

The test results are as follows:
┏[ D:\Software\Scoop\Local\apps\scoop\current\bin][ master ≡]
└─> .\checkver.ps1 -App mingit -Dir 'D:\Temporary\Software\Microsoft\Windows Sandbox\Repositories\Scoop\Buckets\Main\bucket' -f
mingit: 2.52.0 (scoop version is 2.52.0)
Forcing autoupdate!
Autoupdating mingit
DEBUG[1766759317] $substitutions (hashtable) -> D:\Software\Scoop\Local\apps\scoop\current\lib\autoupdate.ps1:221:5
DEBUG[1766759317] $substitutions.$dotVersion                    2.52.0
DEBUG[1766759317] $substitutions.$match1                        2.52.0
DEBUG[1766759317] $substitutions.$basenameNoExt                 MinGit-2.52.0-arm64
DEBUG[1766759317] $substitutions.$urlNoExt                      https://github.com/git-for-windows/git/releases/download/v2.52.0.windows.1/MinGit-2.52.0-arm64
DEBUG[1766759317] $substitutions.$url                           https://github.com/git-for-windows/git/releases/download/v2.52.0.windows.1/MinGit-2.52.0-arm64.zip
DEBUG[1766759317] $substitutions.$patchVersion                  0
DEBUG[1766759317] $substitutions.$majorVersion                  2
DEBUG[1766759317] $substitutions.$version                       2.52.0
DEBUG[1766759317] $substitutions.$matchTag                      v2.52.0.windows.1
DEBUG[1766759317] $substitutions.$minorVersion                  52
DEBUG[1766759317] $substitutions.$baseurl                       https://github.com/git-for-windows/git/releases/download/v2.52.0.windows.1
DEBUG[1766759317] $substitutions.$matchHead                     2.52.0
DEBUG[1766759317] $substitutions.$matchTail
DEBUG[1766759317] $substitutions.$preReleaseVersion             2.52.0
DEBUG[1766759317] $substitutions.$dashVersion                   2-52-0
DEBUG[1766759317] $substitutions.$cleanVersion                  2520
DEBUG[1766759317] $substitutions.$buildVersion
DEBUG[1766759317] $substitutions.$underscoreVersion             2_52_0
DEBUG[1766759317] $substitutions.$basename                      MinGit-2.52.0-arm64.zip
DEBUG[1766759317] $hashfile_url = https://github.com/git-for-windows/git/releases/tag/v2.52.0.windows.1 -> D:\Software\Scoop\Local\apps\scoop\current\lib\autoupdate.ps1:224:5
Searching hash for MinGit-2.52.0-arm64.zip in https://github.com/git-for-windows/git/releases/tag/v2.52.0.windows.1
DEBUG[1766759317] $regex = (?s)MinGit-2\.52\.0-arm64\.zip.*?([a-fA-F0-9]{64}) -> D:\Software\Scoop\Local\apps\scoop\current\lib\autoupdate.ps1:78:9
Found: fea97618f69b41ecb63953e3c650e9087cac3f9d215925346daebef0c4d6f7f8 using Extract Mode
Writing updated mingit manifest
  • Use conventional PR title: <manifest-name[@version]|chore>: <general summary of the pull request>
  • I have read the Contributing Guide

@github-actions
Copy link
Contributor

All changes look good.

Wait for review from human collaborators.

mingit

  • Lint
  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate
  • Autoupdate Hash Extraction

Check the full log for details.

@SorYoshino
Copy link
Contributor Author

/verify

@github-actions
Copy link
Contributor

All changes look good.

Wait for review from human collaborators.

mingit

  • Lint
  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate
  • Autoupdate Hash Extraction

Check the full log for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant