-
Notifications
You must be signed in to change notification settings - Fork 132
/
dummy.go
30 lines (27 loc) · 1.02 KB
/
dummy.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//go:build dummy
// +build dummy
// This file is part of a workaround for `go mod vendor` which won't vendor
// C files if there's no Go file in the same directory.
// This would prevent the hidapi/hidapi/hidapi.h file to be vendored.
//
// This Go file imports the c directory where there is another dummy.go file which
// is the second part of this workaround.
//
// These two files combined make it so `go mod vendor` behaves correctly.
//
// See this issue for reference: https://github.com/golang/go/issues/26366
package main
import (
_ "github.com/karalabe/hid/hidapi"
_ "github.com/karalabe/hid/hidapi/hidapi"
_ "github.com/karalabe/hid/hidapi/hidtest"
_ "github.com/karalabe/hid/hidapi/libusb"
_ "github.com/karalabe/hid/hidapi/linux"
_ "github.com/karalabe/hid/hidapi/mac"
_ "github.com/karalabe/hid/hidapi/netbsd"
_ "github.com/karalabe/hid/hidapi/pc"
_ "github.com/karalabe/hid/hidapi/windows"
_ "github.com/karalabe/hid/libusb"
_ "github.com/karalabe/hid/libusb/libusb"
_ "github.com/karalabe/hid/libusb/libusb/os"
)