Git Ignore Rules for Snapcraft

This topic documents the ignore rules for a Snapcraft project, it is now been added to the github/gitignore project:

/parts/
/stage/
/prime/
/*.snap

# Snapcraft global state tracking data(automatically generated)
# https://forum.snapcraft.io/t/location-to-save-global-state/768
/snap/.snapcraft/

# Source archive packed by `snapcraft cleanbuild` before pushing to the LXD container
/*_source.tar.bz2

TODO

  • Python runtime generated files used in snapcraft plugins
1 Like

The file in the github/gitignore repository ended up here: https://github.com/github/gitignore/blob/master/community/Linux/Snap.gitignore