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

dev-doctor: Bump minimum hub version requirement for backporting #16734

Merged
merged 1 commit into from Jul 8, 2021

Conversation

twpayne
Copy link
Contributor

@twpayne twpayne commented Jul 1, 2021

Backporting scripts need a version of github.com/github/hub that support
the api command. The version of hub distributed with Ubuntu 20.04 LTS is
2.7.0, which is too old. Bump the minimum hub version to 2.14 as this is
definitely new enough and was released 18 months ago.

Signed-off-by: Tom Payne tom@isovalent.com

@twpayne twpayne added release-note/misc This PR makes changes that have no direct user impact. area/build Anything to do with the build, more general then area/CI labels Jul 1, 2021
@twpayne twpayne requested a review from a team as a code owner July 1, 2021 11:45
@twpayne twpayne requested a review from aditighag July 1, 2021 11:45
@@ -187,7 +187,7 @@ func rootCmdRun(cmd *cobra.Command, args []string) {
ifNotFound: checkError,
versionArgs: []string{"--version"},
versionRegexp: regexp.MustCompile(`hub\s+version\s+(\d+.\d+\.\d+)`),
minVersion: &semver.Version{Major: 2, Minor: 0, Patch: 0},
minVersion: &semver.Version{Major: 2, Minor: 14, Patch: 0},
Copy link
Member

Choose a reason for hiding this comment

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

While at it, shall we also suggest steps to install this particular version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea - added hint.

Backporting scripts need a version of github.com/github/hub that support
the api command. The version of hub distributed with Ubuntu 20.04 LTS is
2.7.0, which is too old. Bump the minimum hub version to 2.14 as this is
definitely new enough and was released 18 months ago.

Signed-off-by: Tom Payne <tom@isovalent.com>
@twpayne twpayne force-pushed the pr/twpayne/dev-doctor-backporting-hub branch from 56c951b to 67846ac Compare July 1, 2021 16:04
@@ -187,7 +187,8 @@ func rootCmdRun(cmd *cobra.Command, args []string) {
ifNotFound: checkError,
versionArgs: []string{"--version"},
versionRegexp: regexp.MustCompile(`hub\s+version\s+(\d+.\d+\.\d+)`),
minVersion: &semver.Version{Major: 2, Minor: 0, Patch: 0},
minVersion: &semver.Version{Major: 2, Minor: 14, Patch: 0},
hint: `Download the latest version from https://github.com/github/hub/releases.`,
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't seem to have installation steps. Perhaps this link - https://github.com/github/hub? I'll leave it to you.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The https://github.com/github/hub link actually contains incorrect installation steps for us. It recommends installing hub with your distro's package manager, which will generally get you a version of hub that's too old.

@twpayne twpayne added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jul 8, 2021
@aditighag aditighag merged commit 817d1e8 into master Jul 8, 2021
@aditighag aditighag deleted the pr/twpayne/dev-doctor-backporting-hub branch July 8, 2021 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Anything to do with the build, more general then area/CI ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants