go-ethereum/accounts/usbwallet
Guillaume Ballet eb3283fb2e
accounts/usbwallet: revert github.com/karalabe/hid to fix freebsd build (#34784)
This PR reverts the last change to the freebsd build, and it fixes the
_direct_ FreeBSD build.

Here, we change the upstream of github.com/karalabe/hid to its new home,
github.com/ethereum/hid. The new dependency includes a dummy.go file
that makes `go mod vendor` work.

##### Origin of the problem

Enrique is maintaining the FreeBSD ports, and FreeBSD ports only support
vendored go modules. It turns out that `go mod vendor` will not include
C files if there is no `.go` file in the directory. Since the C files
were missing for `karalabe/hid`, the ports maintainer tried to use the
version of `hidapi` that is provided by the ports. To do so, he had to
modify the way things are included. This broke the _out of ports_
FreeBSD build.
2026-04-22 12:32:19 +02:00
..
trezor all: remove deprecated protobuf dependencies (#30232) 2024-08-01 16:25:55 +02:00
hub.go accounts/usbwallet: revert github.com/karalabe/hid to fix freebsd build (#34784) 2026-04-22 12:32:19 +02:00
ledger.go accounts/usbwallet: fix version check in SignTypedMessage (#33113) 2025-11-07 08:24:11 +01:00
trezor.go accounts/usbwallet: full 32bit chainId support for Trezor (#17439) 2025-04-10 12:46:54 +02:00
wallet.go accounts/usbwallet: revert github.com/karalabe/hid to fix freebsd build (#34784) 2026-04-22 12:32:19 +02:00