git-tag does not support tags
Metadata
Current evaluation
⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.
Snapcraft incorrectly treated source tags as branches, causing clone failures. The report was closed without comments or resolution, indicating the issue was abandoned or rejected without a fix.
Suggested action: —
No scores available.
Issue body
I have a snapcraft.yaml that looks something like this:
parts:
foo:
# See 'snapcraft plugins'
plugin: cmake
source: https://github.com/foo/foo
source-type: git
source-tag: v3.0
When I ran snapcraft, that resulted in the following:
Pulling foo
Cloning into '/opt/src/snap/foo/parts/foo/src'...
fatal: Remote branch v3.0 not found in upstream origin
Command '['git', 'clone', '--recursive', '--branch', 'v3.0', 'https://github.com/foo/foo',
'/opt/src/snap/foo/parts/foo/src']' returned non-zero exit status 128
It looks like snapcraft is looking for a 'v3.0" *branch* in the repository, but the name implies tags should work, too.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Snapcraft incorrectly treated source tags as branches, causing clone failures. The report was closed without comments or resolution, indicating the issue was abandoned or rejected without a fix. | |
| qwen/qwen3.6-35b-a3b | — | — | Snapcraft incorrectly treated source-tag as a branch instead of a git tag, causing clone failures. The submission was closed and abandoned without resolution or fix, due to zero comments and inactivity. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Snapcraft incorrectly treated source-tag as a branch, causing clone failures. The report was closed without comments, resolution, or a fix, indicating it was abandoned. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4513 Pull fails because `source-tag` is translated into `--branch` | snapcraft | closed | Closed as invalid. Maintainers clarified that git clone --branch handles both tags and branches with no fallback logic. The reported failure stemmed from a typo in the tag name, not a snapcraft bug. | |
| #1724526 source-tag attempts to clone branch, fails | snapcraft (launchpad) | closed | Abandoned and closed without resolution. The source-tag branch cloning bug remains unfixed. | |
| #1973199 Temporary repo for snapcraft remote-build has no git tags | snapcraft (launchpad) | closed | Closed without resolution, likely abandoned. The report details snapcraft remote-build creating a temporary repository without git tags, breaking version detection via snapcraftctl set-version. | |
| #1536698 Git source doesn't support submodules | snapcraft (launchpad) | closed | Abandoned. Snapcraft does not fetch Git submodules during source builds, and the issue was closed without resolution or implementation. | |
| #1817907 building part with git source-commit not found in master fails | snapcraft (launchpad) | closed | Closed without resolution due to inactivity. Snapcraft fails to checkout non-master git commits without a prior fetch, leaving the issue abandoned. | |
| #1851240 using source-branch and source-tag not possible but no explanation in help why this is the case | snapcraft (launchpad) | open | Request to document in `snapcraft help sources` that source-branch and source-tag are mutually exclusive for git sources (or allow both). Filed ~6.8 years ago by ogra with no labels, comments, or maintainer response; current state unverified. |