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

GO: Fix latest-n release history from GCS #176

Merged
merged 2 commits into from
Oct 5, 2020
Merged

Conversation

fweikert
Copy link
Member

@fweikert fweikert commented Oct 2, 2020

Previously the latest-n version identifier could point at incorrect Bazel versions since unreleased versions (i.e. release candidates) were not always discarded from the version history.

Since checking the complete Bazel history (starting with 0.1.0) is costly, this change also adds the lastN parameter to core.ReleaseRepo.GetReleaseVersions(). As a result, the code only examines as few versions as possible.

Fixes #171

Previously the `latest-n` version identifier could point at incorrect Bazel versions since unreleased versions (i.e. release candidates) were not always discarded from the version history.

Since checking the complete Bazel history (starting with 0.1.0) is costly, this change also adds the lastN parameter to core.ReleaseRepo.GetReleaseVersions(). As a result, the code only examines as few versions as possible.

Fixes bazelbuild#171
@fweikert fweikert requested a review from philwo October 2, 2020 16:02
repositories/gcs.go Outdated Show resolved Hide resolved
@fweikert fweikert merged commit dcf4c74 into bazelbuild:master Oct 5, 2020
@fweikert fweikert deleted the rc branch October 5, 2020 11:57
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.

Bazelisk-Go: Version history from GCS is incorrect wrt release candidates
2 participants