Good afternoon
I am using the store API for some research.
I have noticed that when I try to search for Snaps that have been released with architectures other than Amd64, I sometimes see only the Amd64 version in the search results. Case-in-point, cert-checker.
curl -sL 'https://api.snapcraft.io/api/v1/snaps/search?q=cert-checker&page=1&fields=architecture&exclude_non_free=false&page_size=250&private=false&arch=arm64&confinement=strict%2Cclassic%2Cdevmode&promoted=false' |
jq -C '._embedded."clickindex:package".[] | select (.package_name == "cert-checker" )' |
less -NSiRJ
yielding:
{
"architecture": [
"amd64"
],
"package_name": "cert-checker"
}
whereas others report the information as expected. For instance, “genshin-resource-calc”:
curl -sL 'https://api.snapcraft.io/api/v1/snaps/search?q=genshin-resource-calc&page=1&fields=architecture&exclude_non_free=false&page_size=250&private=false&arch=arm64&confinement=strict%2Cclassic%2Cdevmode&promoted=false' |
jq -C '._embedded."clickindex:package".[] | select (.package_name == "genshin-resource-calc" )' |
less -NSiRJ
{
"architecture": [
"amd64",
"armhf",
"arm64"
],
"package_name": "genshin-resource-calc"
}
As far as I can tell, I’ve done all of the necessary book-keeping:
Where have I gone wrong?
Regards
Daniel
