godeps using seemingly invalid commit hash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Triaged
|
Medium
|
Chris Patterson |
Bug Description
My CI has been failing for a while with a confusing error when building a godeps part:
Pulling mdns-publisher
+ snapcraftctl pull
Cloning into '/home/
remote: Enumerating objects: 163, done.
remote: Total 163 (delta 0), reused 0 (delta 0), pack-reused 163
Receiving objects: 100% (163/163), 44.12 KiB | 2.10 MiB/s, done.
Resolving deltas: 100% (82/82), done.
Fetching godeps...
go get -d github.
go: downloading github.
go: downloading github.
go: downloading github.
go: downloading golang.org/x/tools v0.1.0
go: downloading golang.org/x/sys v0.0.0-
git checkout 4e9e0ee19b60b13
fatal: reference is not a tree: 4e9e0ee19b60b13
Failed to run 'git checkout 4e9e0ee19b60b13
Verify that the part is using the correct parameters and try again.
Exited with code exit status 2
Huh. That commit isn't anywhere in my project or my dependencies. Turns out it's actually in the godeps plugin itself, when it's trying to checkout go-toml:
It looks like that commit hash may no longer exist. This seems like a rather fragile way to do things, but we must have done it for a reason I don't understand. Is it something we can improve upon?
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in snapcraft: | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Chris Patterson (cjp256) |
Hey Kyle, can you try pinning the go-channel to 1.15/stable (or earlier)? IIRC go get's behavior changed in 1.16 - and the plugin was updated to default to 1.15/stable.