Skip to content

Microsoft JDK extract_dir issues #390

Closed

Description

@se35710

Currently Microsoft JDK's extract_dir contains a build number not available at the download page at https://docs.microsoft.com/java/openjdk/download

Manual updates after each autoupdate is necessary with the current manifests. For a work around, maybe reuse the temurin nightly approach:

    "extract_to": "tmp",
    "installer": {
        "script": [
            "(Get-ChildItem -Directory \"$dir\\tmp\").FullName | % { Move-Item \"$_\\*\" \"$dir\" }",
            "Remove-Item -Recurse \"$dir\\tmp\""
        ]
    }

Activity

  1. CrendKing commented on Aug 24, 2022

    @CrendKing

    The current manifest relies on the checkver regex to extract the build number from URL, which is not available. An example is v17.0.4 (https://aka.ms/download-jdk/microsoft-jdk-17.0.4-windows-x64.zip), which has a build number "8".

    Since there seems to be only a directory anyways, I think we should just extract recursively, as OP suggested.

  2. added a commit that references this issue on Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions