go vet causing Crushing failure and despair

Bug #1753940 reported by Dimitri John Ledkov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
britney
Fix Released
Undecided
Unassigned
golang-1.10 (Ubuntu)
New
Medium
Michael Hudson-Doyle
snapd (Ubuntu)
Triaged
Wishlist
Michael Vogt

Bug Description

go vet fails on snapd in bionic-release, as follows:

Running vet
# github.com/snapcore/snapd/advisor
advisor/backend.go:178: literal copies lock value from *db: github.com/snapcore/snapd/vendor/github.com/snapcore/bolt.DB contains sync.Pool contains sync.noCopy
# github.com/snapcore/snapd/cmd/snap_test
cmd/snap/cmd_snap_op_test.go:825: Fprintln arg list ends with redundant newline
cmd/snap/interfaces_common_test.go:68: github.com/snapcore/snapd/cmd/snap.AttributePair composite literal uses unkeyed fields
cmd/snap/interfaces_common_test.go:69: github.com/snapcore/snapd/cmd/snap.AttributePair composite literal uses unkeyed fields
# github.com/snapcore/snapd/overlord/devicestate_test
overlord/devicestate/devicestate_test.go:403:38: internal compiler error: no function definition for [0xc4216b8120] FUNC-method(*devicestate.DeviceManager) func() asserts.KeypairManager

Please file a bug report including a short program that triggers the error.
https://golang.org/issue/new
# github.com/snapcore/snapd/overlord/ifacestate_test
overlord/ifacestate/ifacestate_test.go:116:29: internal compiler error: no function definition for [0xc421039da0] FUNC-method(*ifacestate.InterfaceManager) func()

Please file a bug report including a short program that triggers the error.
https://golang.org/issue/new
# github.com/snapcore/snapd/snap_test
snap/info_test.go:471: ExampleSplitSnapAppShort refers to unknown identifier: SplitSnapAppShort

Crushing failure and despair.

Related branches

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

I am confused about the value of running go vet, in autopkgtests, as any issues discovered by go vet, during testing of affects of reverse dependencies on a released version of snapd. This is not as installed testing, and would require manual changes to the code.

summary: - go vet fails on snapd in bionic-release
+ go vet causing Crushing failure and despair
Changed in golang-1.10 (Ubuntu):
assignee: nobody → Michael Hudson-Doyle (mwhudson)
Changed in snapd (Ubuntu):
assignee: nobody → Michael Vogt (mvo)
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

golang should probably be checked / fixed / upstream issue filed, etc.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

and meanwhile we should probably badtest snapd in bionic.

Changed in britney:
status: New → Fix Released
Changed in golang-1.10 (Ubuntu):
importance: Undecided → Medium
Changed in snapd (Ubuntu):
importance: Undecided → Wishlist
Changed in snapd (Ubuntu):
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.