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] cannot install older version of gitextensions #5573

Closed
mfechner opened this issue Jul 10, 2023 · 2 comments
Closed

[Bug] cannot install older version of gitextensions #5573

mfechner opened this issue Jul 10, 2023 · 2 comments
Labels

Comments

@mfechner
Copy link

Bug Report

Current Behavior

Gitextension version 4 require dotnet 6 which must be installed as admin and does not exist on the system.
So I try to install gitextension version 3.5.4, see also here:
https://github.com/gitextensions/gitextensions/releases/tag/v3.5.4

I tried many combinations:

scoop install [email protected]
scoop install [email protected]
scoop install [email protected]
scoop install gitextensions@3

Expected Behavior

It should be possible to install an older version of gitextensions as not every computer has dotnet 6 installed.

Additional context/output

The error message is:

WARN  Given version (3.5.4.12724-65f01f399) does not match manifest (4.1.0.16698)
WARN  Attempting to generate manifest for 'gitextensions' (3.5.4.12724-65f01f399)
Autoupdating gitextensions
Downloading GitExtensions-Portable-3.5.4.12724-65f01f399-$matchCommit.zip to compute hashes!
The remote server returned an error: (404) Not Found.
URL https://github.com/gitextensions/gitextensions/releases/download/v$matchTag/GitExtensions-Portable-3.5.4.12724-65f01f399-$matchCommit.zip is not valid
Could not install [email protected]
Select-CurrentVersion : Cannot bind argument to parameter 'AppName' because it is an empty string.
At C:\Development\Scoop\apps\scoop\current\lib\core.ps1:239 char:54
+     return $null -ne (Select-CurrentVersion -AppName $app -Global:$gl ...
+                                                      ~~~~
    + CategoryInfo          : InvalidData: (:) [Select-CurrentVersion], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Select-CurrentVersion

You cannot call a method on a null-valued expression.
At C:\Development\Scoop\apps\scoop\current\lib\manifest.ps1:36 char:5
+     $app = $app.TrimStart('/')
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Couldn't find manifest for ''.

Possible Solution

System details

Windows version: 10 (21H2)

OS architecture: 64-bit

PowerShell version: [output of "$($PSVersionTable.PSVersion)"] 5.1.19041.3031
Additional software: [(optional) e.g. ConEmu, Git]

Scoop Configuration

5.1.19041.3031
@mfechner mfechner added the bug label Jul 10, 2023
@HUMORCE
Copy link
Member

HUMORCE commented Jul 10, 2023

This feature is not available on all manifests. When autoupdate url contains variables other than pre-defined variables, it fails.

You can find target version of the manifest at it's commits, then install it via url.

For this case:

commit: ScoopInstaller/Extras@a5e1bd4
raw:
https://github.com/ScoopInstaller/Extras/raw/a5e1bd4c8156cd712d8cd3ee1e797491588cbeb6/bucket/gitextensions.json

❯ scoop download https://github.com/ScoopInstaller/Extras/raw/a5e1bd4c8156cd712d8cd3ee1e797491588cbeb6/bucket/gitextensions.json
INFO  Downloading 'gitextensions' [64bit]
GitExtensions-Portable-3.5.4.12724-65f01f399.zip (22.1 MB) [==========================================================] 100%
Checking hash of GitExtensions-Portable-3.5.4.12724-65f01f399.zip ... ok.
'gitextensions' (3.5.4.12724) was downloaded successfully!

See also: #3894

@rashil2000
Copy link
Member

See also #3045 (comment)

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

3 participants