Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Downgrade php #14504

Open
3 tasks done
dansvel opened this issue Dec 3, 2024 · 1 comment
Open
3 tasks done

[Bug]: Downgrade php #14504

dansvel opened this issue Dec 3, 2024 · 1 comment
Labels

Comments

@dansvel
Copy link

dansvel commented Dec 3, 2024

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues/PRs to ensure it has not already been reported or fixed.
  • I have verified that I am using the latest version of Scoop and corresponding bucket.

Package Name

php

Expected/Current Behaviour

# dell @ LATITUDE5320 in ~: [14.18.25]
$ scoop install [email protected]
WARN  Given version (8.3.14) does not match manifest (8.4.1)
WARN  Attempting to generate manifest for 'php' (8.3.14)
Autoupdating php
Searching hash for php-8.3.14-Win32-vs17-x86.zip in https://windows.php.net/downloads/releases/sha256sum.txt
Could not find hash in https://windows.php.net/downloads/releases/sha256sum.txt
Downloading php-8.3.14-Win32-vs17-x86.zip to compute hashes!
The remote server returned an error: (404) Not Found.
URL https://windows.php.net/downloads/releases/php-8.3.14-Win32-vs17-x86.zip is not valid
Could not install [email protected]
Select-CurrentVersion: C:\Users\dell\scoop\apps\scoop\current\lib\core.ps1:435
Line |
 435 |      return $null -ne (Select-CurrentVersion -AppName $app -Global:$gl …
     |                                                       ~~~~
     | Cannot bind argument to parameter 'AppName' because it is an empty string.
InvalidOperation: C:\Users\dell\scoop\apps\scoop\current\lib\manifest.ps1:36
Line |
  36 |      $app = $app.TrimStart('/')
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~
     | You cannot call a method on a null-valued expression.
Split-Path: C:\Users\dell\scoop\apps\scoop\current\lib\core.ps1:634
Line |
 634 |      (split-path $url -leaf) -replace '.json$', ''
     |                  ~~~~
     | Cannot bind argument to parameter 'Path' because it is an empty string.
Couldn't find manifest for ''.

i follow the link https://windows.php.net/downloads/releases/sha256sum.txt
there is php-8.3.14-Win32-vs16-x64.zip but the scoop want to download php-8.3.14-Win32-vs17-x86.zip instead, that is not exist

also, why it download x86 instead, and not x64 like my machine

Steps to Reproduce

scoop update php // to the latest 8.4
scoop cache rm *
scoop cleanup *
scoop install [email protected] // to downgrade

Possible Solution

should match entire name of .zip instead just initial or part name,

Scoop and Buckets Version

# dell @ LATITUDE5320 in ~: [14.27.57]
$ scoop --version
Current Scoop version:
859d1db5 (HEAD -> master, tag: v0.5.2, origin/master, origin/HEAD) chore(release): Bump to version 0.5.2 (#6080)

'main' bucket:
c650cb25b (HEAD -> master, origin/master, origin/HEAD) sass: Update to version 1.81.1

'extras' bucket:
20bace26e (HEAD -> master, origin/master, origin/HEAD) wiztree: Update to version 4.23

'versions' bucket:
8f666a2bf (HEAD -> master, origin/master, origin/HEAD) yt-dlp-master: Update to version 2024.12.03.040906

'sysinternals' bucket:
6b2b695 (HEAD -> main, origin/main, origin/HEAD) sysmon: Update to version 15.15

'nerd-fonts' bucket:
75291590 (HEAD -> master, origin/master, origin/HEAD) Cascadia-Code: Update to version 2407.24

'nonportable' bucket:
026be440 (HEAD -> master, origin/master, origin/HEAD) 10x-np: Update to version 1.0.243

'java' bucket:
e42bde77 (HEAD -> master, origin/master, origin/HEAD) temurin8-nightly-jre: Update to version 8.0.442-4.0.202412021103

Scoop Config

# dell @ LATITUDE5320 in ~: [14.29.51]
$ scoop config

last_update         scoop_repo                              scoop_branch aria2-warning-enabled
-----------         ----------                              ------------ ---------------------
03/12/2024 14.01.56 https://github.com/ScoopInstaller/Scoop master                       False

PowerShell Version

# dell @ LATITUDE5320 in ~: [14.30.11]
$ pwsh -v
PowerShell 7.4.6

Additional Softwares

No response

@dansvel dansvel added the bug label Dec 3, 2024
@aliesbelik
Copy link
Collaborator

Guess this belongs to the Main bucket instead and relates to ScoopInstaller/Main#6352, ScoopInstaller/Main#6353.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants