Skip to content

feat: Update the GolangCi-lint version#138

Merged
aramprice merged 1 commit intocloudfoundry:developfrom
ZPascal:update-golangci-linter-version
Mar 19, 2026
Merged

feat: Update the GolangCi-lint version#138
aramprice merged 1 commit intocloudfoundry:developfrom
ZPascal:update-golangci-linter-version

Conversation

@ZPascal
Copy link
Contributor

@ZPascal ZPascal commented Mar 15, 2026

Summary

  • Adjust all linting results

Copy link
Member

@aramprice aramprice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ZPascal thanks for tackling this cleanup!

I know generally we've added //nolint:... directives. I'm wondering if it's worth a quick scan of consumers of bosh-utils (in the CF org at least) to see if it's safe to address some of the issues with errors.New(), rather than dropping //nolint:....

@ZPascal
Copy link
Contributor Author

ZPascal commented Mar 18, 2026

@ZPascal thanks for tackling this cleanup!

I know generally we've added //nolint:... directives. I'm wondering if it's worth a quick scan of consumers of bosh-utils (in the CF org at least) to see if it's safe to address some of the issues with errors.New(), rather than dropping //nolint:....

Hi @aramprice, if we're not using nolint, it is a breaking change. -> It is also necessary to adapt the error message to follow ST1005.

BTW: The bosh-utils package is also used outside of the cf org.

@aramprice
Copy link
Member

BTW: The bosh-utils package is also used outside of the cf org.

I'm aware, I was thinking this might be a good litmus test. I also think it's risky as a consumer to depend on strings from errors ... and I think that risk is something that consumers of a library should assume. Also I realize lack of good typing in the library might make it impossible not to rely on error text.

Generally it would be great for us to reduce the need for //nolint:..., though the error format is more of a nit, than a structure code risk (like ignoring errors, say).

Also I'm good with the changes, as is.

@ZPascal
Copy link
Contributor Author

ZPascal commented Mar 18, 2026

BTW: The bosh-utils package is also used outside of the cf org.

I'm aware, I was thinking this might be a good litmus test. I also think it's risky as a consumer to depend on strings from errors ... and I think that risk is something that consumers of a library should assume. Also I realize lack of good typing in the library might make it impossible not to rely on error text.

Generally it would be great for us to reduce the need for //nolint:..., though the error format is more of a nit, than a structure code risk (like ignoring errors, say).

I'm on your side. It would be better to fix it. I've already fixed all lint issues on my end and will push it.

@ZPascal ZPascal requested a review from aramprice March 18, 2026 21:34
@github-project-automation github-project-automation bot moved this from Inbox to Pending Merge | Prioritized in Foundational Infrastructure Working Group Mar 19, 2026
@beyhan
Copy link
Member

beyhan commented Mar 19, 2026

@ZPascal could you please resolve the conflicts?

@ZPascal
Copy link
Contributor Author

ZPascal commented Mar 19, 2026

@ZPascal could you please resolve the conflicts?

I'll handle it.

@ZPascal ZPascal force-pushed the update-golangci-linter-version branch from 1fbec30 to a17ed23 Compare March 19, 2026 16:24
@aramprice aramprice merged commit b5a3cf1 into cloudfoundry:develop Mar 19, 2026
4 checks passed
@github-project-automation github-project-automation bot moved this from Pending Merge | Prioritized to Done in Foundational Infrastructure Working Group Mar 19, 2026
@aramprice
Copy link
Member

Thanks @ZPascal

@ZPascal ZPascal deleted the update-golangci-linter-version branch March 19, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants