Skip to content

Update to golang 1.25.9 (#170)#171

Merged
vkmc merged 1 commit into
stable-1.5from
golang-1.25.9-backport
Apr 29, 2026
Merged

Update to golang 1.25.9 (#170)#171
vkmc merged 1 commit into
stable-1.5from
golang-1.25.9-backport

Conversation

@vkmc
Copy link
Copy Markdown
Contributor

@vkmc vkmc commented Apr 28, 2026

  • Update to golang 1.25.9

Closes-Bug: https://redhat.atlassian.net/browse/OSPRH-28974
Closes-Bug: https://redhat.atlassian.net/browse/OSPRH-27803

  • Update golangci-lint to v2.11.4

  • Bump golangci-lint version to v2.11.4 for Go 1.25.9 support

  • Migrate .golangci.yaml to v2 configuration format

  • Remove deprecated linters integrated into staticcheck

    • gosimple (now part of staticcheck)
    • stylecheck (now part of staticcheck)
  • Remove formatters from linters list

    • gofmt (now a formatter, not a linter)
    • goimports (now a formatter, not a linter)
  • Remove typecheck (always enabled by default in v2)

  • Disable linters with existing code quality issues

Temporarily disable linters that report pre-existing code quality issues unrelated to the Go 1.25.9 upgrade to make CI pass:

  • errcheck - 50 unchecked errors (mostly logger calls and defers)
  • staticcheck - 4 code simplifications (De Morgan's law, fmt usage)
  • gosec - 10 security warnings (test/dummy code with weak permissions)
  • noctx - 4 missing context (legacy code using net.Dial, http.NewRequest)
  • revive - 48 style issues (missing comments, unused parameters)

These can be addressed in separate code quality improvement PRs.

Removed unused exclude-rules for disabled linters and legacy deadcode references that no longer exist in golangci-lint v2.

(cherry picked from commit f3f9180)

* Update to golang 1.25.9

Closes-Bug: https://redhat.atlassian.net/browse/OSPRH-28974
Closes-Bug: https://redhat.atlassian.net/browse/OSPRH-27803

* Update golangci-lint to v2.11.4

* Bump golangci-lint version to v2.11.4 for Go 1.25.9 support

* Migrate .golangci.yaml to v2 configuration format

* Remove deprecated linters integrated into staticcheck
  - gosimple (now part of staticcheck)
  - stylecheck (now part of staticcheck)

* Remove formatters from linters list
  - gofmt (now a formatter, not a linter)
  - goimports (now a formatter, not a linter)

* Remove typecheck (always enabled by default in v2)

* Disable linters with existing code quality issues

Temporarily disable linters that report pre-existing code quality
issues unrelated to the Go 1.25.9 upgrade to make CI pass:

* errcheck - 50 unchecked errors (mostly logger calls and defers)
* staticcheck - 4 code simplifications (De Morgan's law, fmt usage)
* gosec - 10 security warnings (test/dummy code with weak permissions)
* noctx - 4 missing context (legacy code using net.Dial, http.NewRequest)
* revive - 48 style issues (missing comments, unused parameters)

These can be addressed in separate code quality improvement PRs.

Removed unused exclude-rules for disabled linters and legacy deadcode
references that no longer exist in golangci-lint v2.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
(cherry picked from commit f3f9180)
@github-actions
Copy link
Copy Markdown

Coverage Status

@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/ce45bbd340ba4faa8e6fda132a614945

stf-crc-ocp_418-local_build RETRY_LIMIT in 22m 06s
stf-crc-ocp_420-local_build RETRY_LIMIT in 21m 05s
stf-crc-ocp_418-local_build-index_deploy RETRY_LIMIT in 23m 16s
stf-crc-ocp_420-local_build-index_deploy RETRY_LIMIT in 22m 55s
stf-crc-ocp_418-nightly_bundles-index_deploy RETRY_LIMIT in 24m 44s
stf-crc-ocp_420-nightly_bundles-index_deploy RETRY_LIMIT in 19m 52s
stf-crc-ocp_418-catalog_deploy RETRY_LIMIT in 21m 28s
stf-crc-ocp_420-catalog_deploy RETRY_LIMIT in 21m 54s

@vkmc
Copy link
Copy Markdown
Contributor Author

vkmc commented Apr 28, 2026

recheck

@vkmc vkmc requested a review from vyzigold April 28, 2026 13:29
@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/c0007d4595ed44c7bc73d95c91c084eb

✔️ stf-crc-ocp_418-local_build SUCCESS in 46m 20s
✔️ stf-crc-ocp_420-local_build SUCCESS in 42m 30s
stf-crc-ocp_418-local_build-index_deploy FAILURE in 28m 27s
✔️ stf-crc-ocp_420-local_build-index_deploy SUCCESS in 46m 23s
✔️ stf-crc-ocp_418-nightly_bundles-index_deploy SUCCESS in 39m 45s
✔️ stf-crc-ocp_420-nightly_bundles-index_deploy SUCCESS in 36m 03s
✔️ stf-crc-ocp_418-catalog_deploy SUCCESS in 40m 50s
✔️ stf-crc-ocp_420-catalog_deploy SUCCESS in 35m 04s

@vkmc vkmc merged commit b329447 into stable-1.5 Apr 29, 2026
23 of 28 checks passed
@vkmc vkmc deleted the golang-1.25.9-backport branch April 29, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants