prometheus / procfs

procfs provides functions to retrieve system, kernel and process metrics from the pseudo-filesystem proc.
Apache License 2.0
755 stars 311 forks source link

*: `s/(%v|%s)/%w` and use `go1.20` #617

Closed rexagod closed 2 months ago

rexagod commented 3 months ago

The %w verb was introduced in go1.20 which allows for error wrapping. However, even though the minimum supported version was specified as go1.19 there are already sparse occurences of the %w verb throughout the codebase. Hence it's safe to move the minimum supported version to go1.20 since its constructs have been in use within the repository for a while now.

Refer: https://go.dev/doc/go1.20#errors Fixes: #519 Signed-off-by: Pranshu Srivastava rexagod@gmail.com

discordianfish commented 3 months ago

@rexagod actually there are still a bunch of test failures.