go plugin doesn't honor godeps file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When trying to build a snap for telegraf (github.
package github.
/usr/lib/
/home/
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:/
go-importpath: github.
plugin: go
We have a `godeps` plugin just for this. If this is not the `godeps` incantation you are looking for, given there are many implementations and exploratory tools that led to vendoring in go today I suggest you open a new Wishlist bug with a link to the specific godep tool.