-
-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9753 from stgraber/master
shared/usbid: Document reasons to fork
- Loading branch information
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
This Go package is a variant of `usbid` from https://github.com/google/gousb. | ||
It was written by the gousb maintainers and contributors and then adapted for use by LXD. | ||
|
||
Main changes: | ||
- Doesn't load on import (reduced memory footprint). | ||
- Uses system-local USB database (to always match `lsusb`). | ||
- Doesn't import anything outside of built-in Go packages. | ||
- Doesn't use or indirectly rely on CGO as this code is often used in cross-built static binaries. | ||
|
||
Most users will want to stick to the upstream google/gousb version instead. | ||
This fork is really meant for LXD's special use case and may be further trimmed down in the future. |