Ryan Suhartanto

Results 7 comments of Ryan Suhartanto

I'll use this `jsonpath` to filter the version and product UUIDs ``` $..['distro_version','package_uuid'] ``` And then I use `regex` to match it (example: ) ```regex \[\s*\[\s*(?\d+),\s*(?\d+),\s*(?\d+),\s*\d\s*\],\s*"(?[\w-]+)"(?:,\s*\[\s*(?:\d+,?\s*)+\],\s*"(?[\w-]+)")\s*\] ```

I think I found a bug when doing `json_path`. ``` $ json_path '[{"availability_type":"CA","distro_version":[17,48,15,0],"download_url":"https://cdn.azul.com/zulu/bin/zulu17.48.15-ca-fx-jre17.0.10-win_x64.zip","java_version":[17,0,10],"latest":true,"name":"zulu17.48.15-ca-fx-jre17.0.10-win_x64.zip","openjdk_build_number":7,"package_uuid":"cef00b50-77db-400a-afdd-b9e391e44631","product":"zulu"},{"availability_type":"CA","distro_version":[17,48,15,0],"download_url":"https://cdn.azul.com/zulu/bin/zulu17.48.15-ca-fx-jre17.0.10-win_i686.zip","java_version":[17,0,10],"latest":true,"name":"zulu17.48.15-ca-fx-jre17.0.10-win_i686.zip","openjdk_build_number":7,"package_uuid":"25351721-5e7e-4eef-a0ef-0c3686b38631","product":"zulu"}]' "$..['distro_version','package_uuid']" $null $false $false [ 17, 48, 15, 0 ]\ncef00b50-77db-400a-afdd-b9e391e44631\n[ 17, 48, 15, 0 ]\n25351721-5e7e-4eef-a0ef-0c3686b38631 ```

Product UUIDs is discarded using this technique, but this is the best I can do for the current Scoop version by utilizing `include_fields`.

For example, here's the discovery API for the JDK version 17 (added newlines for clarity): ``` https://api.azul.com/zulu/download/community/v1.0/bundles/latest/\ ?jdk_version=17\ &bundle_type=jdk\ &features=\ &javafx=false\ &ext=zip\ &os=windows\ &arch=x86\ &hw_bitness=64 ``` Here's the migrated metadata...

~Note that now, the hash for the downloaded file has been separated to a different API request (/zulu/packages/). We need to store the product UUID of both the 32-bit architecture...

I have researched the documentation about CRaC and CRS support. CRS (Connected Runtime Service) is not available to 32-bit architecture after October 2023. We can just ignore this since it's...

I made a regex to match and substitute the urls here . Note that the page size parameter is set to 2.