ScoopInstaller / Main

📦 The default bucket for Scoop.
https://scoop.sh
The Unlicense
1.58k stars 956 forks source link

python: `checkver` is failing #5709

Closed cesarcoatl closed 5 months ago

cesarcoatl commented 5 months ago

Prerequisites

Package Name

python

Expected/Current Behaviour

Failing checkver is not allowing Excavator to retrieve the latest version.

Steps to Reproduce

PS> .\bin\checkver.ps1 python
python: couldn't match 'Latest Python 3 Release - Python ([\d.]+)' in https://www.python.org/downloads/windows/

Possible Solution

Fix version checker or change checkver:

    "checkver": {
        "url": "https://www.python.org/ftp/python/",
        "regex": "href=\"(3\\.12\\.[\\d])/",
        "reverse": true
    },

Scoop and Buckets Version

PS> scoop --version
Current Scoop version:
v0.3.1 - Released at 2022-11-15

'extras' bucket:
fb7ee58e3 (HEAD -> master, origin/master, origin/HEAD) ghidra@11.0.3-20240410: Add GHIDRA_INSTALL_DIR environment variable (#13083)

'java' bucket:
ec2f60f4 (HEAD -> master, origin/master, origin/HEAD) intellij-jbr17: Update to version 17.0.10-b1207.14

'main' bucket:
57b532459 (HEAD -> master, origin/master, origin/HEAD) terragrunt: Update to version 0.57.0

'nerd-fonts' bucket:
6e9493d (HEAD -> master, origin/master, origin/HEAD) iA-Writer-NF: Update to version 3.2.1

'scoop-coatl-dev' bucket:
c7f33ab (HEAD -> coatl, origin/coatl, origin/HEAD) jython: update url (#44)

'versions' bucket:
ffdae9a04 (HEAD -> master, origin/master, origin/HEAD) zig-dev: Update to version 0.12.0-dev.3639

Scoop Config

PS> scoop config

cat_syle      : bat
private_hosts : {@{match=https://files.inductiveautomation.com/*; headers=Referer=https://inductiveautomation.com/}}
last_update   : 4/12/2024 15:37:11
scoop_branch  : master
scoop_repo    : https://github.com/ScoopInstaller/Scoop

PowerShell Version

PS> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.1
PSEdition                      Core
GitCommitId                    7.4.1
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional Softwares

https://github.com/ScoopInstaller/Main/pull/5706

tech189 commented 5 months ago

It looks like checkver is getting a gzipped version of the page rather than the HTML. We should fix this rather than switching checkver to the FTP page because we will get stuck on version 3.12.x with that regex.