Skip to content

[v2] Bump go#3630

Merged
mandre merged 12 commits intogophercloud:v2from
shiftstack:bump-go-v2
Feb 13, 2026
Merged

[v2] Bump go#3630
mandre merged 12 commits intogophercloud:v2from
shiftstack:bump-go-v2

Conversation

@mandre
Copy link
Copy Markdown
Contributor

@mandre mandre commented Feb 12, 2026

Bump go to a supported version.

This forces us to upgrade golangci-lint as well. We essentially backport #3385 and #3519.

@github-actions github-actions bot added v2 This PR targets v2 edit:dependencies This PR updates dependencies semver:patch No API change labels Feb 12, 2026
@github-actions github-actions bot added edit:networking This PR updates networking code edit:openstack This PR updates common OpenStack code edit:actions This PR updates GitHub Actions code edit:image This PR updates image code edit:orchestration This PR updates orchestration code edit:db This PR updates db code edit:loadbalancer This PR updates loadbalancer code edit:compute This PR updates compute code edit:keymanager This PR updates keymanager code edit:utils This PR updates utils code edit:messaging This PR updates messaging code edit:containerinfra This PR updates containerinfra code edit:objectstorage This PR updates objectstorage code edit:workflow This PR updates workflow code edit:sharedfilesystems This PR updates sharedfilesystems code edit:baremetal This PR updates baremetal code edit:gophercloud This PR updates common Gophercloud code edit:blockstorage This PR updates blockstorage code edit:identity This PR updates identity code edit:container This PR updates container code edit:baremetalintrospection This PR updates baremetalintrospection code edit:testinfra This PR updates testing infrastructure code labels Feb 12, 2026
@coveralls
Copy link
Copy Markdown

coveralls commented Feb 12, 2026

Coverage Status

coverage: 63.667% (+0.004%) from 63.663%
when pulling 040daad on shiftstack:bump-go-v2
into 976c367 on gophercloud:v2.

@mandre
Copy link
Copy Markdown
Contributor Author

mandre commented Feb 12, 2026

The fwaas jobs are broken and I'm fixing them with #3631.

Copy link
Copy Markdown
Contributor

@stephenfin stephenfin left a comment

Choose a reason for hiding this comment

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

There's a lot here but it's all pretty trivial linter-related stuff, with the only meaningful thing being the actual go bump (the $subject of the whole PR). This lgtm

@stephenfin
Copy link
Copy Markdown
Contributor

stephenfin commented Feb 12, 2026

#3632 is merged. Can you rebase this?

mandre and others added 12 commits February 12, 2026 17:38
Bump to to a supported version.
Done by bumping the version in the Makefile and running the
'golangci-lint migrate' command via podman as we do in the Makefile.

  podman run -t --rm -v $PWD:/app -w /app \
    golangci/golangci-lint:v2.1.6 \
    golangci-lint migrate

This yields a number of news error from staticcheck, listed below, which
we temporarily ignore pending a fix.

  S1038: should use fmt.Fprintf instead of fmt.Fprint(fmt.Sprintf(...))
  ST1005: error strings should not be capitalized
  ST1005: error strings should not end with punctuation or newlines
  ST1017: don't use Yoda conditions
  ST1019: package ".*" is being imported more than once
  ST1019(related information): other import of ".*"
  ST1023: should omit type .* from declaration; it will be inferred from the right-hand side
  QF1011: could omit type .* from declaration; it will be inferred from the right-hand side
  QF1001: could apply De Morgan's law
  QF1003: could use tagged switch on .*
  QF1004: could use strings.ReplaceAll instead
  QF1008: could remove embedded field ".*" from selector

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This looks complicated, but it's just a whole lot of sed invocations.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>

Conflicts:
	openstack/baremetal/v1/portgroups/results.go
	openstack/messaging/v2/messages/results.go
	openstack/messaging/v2/queues/results.go
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
More sed, along with some manual fixups.

  sed -i 's/fmt.Errorf("\([A-Z]\)/fmt.Errorf("\L\1/' \
    $(ag 'fmt.Errorf\("[A-Z]' -l)
  sed -i 's/fmt.Errorf("\(.*\)\.")/fmt.Errorf("\1")/' \
    $(ag 'fmt.Errorf\(' -l)
  sed -i 's/errors.New("\([A-Z]\)/errors.New("\L\1/' \
    $(ag 'errors.New\("[A-Z]' -l)
  sed -i 's/errors.New("\(.*\)\.")/errors.New("\1")/' \
    $(ag 'errors.New\(' -l)

(yes, that could have a one-liner but $complexity)

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
I'm not sure why this was disabled, but undisable it.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
@mandre mandre merged commit 6a37612 into gophercloud:v2 Feb 13, 2026
64 of 65 checks passed
@mandre mandre deleted the bump-go-v2 branch February 13, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

edit:actions This PR updates GitHub Actions code edit:baremetal This PR updates baremetal code edit:baremetalintrospection This PR updates baremetalintrospection code edit:blockstorage This PR updates blockstorage code edit:compute This PR updates compute code edit:container This PR updates container code edit:containerinfra This PR updates containerinfra code edit:db This PR updates db code edit:dependencies This PR updates dependencies edit:gophercloud This PR updates common Gophercloud code edit:identity This PR updates identity code edit:image This PR updates image code edit:keymanager This PR updates keymanager code edit:loadbalancer This PR updates loadbalancer code edit:messaging This PR updates messaging code edit:networking This PR updates networking code edit:objectstorage This PR updates objectstorage code edit:openstack This PR updates common OpenStack code edit:orchestration This PR updates orchestration code edit:sharedfilesystems This PR updates sharedfilesystems code edit:testinfra This PR updates testing infrastructure code edit:utils This PR updates utils code edit:workflow This PR updates workflow code semver:patch No API change v2 This PR targets v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants