From 8d2cf028a5e2280babc4d3b3481759e8e1b6cf56 Mon Sep 17 00:00:00 2001 From: Guillaume Ballet Date: Wed, 3 Jul 2019 17:22:27 +0200 Subject: [PATCH] vendor: update karalabe/usb to fix CGO=0 builds (#19790) --- vendor/github.com/karalabe/usb/usb_disabled.go | 5 +++++ vendor/vendor.json | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/vendor/github.com/karalabe/usb/usb_disabled.go b/vendor/github.com/karalabe/usb/usb_disabled.go index f7f42a4cfe..77c9007611 100644 --- a/vendor/github.com/karalabe/usb/usb_disabled.go +++ b/vendor/github.com/karalabe/usb/usb_disabled.go @@ -44,3 +44,8 @@ func EnumerateRaw(vendorID uint16, productID uint16) ([]DeviceInfo, error) { func EnumerateHid(vendorID uint16, productID uint16) ([]DeviceInfo, error) { return nil, nil } + +// Open connects to a previsouly discovered USB device. +func (info DeviceInfo) Open() (Device, error) { + return nil, ErrUnsupportedPlatform +} diff --git a/vendor/vendor.json b/vendor/vendor.json index bbf0a01156..59796181b7 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -243,10 +243,10 @@ "revisionTime": "2017-04-30T22:20:11Z" }, { - "checksumSHA1": "TU/WaqL7fYPDovmGVRSo8btD4ZM=", + "checksumSHA1": "X7ZY5gt+qBd/lafKNbPbouL819w=", "path": "github.com/karalabe/usb", - "revision": "4d6ba34a841453237dba721eeec1af0ef9a7a890", - "revisionTime": "2019-06-13T07:02:55Z", + "revision": "6a7de9d893feb2324aaef49331e923ce279c7973", + "revisionTime": "2019-07-03T09:51:11Z", "tree": true }, {