← 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

A Godeps part using the annotated tag juju-2.0.2 fails during source pull. An exact config and command are provided, but the legacy Godeps implementation is absent from the current codebase.

Suggested action: close stale

Reason: The exact failing command pulls refs/tags/juju-2.0.2 and Git reports that a non-commit tag object is being written to refs/heads/master, identifying an annotated-tag handling bug. Although historically valid, the current repository contains no Godeps implementation and its migration documentation directs users from legacy core18 Go plugins to the craft-parts Go plugin, so this report targets a removed legacy subsystem; no resolving commit was identified.

Evaluated by: mr-cal-bot

Impact: 22 Quick Win: 11 Complexity: 40 Confidence: 84 Actionability: 84

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
stealth/space-bunny-alpha
Impact: 22
Quick Win: 11
Complexity: 40
Confidence: 84
Actionability: 84
close stale A Godeps part using the annotated tag juju-2.0.2 fails during source pull. An exact config and command are provided, but the legacy Godeps implementation is absent from the current codebase.
qwen/qwen3.6-35b-a3b
Impact: 0
Quick Win: 0
Complexity: 0
Confidence: 80
Actionability: 0
close stale godeps plugin fails when specifying source-tag with git ref error
qwen/qwen3.8-27b
Impact: 20
Quick Win: 9
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.

Update history

Date Change
created

Related issues

No related issues found above the similarity threshold.