ScoopInstaller / GithubActions

Github Actions for Scoop buckets
MIT License
24 stars 22 forks source link

Excavator fails to run `checkver` with `script` specified #42

Open Locietta opened 5 months ago

Locietta commented 5 months ago

Some of my manifests have script specified in checkver (e.g. https://github.com/Locietta/sniffer/blob/master/bucket/foxmail.json). It works well when I'm testing locally with ./bin/checkver.ps1 -u, but it doesn't work for Excavactor now. (It works 4 months ago though, according to the file commit history.)

Related checkver

"checkver": {
    "script": [
        "$dl_url = 'https://www.foxmail.com/win/download'",
        "$header = Invoke-WebRequest -Method Head -Uri $dl_url",
        "$header.BaseResponse.RequestMessage.RequestUri.OriginalString"
    ],
    "regex": "FoxmailSetup_([\\d.]+).exe"
},

Related action Logs

VERBOSE: HEAD https://www.foxmail.com/win/download with 0-byte payload
VERBOSE: received 127009152-byte response of content type application/octet-stream
foxmail: couldn't match 'FoxmailSetup_([\d.]+).exe' in https://www.foxmail.com/

full log: https://github.com/Locietta/sniffer/actions/runs/8200715277/job/22428004785

It looks like excavactor mistakenly use regex over homepage, instead of the result of script.