Git clone with --depth=1 loses the tags
Bug #1617783 reported by
Mark Shuttleworth
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Medium
|
Sergio Schvezov |
Bug Description
I have a part which is failing because the upstream uses tags in the git tree explicitly as part of the build process. THe snapcraft clone however uses --depth=1 which means those tags are lost.
We should by default clone the entire git repository. A snapcraft part should be able to specify a shallow clone by providing an explicit depth.
Can we make it so you can specify 'source-depth: n' in the part specification if you want a shallow clone (typically n would be 1) but that otherwise snapcraft will by default omit the depth and make a full clone of the repository?
Changed in snapcraft: | |
importance: | Undecided → Medium |
status: | Incomplete → Triaged |
Changed in snapcraft: | |
status: | Triaged → In Progress |
milestone: | none → 2.18 |
assignee: | nobody → Sergio Schvezov (sergiusens) |
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Can you please share your yaml or repo?