parts:
hephy:
plugin: dump
source:
- on amd64: https://storage.googleapis.com/hephy-workflow-cli-release/v$SNAPCRAFT_PROJECT_VERSION/deis-v$SNAPCRAFT_PROJECT_VERSION-linux-amd64
- on i386: https://storage.googleapis.com/hephy-workflow-cli-release/v$SNAPCRAFT_PROJECT_VERSION/deis-v$SNAPCRAFT_PROJECT_VERSION-linux-i386
However, if I don’t specify a source-type, I get:
Sorry, an error occurred in Snapcraft:
Failed to pull source: unable to determine source type of 'https://storage.googleapis.com/hephy-workflow-cli-release/v2.20.2/deis-v2.20.2-linux-amd64'.
Check that the URL is correct or consider specifying `source-type` for this part. See `snapcraft help sources` for more information.
but none of the suggested source-types seem appropriate:
source-type
Can be one of the following: [bzr|deb|git|hg|local|mercurial|rpm|subversion|svn|tar|zip|7z]
They seem to be a mixture of:
Specifying some kind of packing (deb, rpm, tar, etc.) and assuming/inferring underlying transport
Specifying part of the transport protocol (bzr, git, etc.) but assuming/inferring underlying transport
local
but no e.g. http for “fetch but don’t unpack”
What am I missing? Should I be using a different plugin? Thanks
Alas I tried snap-type: local in case, but (quite reasonably) it doesn’t solve this for me:
Pulling hephy
Sorry, an error occurred in Snapcraft:
'/build/https:/storage.googleapis.com/hephy-workflow-cli-release/v2.20.2/deis-v2.20.2-linux-amd64' is not a directory
The taxonomy is not well split out in terms of transport and all end up assume you will have files in a tree at the end of it. Internally we do support a “download this file” mechanism which can be exposed and would match your purposes.