Skip to content

Remove obsolete bitness parameter to foojay api#16

Open
solidjb wants to merge 2 commits into
linux-china:masterfrom
solidjb:master
Open

Remove obsolete bitness parameter to foojay api#16
solidjb wants to merge 2 commits into
linux-china:masterfrom
solidjb:master

Conversation

@solidjb
Copy link
Copy Markdown

@solidjb solidjb commented Mar 25, 2026

Our builds started failing today (03/25/2026) because the maven-toolchains-plugin (https://github.com/linux-china/toolchains-maven-plugin) failed to find any results from the foojay api. I looked through the plugin code, and it is calling the foojay api like this:

curl --location 'https://api.foojay.io/disco/v3.0/packages?distribution=corretto&version=25&operating_system=macos&architecture=x64&bitness=64&archive_type=pkg&libc_type=libc&latest=overall&package_type=jdk&discovery_scope_id=directly_downloadable&match=any&javafx_bundled=false&directly_downloadable=true&release_status=ga'

and it gets a result like this:

{ "result": [], "message": "No package(s) found" }

If I remove the bitness flag from the url manually, the search works.

curl --location 'https://api.foojay.io/disco/v3.0/packages?distribution=corretto&version=25&operating_system=macos&architecture=x64&archive_type=pkg&libc_type=libc&latest=overall&package_type=jdk&discovery_scope_id=directly_downloadable&match=any&javafx_bundled=false&directly_downloadable=true&release_status=ga'

{ "result": [ { "id": "129c97e1e7a0b10b7ca0dd01b0be2995", "archive_type": "pkg", "distribution": "corretto", "major_version": 25, "java_version": "25.0.2", "distribution_version": "25.0.2", "jdk_version": 25, "latest_build_available": true, "release_status": "ga", "term_of_support": "lts", "operating_system": "macos", "lib_c_type": "libc", "architecture": "x64", "fpu": "unknown", "package_type": "jdk", "javafx_bundled": false, "directly_downloadable": true, "filename": "amazon-corretto-25.0.2.10.1-macosx-x64.pkg", "links": { "pkg_info_uri": "https://api.foojay.io/disco/v3.0/ids/129c97e1e7a0b10b7ca0dd01b0be2995", "pkg_download_redirect": "https://api.foojay.io/disco/v3.0/ids/129c97e1e7a0b10b7ca0dd01b0be2995/redirect" }, "free_use_in_production": true, "tck_tested": "yes", "tck_cert_uri": "https://aws.amazon.com/de/blogs/opensource/amazon-corretto-no-cost-distribution-openjdk-long-term-support/", "aqavit_certified": "unknown", "aqavit_cert_uri": "", "size": 221518516, "feature": [] } ], "message": "1 package(s) found" }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants