-
Notifications
You must be signed in to change notification settings - Fork 50
Update references to info types #3206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This change is part of the following stack: Change managed by git-spice. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3206 +/- ##
==========================================
- Coverage 68.79% 68.77% -0.02%
==========================================
Files 336 336
Lines 43995 43995
==========================================
- Hits 30265 30259 -6
- Misses 12026 12030 +4
- Partials 1704 1706 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
return | ||
return n, err | ||
} | ||
|
||
raw := strings.TrimSuffix(string(p), "\n") | ||
level, raw := parseLevelFromRawString(raw) | ||
|
||
if level < w.desiredLevel { | ||
return | ||
return n, err | ||
} | ||
|
||
urn, raw := parseUrnFromRawString(raw) | ||
severity := logLevelToSeverity(level) | ||
|
||
err = w.sink.Log(w.ctx, severity, urn, raw) | ||
return | ||
return n, err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few other changes like this to fix local lint errors. CI must be using a less strict lint config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've seen this in pulumi/pulumi
upgrading to golangci-lint
2.5.0. This is because of a newer version of gofumpt
, which requires these return values now.
Continuation of #1879.
This updates our usage of
info
types to use the types directly instead oftheir aliases. This is a prerequisite to being able to mark the aliases as
deprecated.
Moving to the
info
package's shared API types allows consumers to linkagainst a significantly smaller surface area.