Remove obsolete bitness parameter to foojay api#16
Open
solidjb wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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" }