Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for building snaps via snapcraft #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

popey
Copy link

@popey popey commented Feb 20, 2017

This PR adds support for building a snap of hey using snapcraft. You can find out more about snapcraft at https://snapcraft.io/

This consists of a yaml which describes the hey snap, and a plugin for snapcraft which builds go 1.7 that is required by hey.

To build on an Ubuntu 16.04 system:-

sudo apt install snapcraft
git clone http://github.com/popey/hey
cd hey
git checkout add-snapcraft
snapcraft

This will build hey. You can install and test thus:-

snap install *.snap --dangerous

The "--dangerous" option is required when installing untrusted packages. Users installing signed packages from the store don't need that.

Once built the snap can be uploaded to the snap store as per the documentation:-

https://snapcraft.io/docs/build-snaps/publish

It would also be great to automatically push on each commit to the 'edge' channel in the store using travis or launchpad.

https://snapcraft.io/docs/build-snaps/ci-integration

@popey
Copy link
Author

popey commented Mar 6, 2017

Anyone got an opportunity to test this PR and hook the pieces up to CI so we can auto-land in the snap store?

chunter0 pushed a commit to chunter0/hey that referenced this pull request Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant