Skip to content

Don't try to use %w in testing package logging functions#1250

Merged
rhatdan merged 1 commit intocontainers:mainfrom
nalind:percentw
Jun 1, 2022
Merged

Don't try to use %w in testing package logging functions#1250
rhatdan merged 1 commit intocontainers:mainfrom
nalind:percentw

Conversation

@nalind
Copy link
Copy Markdown
Member

@nalind nalind commented Jun 1, 2022

Go 1.18's testing package is adamant that it doesn't support the %w specifier for wrapping errors, which makes sense because it outputs text rather than producing an error object like fmt.Errorf() does. Change attempts to use %w to %v.

Go 1.18's testing package is adamant that it doesn't support the %w
specifier for wrapping errors, which makes sense because it outputs
text rather than producing an error object like fmt.Errorf() does.
Change attempts to use %w to %v.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
@nalind
Copy link
Copy Markdown
Member Author

nalind commented Jun 1, 2022

This should fix errors encountered in https://github.com/containers/storage/pull/1248/checks?check_run_id=6627449929.

@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Jun 1, 2022

LGTM

@rhatdan rhatdan merged commit 34d25cc into containers:main Jun 1, 2022
@nalind nalind deleted the percentw branch June 1, 2022 17:13
@TomSweeneyRedHat
Copy link
Copy Markdown
Member

LGTM
fwiw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants