← Back to issue list

[Godeps] Specifying source tag fails to stage

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1658765
Type
issue
State
open
Author
~nskaggs
Labels
Created
Updated
Closed

Current evaluation

Godeps plugin fails to stage when source-tag is specified: git pull of the tag ref errors with 'cannot update the ref HEAD: non-commit object'. Reported ~2016, no maintainer activity, no labels.

Suggested action: close stale

Reason: The issue is ~9.6 years old (3507 days) with zero comments, no labels, and no maintainer interaction. The godeps plugin (go-importpath) has since been removed from snapcraft in favor of the go plugin, and the underlying git tag-pull bug (treating tags as branches, cf. Launchpad bug 1687967) is no longer relevant to current code. The affected workflow is obsolete, so the issue is no longer applicable.

Impact: 20 Quick Win: 9.0 Staleness: 95 Complexity: 55 Confidence: 70 Support Request: 10

Issue body

$ snapcraft Preparing to pull juju Pulling juju From https://github.com/juju/juju * tag juju-2.0.2 -> FETCH_HEAD fatal: update_ref failed for ref 'HEAD': cannot update the ref 'HEAD': Trying to write non-commit object 6f9a7321d050cc4318d009330854c781e027a7cb to branch refs/heads/master Command '['git', '-C', '/home/nskaggs/projects/juju/classic-juju-snap/parts/juju/src', 'pull', '--recurse-submodules=yes', 'https://github.com/juju/juju.git', 'refs/tags/juju-2.0.2']' returned non-zero exit status 128 My part for this snapcraft.yaml looks like this: parts: juju: plugin: godeps go-importpath: github.com/juju/juju source: https://github.com/juju/juju.git source-type: git build-packages: [gcc] source-tag: juju-2.0.2 I will note the source is pulled and is correct in the parts directory. However, snapcraft fails per above.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 20
Quick Win: 9.0
Staleness: 95
Complexity: 55
Confidence: 70
Support Request: 10
close stale Godeps plugin fails to stage when source-tag is specified: git pull of the tag ref errors with 'cannot update the ref HEAD: non-commit object'. Reported ~2016, no maintainer activity, no labels.
qwen/qwen3.6-35b-a3b
Staleness: 100
Complexity: 30
Confidence: 90
Support Request: 10
close stale snapcraft fails when using the godeps plugin with source-tag to pull a git tag, throwing a fatal git update_ref error. Issue is 9+ years old with no maintainer response.
qwen/qwen3.6-35b-a3b
Staleness: 99
Complexity: 20
Confidence: 95
Support Request: 10
close stale Snapcraft godeps plugin fails to stage when checking out a git tag, throwing a git ref update error. The issue is over 9 years old with no maintainer interaction and the plugin is deprecated.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 35
Confidence: 90
Support Request: 10
close stale Godeps plugin fails to stage when specifying a git source tag, throwing a git ref update error. The issue is over 9 years old with no maintainer response or labels.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 10
Confidence: 95
Support Request: 5
close stale Godeps plugin fails staging when a source tag is specified, throwing a git ref update error. Issue remains open with zero comments and over nine years of inactivity. Needs triage and assignment to resolve the git checkout logic.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft#1687967 (confidence 40%)

    Launchpad bug 1687967 'git-tag does not support tags' describes the same class of failure (snapcraft treating source tags as branches during clone/pull); closed without resolution.

Related issues

No related issues found above the similarity threshold.