Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

I have a issue to install older version of java -- temurin17-jdk

Đang mở
#534 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
38/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java, powershell
Lĩnh vực
cli, tooling

Hướng nghiên cứu

Start by inspecting the temurin17-jdk manifest and the versioned install path shown in the report. Reproduce the command for version 17.0.11-9, then trace why manifest generation produces literal $matchLink, $matchTag, and $matchName URLs. Done means that requested older version installs successfully without empty-app or null-expression errors.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I need to use temurin17-jdk version 17.0.11-9 but when i try to use it i got error :

PS C:\Users\wiatrgr> scoop install [email protected] -g
WARN Given version (17.0.11-9) does not match manifest (17.0.13-11)
WARN Attempting to generate manifest for 'temurin17-jdk' (17.0.11-9)
Autoupdating temurin17-jdk
Searching hash for $matchName in https://github.com/$matchLink/download/$matchTag/$matchName.sha256.txt
The remote server returned an error: (404) Not Found.
URL https://github.com/$matchLink/download/$matchTag/$matchName.sha256.txt is not valid
Could not find hash in https://github.com/$matchLink/download/$matchTag/$matchName.sha256.txt
Downloading $matchName to compute hashes!
The request was aborted: The connection was closed unexpectedly.
URL https://github.com/$matchLink/download/$matchTag/$matchName is not valid
Could not install [email protected]
Select-CurrentVersion : Cannot bind argument to parameter 'AppName' because it is an empty string.
At C:\Users\wiatrgr\scoop\apps\scoop\current\lib\core.ps1:435 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:\Users\wiatrgr\scoop\apps\scoop\current\lib\manifest.ps1:36 char:5

  • $app = $app.TrimStart('/')
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Test-Path : Cannot bind argument to parameter 'Path' because it is an empty string.
At C:\Users\wiatrgr\scoop\apps\scoop\current\lib\manifest.ps1:57 char:27

  •         if (Test-Path $app) {
    
  •                       ~~~~
    
    • CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.TestPathCommand

Couldn't find manifest for ''.

Could you help with it ?

Ngôn ngữ chính
PowerShell
Star
315
Fork
111
Merge trung bình
13 ngày 18 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ScoopInstaller/Java

Tất cả issue của ScoopInstaller/Java

Issue tương tự

Thêm issue về CLI

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.