Ignore vcs folders for `source-type: local` builds

Bug #1795642 reported by Michał Sawicz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Confirmed
Undecided
Kyle Fazzari

Bug Description

Snapcraft could DTRT and ignore .git, .bazaar, .hg folders etc. when source-type is local. It's very unlikely it's needed for the build, and if it is, the developer should probably explicitly say `source-type: $vcs`.

A .snapcraftignore file is certainly an option, but would require developer action, and add more snap cruft to the repository. A `source-ignore:` key in the YAML might be more appropriate.

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

We still need to figure out and brainstorm how we want to solve this.

Changed in snapcraft:
assignee: nobody → Kyle Fazzari (kyrofa)
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.