jaypipes / pcidb

Small golang library for querying PCI database (pciids) information
Apache License 2.0
33 stars 15 forks source link

If pci.ids doesn't exist, pcidb attempts to pull pci.ids file from remote but fails #25

Closed martinkennelly closed 3 years ago

martinkennelly commented 3 years ago

It fails here: https://github.com/jaypipes/pcidb/blob/98ef3ee36c69f20650fe7855047ad042338c6983/discover.go#L77 Error returned:

gzip: invalid header

An empty pci.ids file is left in ~/.cache/pci.ids. This should be cleaned up at a minimum when failure. Will post in following PR.