Skip to content
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

⚠️ Update to gophercloud 2.0.0-beta2 #1569

Merged
merged 2 commits into from
Mar 4, 2024

Conversation

dtantsur
Copy link
Member

Although the current version is specified as 1.5.1, it's actually
a commit somewhere in the 2.0 branch. This change brings us to
a more specific version.

2.0.0-beta2 introduced a requirement on Context for all calls.

Signed-off-by: Dmitry Tantsur [email protected]

Although the current version is specified as 1.5.1, it's actually
a commit somewhere in the 2.0 branch. This change brings us to
a more specific version.

2.0.0-beta2 introduced a requirement on Context for all calls.

Signed-off-by: Dmitry Tantsur <[email protected]>
@metal3-io-bot metal3-io-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 29, 2024
@dtantsur
Copy link
Member Author

/test metal3-bmo-e2e-test-pull
/test-centos-e2e-integration-main

Signed-off-by: Dmitry Tantsur <[email protected]>
@dtantsur
Copy link
Member Author

/test metal3-bmo-e2e-test-pull

3 similar comments
@dtantsur
Copy link
Member Author

/test metal3-bmo-e2e-test-pull

@dtantsur
Copy link
Member Author

/test metal3-bmo-e2e-test-pull

@dtantsur
Copy link
Member Author

/test metal3-bmo-e2e-test-pull

@@ -1,11 +1,11 @@
module github.com/metal3-io/baremetal-operator

go 1.21
go 1.21.6
Copy link
Member

Choose a reason for hiding this comment

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

Any specific reason to pin it to patch version?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is apparently the new way Go does it starting with 1.21. I haven't done this change - go mod tidy does it (based on Gophercloud's go.mod, I believe).

Copy link
Member

Choose a reason for hiding this comment

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

Interesting , I didnt face it when I bumped it to go 1.21, I have to check it again.

Copy link
Member

Choose a reason for hiding this comment

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

This is probably because it is pinned in Gophercloud v2 as well, https://github.com/gophercloud/gophercloud/blob/master/go.mod#L3, When I do go mod tidy in CAPM3 main, it doesn't require a patch version. Even if you do go mod tidy in the apis dir, this wont be needed. Now I am thinking would this be always like this that we have to keep this patch version in sync with Gophercloud which is not desirable IMO, but what else can we do ? May be as long as this version is >= gophercloud version, it would work.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is how I read the discussion at golang/go#63370, yes. But we might be forced to go to 1.22.0 rather than 1.22 in the future. We'll see.

Copy link
Member

@kashifest kashifest left a comment

Choose a reason for hiding this comment

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

/approve

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kashifest

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@metal3-io-bot metal3-io-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 29, 2024
@kashifest
Copy link
Member

/test-centos-e2e-integration-main

@elfosardo
Copy link
Member

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 4, 2024
@metal3-io-bot metal3-io-bot merged commit 31dcd10 into metal3-io:main Mar 4, 2024
20 checks passed
@dtantsur dtantsur deleted the gophercloud-2 branch March 4, 2024 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants