Skip to content

Build fails with Go 1.24 #303

@stefanb

Description

@stefanb

Building with Go 1.24rc3 (via Go-version adjusted Dockerfile)

FROM golang:1.18

results with:

 > [7/7] RUN go build .:
0.148 go: downloading gopkg.in/natefinch/lumberjack.v2 v2.0.0
0.148 go: downloading github.com/gorilla/handlers v1.5.1
0.151 go: downloading github.com/gorilla/mux v1.8.0
0.188 go: downloading github.com/gorilla/csrf v1.7.0
0.359 go: downloading github.com/pkg/errors v0.9.1
0.360 go: downloading github.com/gorilla/securecookie v1.1.1
0.381 go: downloading github.com/felixge/httpsnoop v1.0.1
10.58 # github.com/trezor/trezord-go/usb/lowlevel/libusb
10.58 usb/lowlevel/libusb/libusb.go:408:10: cannot define new methods on non-local type Struct_Libusb_Endpoint_Descriptor
10.58 usb/lowlevel/libusb/libusb.go:461:10: cannot define new methods on non-local type Struct_Libusb_Interface_Descriptor
10.58 usb/lowlevel/libusb/libusb.go:519:10: cannot define new methods on non-local type Struct_Libusb_Interface
10.58 usb/lowlevel/libusb/libusb.go:569:10: cannot define new methods on non-local type Struct_Libusb_Config_Descriptor
10.58 usb/lowlevel/libusb/libusb.go:630:10: cannot define new methods on non-local type Struct_Libusb_SS_Endpoint_Companion_Descriptor
10.58 usb/lowlevel/libusb/libusb.go:657:10: cannot define new methods on non-local type Struct_Libusb_BOS_Dev_Capability_Descriptor
10.58 usb/lowlevel/libusb/libusb.go:683:10: cannot define new methods on non-local type Struct_Libusb_BOS_Descriptor
10.58 usb/lowlevel/libusb/libusb.go:718:10: cannot define new methods on non-local type Struct_Libusb_USB_2_0_Extension_Descriptor
10.58 usb/lowlevel/libusb/libusb.go:748:10: cannot define new methods on non-local type Struct_Libusb_SS_USB_Device_Capability_Descriptor
10.58 usb/lowlevel/libusb/libusb.go:779:10: cannot define new methods on non-local type Struct_Libusb_Container_ID_Descriptor
10.58 usb/lowlevel/libusb/libusb.go:779:10: too many errors

Found in

Related:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions