Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix go mod vendor #31

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions hid_enabled.go
Original file line number Diff line number Diff line change
@@ -47,6 +47,14 @@ import (
"runtime"
"sync"
"unsafe"

// go mod vendor prunes non-go dirs https://github.com/golang/go/issues/26366
_ "github.com/karalabe/hid/libusb/libusb"
_ "github.com/karalabe/hid/libusb/libusb/os"
_ "github.com/karalabe/hid/hidapi/hidapi"
_ "github.com/karalabe/hid/hidapi/libusb"
_ "github.com/karalabe/hid/hidapi/mac"
_ "github.com/karalabe/hid/hidapi/windows"
)

// enumerateLock is a mutex serializing access to USB device enumeration needed
3 changes: 3 additions & 0 deletions hidapi/hidapi/dummy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// go mod vendor prunes non-go dirs https://github.com/golang/go/issues/26366

package hidapi_hidapi
lionello marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 3 additions & 0 deletions hidapi/libusb/dummy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// go mod vendor prunes non-go dirs https://github.com/golang/go/issues/26366

package hidapi_libusb
3 changes: 3 additions & 0 deletions hidapi/mac/dummy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// go mod vendor prunes non-go dirs https://github.com/golang/go/issues/26366

package hidapi_mac
3 changes: 3 additions & 0 deletions hidapi/windows/dummy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// go mod vendor prunes non-go dirs https://github.com/golang/go/issues/26366

package hidapi_windows
3 changes: 3 additions & 0 deletions libusb/libusb/dummy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// go mod vendor prunes non-go dirs https://github.com/golang/go/issues/26366

package libusb
3 changes: 3 additions & 0 deletions libusb/libusb/os/dummy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// go mod vendor prunes non-go dirs https://github.com/golang/go/issues/26366

package libusb_os