How to get downloaded URL
Dose snap have the function like apt-get --print-uris install ?
How to get downloaded URL
Dose snap have the function like apt-get --print-uris install ?
You can try SNAPD_DEBUG=1 snap download http
, there should be a log message with the donwload URL.
Otherwise, if you wish you can try and poke the download endpoint directly: https://api.snapcraft.io/docs/download.html I believe the snap file name can be obtained by querying the refresh endpoint.
one doesn’t strictly need the /refresh endpoint to get the download url, it can also be obtained more simply with https://api.snapcraft.io/docs/info.html