Releases: jaypipes/ghw
v0.13.0
What's Changed
- marshal: replace
github.com/ghodss/yaml
withgopkg.in/yaml.v2
by @Juneezee in #347 - Bump golang.org/x/sys from 0.0.0-20220319134239-a9b59b0215f8 to 0.1.0 by @dependabot in #349
- remove deprecated fields/functions, clean up docs by @jaypipes in #348
- clean CI jobs, Makefile and go.mod/Dockerfile by @jaypipes in #350
- go: chore: remove references to io/ioutil by @ffromani in #351
- doc and const cleanup for cpu, block, memory, and net packages by @jaypipes in #352
- Change udev properties for Linux disk serial by @avishayt in #353
- Allow separating the WWN vendor extension by @zaneb in #363
- update egress endpoints and Go version in actions by @jaypipes in #365
- add proxy.golang.org:443 to egress by @jaypipes in #366
- Read core and physical package ID of the CPUs that are online by @kishen-v in #362
- init darwin cpu support by @pixelsoccupied in #356
- uplift Go, dependencies and action runners by @jaypipes in #369
- Fix parsing of PCI domains longer than 4 digits by @ianb-mp in #373
New Contributors
- @Juneezee made their first contribution in #347
- @dependabot made their first contribution in #349
- @zaneb made their first contribution in #363
- @kishen-v made their first contribution in #362
- @pixelsoccupied made their first contribution in #356
- @ianb-mp made their first contribution in #373
Full Changelog: v0.12.0...v0.12.1
v0.12.0
v0.12.0
- Refactors processor core retrieval
!! Breaking change !!
In the past we've left poorly-named fields (like Id
instead of ID
) in the structs in case people were using the old names and then removed them after a deprecation period. However, in this release, the old ProcessorCore.Index
field really was confusing and wrong: it stated that it was the zero-based index of the core on the physical processor package, but that was incorrect. In actuality, ProcessorCore.Index
was one of the zero-based indexes of a logical processor associated with the physical core
Because of this, we have removed the ProcessorCore.Index
field entirely. If you were using the ProcessorCore.Index
field in your code, you should change to use the (correct) ProcessorCore.ID
field to refer to the processor core.
v0.11.0
- add GPU driver info on Windows (#331 @hingino)
- aarch64 and RISCV64 support (#333 @glimchb)
- fix ARM topology memory info (#337 @jaypipes)
- fix drive media type on Windows (#339 @williambrode)
- add AutoNegotiation and PauseFrameUse as NICCapabilities (#338 @jak3kaj)
- fix memory block physical bytes processing (#341 @jaypipes)
- add Speed, Duplex, SupportedLinkModes, SupportedPorts to NIC struct (#342 @jak3kaj)
Thank you to all who contributed to this release of ghw
!
v0.10.0
- report loop devices (#310 @Itxaka)
- correct
Partition.Label
(#316 @Itxaka) - docs for Partition label and Filesystem label (#318 @jaypipes)
- use udev for partition UUID, removing
blkid
usage (#320 @Itxaka) - fix PCI class name lookups (#327 @eliaskoromilas)
- bump Go version to 1.18+ (#329 @whereswaldon)
- fix Windows drive comparisons (#330 @jaypipes)
v0.9.0
- bring in github.com/jaypipes/[email protected] (#311, @jaypipes)
- get partition types for unmounted partitions (#305, @Itxaka)
- update core dependencies and fix run-from-snapshot (#309, @taigrr)
- change from fs package to os package (#307, @taigrr)
- get partition labels from udev (#304, @Itxaka)
- util: add helper to avoid long format strings (#299, @fromanirh)
- windows: use PhysicalAdapter to check if NIC is virtual (#292, @lukashartl)
- update toolchain (#290, @fromanirh)
- topology: memory: allow encode/decode cycle (#284, @fromanirh)
- static check lanes (#288, @fromanirh)
- pci: don't pass chroot to snapshot (#286, @fromanirh)
- memory: expose per-NUMA-node memory (#268, @fromanirh)
- allow passing in Context as Option (#280, @jaypipes)
- fix: typo with Alerter (#279, @GreyXor)
- pci: remove redundant multiple pciaddr parsing and modalias check (#265, @fromanirh)
- move from Travis to GH Actions
- block: read procfs, not /etc/mtab (#251, @fromanirh)
- rename PCIAddress.Slot to PCIAddress.Device (#252, @jaypipes)
v0.8.0
Features
- Add
ghw.PCIAddress.String()
helper (#223, thanks @fromanirh) - Report PCI backing device address (#221 thanks @fromanirh)
- Include network information in ghw snapshots (#227 thanks @fromanirh)
- Report NUMA node locality for PCI devices (#225 thanks @fromanirh)
- Gather full PCI tree including bridge devices in ghw snapshots (#224 thanks @fromanirh)
- Add
ghw.pci.LookupDevice
(#240 thanks @fromanirh) - Add baseboard product lookup on linux and windows (#242 thanks @UnityDG)
- Collect GPU data in ghw snapshots (#243 thanks @fromanirh)
Bug Fixes
- Don't leak tmpdir when testing (#237 thanks @fromanirh)
- Fix directory leakage for snapshots (#236 thanks @marcel-apf)
Cleanups
- Modernize error detection (#233 thanks @fromanirh)
v0.7.0
Features
- Add UUID to Partition (#197, thanks @schinmai-akamai)
- Use sysfs as primary method to fetch total physical memory (#198, thanks @cclerget)
- Break out snapshotting functionality into own package (#202, #205, thanks @fromanirh)
- Capture memory, CPU and NUMA topology in snapshot (#203, #204, thanks @fromanirh)
- Add PCI device information to
ghwc
(#209) - Add
ghw.WithDisableWarnings()
helper (#216, thanks @fromanirh) - Add PCI device revision number (#219, thanks @pearsonk)
Bug Fixes
- Unit tests for Option (#206, thanks @fromanirh)
- Fix PCI JSON/YAML marshalling (#210, thanks @fromanirh)
- Fall back to ID_SERIAL if ID_SERIAL_SHORT is missing (#217)
Cleanups
- Separation of different resources into different packages (#193)
- Removed support for dep and Go <1.13
v0.6.1
Bug fixes
- Windows memory: Memory now properly (#176) calculated for
total_physical_bytes
andtotal_usable_bytes
. Added documentation (#188) to clearly explain the difference betweentotal_usable_bytes
and the transient "available memory amount" (whichghw
does not look at) - Windows block devices: Name gathering now looks for "ssd" in Caption field to determine SSD drive type (#177). Remove unnecessary "/dev" prefix (#165)
- WMI for nil types: Fixed issue related to
<nil>
types being returned from WMI/WQL queries for non-pointer receiver types (#189)
v0.6.0
Features
- Windows support (@KingRial, #9): CPU, memory, block, chassis, bios, product and network modules now supported on Windows.
ghw.Disk.IsRemovable
(@thetravischannel): Added new boolean attribute toghw.Disk
struct to represent if the disk drive is removable.- Diagnostic snapshot (@jaypipes, #66): Added new
ghw-snapshot
command (currently Linux-only) that builds a static filesystem snapshot into a tarball and a script (hack/run-against-snapshot.sh
) that will mount the snapshot in a Docker container and runghwc
against it for testing/diagnostic purposes