Conversation
| // Copyright The OpenTelemetry Authors | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| //nolint:gci // import orders from `make generate` |
There was a problem hiding this comment.
This was originally added as part of #41759 to suppress linter warnings about the deprecated aws-sdk-go v1, but it looks like it's not needed and the other nolint directives are enough. Keeping this line gives lint errors, removing it allows the whitespace change below in this file.
|
Failing scope test looks to be unrelated to this PR, I've filed #45028 |
|
A huge amount of files here are because of generated code from mdatagen. Should there be a PR that updates the templates to align with |
I think that's the ideal solution, I've filed open-telemetry/opentelemetry-collector#14306. I will say though (with my very limited understanding of mdatagen) the logic in the templates could get considerably more complex just to save us from running a couple Edit: I just realized I can at least do a quick run through of files being changed here, and if any imports are out of order in Edit 2: I did some more digging, I don't believe this is possible with current mdatagen functionality, given that import orders are not consistent across repos. Since |
Description
Codewise, this PR is simply the result of running
make gogcilocally. I've also added it as a check on PRs inbuild-and-testto ensure it's been run by users, and added it to everymake generatecall to hopefully make it so developers don't need to manually run it.