You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@onyn I can't seem to replicate this issue on my machine:
> go run cmd/ghwc/main.go baseboard
WARN: Unable to read board_serial: open /sys/class/dmi/id/board_serial: permission denied
baseboard vendor=System76 version=thelio-mira-b4.1 product=Thelio Mira
> GHW_DISABLE_WARNINGS=1 go run cmd/ghwc/main.go baseboard
baseboard vendor=System76 version=thelio-mira-b4.1 product=Thelio Mira
> GHW_LOG_LEVEL=debug go run cmd/ghwc/main.go baseboard
DEBUG: reading from "/sys/class/dmi/id/board_asset_tag"
DEBUG: reading from "/sys/class/dmi/id/board_serial"
WARN: Unable to read board_serial: open /sys/class/dmi/id/board_serial: permission denied
DEBUG: reading from "/sys/class/dmi/id/board_vendor"
DEBUG: reading from "/sys/class/dmi/id/board_version"
DEBUG: reading from "/sys/class/dmi/id/board_name"
baseboard vendor=System76 version=thelio-mira-b4.1 product=Thelio Mira
> GHW_LOG_LEVEL=error go run cmd/ghwc/main.go baseboard
baseboard vendor=System76 version=thelio-mira-b4.1 product=Thelio Mira
Would you mind sharing the source code of your ./go_app binary so I can see if there's something about the way you're setting up ghw?
Activity
jaypipes commentedon Mar 31, 2026
@onyn thanks very much for your bug report. I'll look into this ASAP.
onyn commentedon Mar 31, 2026
Found note in 600c188:
This also doesn't work. Warnings still here when
GHW_LOG_LEVEL=error.jaypipes commentedon Apr 1, 2026
@onyn I can't seem to replicate this issue on my machine:
Would you mind sharing the source code of your
./go_appbinary so I can see if there's something about the way you're setting upghw?onyn commentedon Apr 2, 2026
When I uncomment
ghw.ContextFromEnv(), thenGHW_DISABLE_WARNINGSworks as intended.use ContextFromEnv() when no args passed to Info()
jaypipes commentedon Apr 2, 2026
@onyn sorry about this. #460 should fix it.
jaypipes commentedon Apr 2, 2026
@onyn release v0.24.0 has been cut and contains the fix. please let me know if you experience any further issues and thanks again for your bug report!
onyn commentedon Apr 2, 2026
Now it works. Thanks.