Ignore vcs folders for `source-type: local` builds
Bug #1795642 reported by
Michał Sawicz
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.
To post a comment you must log in.
We still need to figure out and brainstorm how we want to solve this.