go plugin doesn't honor godeps file
Metadata
Current evaluation
⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.
The go plugin fails to parse Godeps files for dependency versioning, causing build errors. The issue was closed without resolution, indicating it was abandoned.
Suggested action: —
No scores available.
Issue body
When trying to build a snap for telegraf (github.com/influxdata/telegraf), using the 'go' plugin, I got the following error:
package github.com/openzipkin/zipkin-go-opentracing/_thrift/gen-go/zipkincore: cannot find package "github.com/openzipkin/zipkin-go-opentracing/_thrift/gen-go/zipkincore" in any of:
/usr/lib/go-1.8/src/github.com/openzipkin/zipkin-go-opentracing/_thrift/gen-go/zipkincore (from $GOROOT)
/home/sajoupa/go/src/github.com/openzipkin/zipkin-go-opentracing/_thrift/gen-go/zipkincore (from $GOPATH)
This is because telegraf uses a specific commit for this package, as specified in Godeps. And between this commit, and the most recent, this path was updated.
But snapcraft uses 'go get [..]/telegraf/...', so, latest version of sub-packages.
As far as I can see, snapcraft doesn't support specifying package versions in Godeps, but a lot of projects use it, so it would be pretty useful ?
Thanks,
Laurent
snapcraft.yaml to reproduce:
name: telegraf
version: 1.5.2
summary: Telegraf agent
description: |
Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics
confinement: classic
grade: devel
apps:
telegraf:
command: telegraf
daemon: simple
parts:
telegraf:
source: https://github.com/influxdb/telegraf.git
go-importpath: github.com/influxdb/telegraf
plugin: go
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | The go plugin fails to parse Godeps files for dependency versioning, causing build errors. The issue was closed without resolution, indicating it was abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The issue was likely abandoned or superseded by Go modules, as the go plugin now relies on go.mod instead of Godeps. No comments or fixes were added. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. The snapcraft go plugin ignores Godeps files for dependency version pinning, and no fix or implementation was provided. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1671546 godeps plugin does not installing the git package by itself | snapcraft (launchpad) | closed | Closed without a fix. The godeps plugin fails to install git automatically, causing go get to fail. Users must manually add git to build-packages as a workaround. | |
| #1922150 godeps using seemingly invalid commit hash | snapcraft (launchpad) | closed | Closed without resolution. The hardcoded commit hash in the godeps plugin causing checkout failures was not addressed, likely abandoned or superseded by newer plugin versions. | |
| #1794784 Update the godeps plugin to be base aware | snapcraft (launchpad) | closed | Closed without comments or resolution. The request to update the godeps plugin for base awareness appears abandoned or superseded by subsequent build system changes. | |
| #1656118 godeps plugin break when GOBIN is set | snapcraft (launchpad) | closed | Closed without a documented fix. The godeps plugin incorrectly installed packages when the GOBIN environment variable was set. | |
| #1595981 Need a godeps plugin | snapcraft (launchpad) | closed | Feature request for a godeps plugin was closed without discussion or implementation, indicating the request was abandoned. | |
| #1657212 Godeps plugin support to build only needed binaries | snapcraft (launchpad) | closed | Feature request for godeps plugin binary selection was closed without implementation or discussion, indicating the request was abandoned. | |
| #1057 godeps plugin: support for go-packages. | snapcraft | merged | Merged into master, adding go-packages support to the godeps plugin to match the go plugin. Approved by a reviewer, passed CI checks, and increased overall code coverage. | |
| #1609623 go plugin has no build tags | snapcraft (launchpad) | closed | Closed without action or comments. The Go plugin build tag limitation was not addressed, likely abandoned or superseded as the project evolved. |