Dump plugin to fetch single binary
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
(Originally reported and discussed at https://forum.snapcraft.io/t/fetching-a-plain-uncompressed-binary-with-the-dump-plugin/12579/8)
Hephy Workflow (https://teamhephy.info/docs/workflow/) ships as an uncompressed single binary that you just download and run (cf. https://raw.githubusercontent.com/teamhephy/workflow-cli/master/install-v2.sh)
I'd like to use the `dump` plugin to fetch this for my snap, much like the snapcrafters do for helm (https://github.com/snapcrafters/helm/blob/master/snap/snapcraft.yaml):
```
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, none of the suggested `source-type`s are appropriate:
> source-type
> Can be one of the following: [bzr|deb|git|hg|local|mercurial|rpm|subversion|svn|tar|zip|7z]
I would like some kind of `http`/`binary` `source-type` to mean "just fetch, don't try to unpack" please
The current "workaround" I'm using, courtesy of Daniel Llewellyn, is:
```
override-pull: |
cd "$SNAPCRAFT_PART_SOURCE" # this line might be wrong. also maybe unneeded
if [ "$SNAPCRAFT_ARCH_TRIPLET" = "x86_64-linux-gnu" ]; then
curl -sSLO https://storage.googleapis.com/hephy-workflow-cli-release/v$SNAPCRAFT_PROJECT_VERSION/deis-v$SNAPCRAFT_PROJECT_VERSION-linux-amd64
elif [ "$SNAPCRAFT_ARCH_TRIPLET" = "i386-linux-gnu" ]; then
curl -sSLO https://storage.googleapis.com/hephy-workflow-cli-release/v$SNAPCRAFT_PROJECT_VERSION/deis-v$SNAPCRAFT_PROJECT_VERSION-linux-i386
else
exit 1
fi
```
Thanks
Evaluation history
No evaluation history available.