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 github.com/google/go-github to v52 #4915

Merged
merged 1 commit into from
May 17, 2023
Merged

Conversation

gilbertsoft
Copy link
Member

@gilbertsoft gilbertsoft commented May 16, 2023

The Issue

The used package github.com/google/go-github is very outdated and must be updated.

How This PR Solves The Issue

This PR updates the package and makes minor changes in the code because of some breaking changes.

Manual Testing Instructions

Automated Testing Overview

Related Issue Link(s)

Release/Deployment Notes

@github-actions
Copy link

@gilbertsoft gilbertsoft marked this pull request as ready for review May 16, 2023 17:57
@gilbertsoft gilbertsoft requested review from a team as code owners May 16, 2023 17:57
Copy link
Member

@rfay rfay left a comment

Choose a reason for hiding this comment

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

My intent was that you just upgrade to current go-github. Please don't specify 52 in there. Maybe there's something I don't understand? Just using go-github should get you the right version, and it will be locked until we upgrade it again.

go get -u github.com/google/go-github - no changes to imports should be required.

@gilbertsoft
Copy link
Member Author

gilbertsoft commented May 16, 2023

My intent was that you just upgrade to current go-github. Please don't specify 52 in there. Maybe there's something I don't understand? Just using go-github should get you the right version, and it will be locked until we upgrade it again.

go get -u github.com/google/go-github - no changes to imports should be required.

That does not work with the new modules feature of go see https://github.com/google/go-github#installation or we have to disable modules which I would not recommend in the first place.

@rfay
Copy link
Member

rfay commented May 16, 2023

OK, and I see the v52 is what they suggest.

Don't know what they could be saying about modules being enabled; we never used it any time in its history without modules enabled.

@rfay
Copy link
Member

rfay commented May 16, 2023

This looks fine to me then and can be merged after ddev get and the version/update checking has been manually tested. Just let me know.

@rfay
Copy link
Member

rfay commented May 16, 2023

I manually tested ddev get --list and update check in root.go, and both seemed right.

@gilbertsoft
Copy link
Member Author

OK, and I see the v52 is what they suggest.

Don't know what they could be saying about modules being enabled; we never used it any time in its history without modules enabled.

As far as I understand modules is a feature since 1.13 and enabled by default. But not all packages support it by default that's why some packages are requested without the versin suffix.

@rfay rfay merged commit 4bf112e into master May 17, 2023
16 checks passed
@rfay rfay deleted the task/update-go-github branch May 17, 2023 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants