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

Automate Go and GHC version upgrades #1388

Closed
wants to merge 5 commits into from

Conversation

BanzaiMan
Copy link
Contributor

Currently, we rely on travis-ci/gimme to provide the most up-to-date list of Go releases to use. This requires manual intervention whenever there is a new release. (For example, Go 1.10.2 was released on May 1, 2018, 24 days ago, but we have users asking for it now travis-ci/travis-ci#9652.)

This is cumbersome and unnecessary.

We automate this process by consulting https://go.googlesource.com/go/+refs?format=JSON and discovering all most recent releases 1.2.x and up.

Then, in exactly one job which runs the assets:precompile Rake task, we check if any of the files in public/version-aliases is updated, and if so, create a Pull Request to this repository to be reviewed and merged.

BanzaiMan added 4 commits May 25, 2018 00:55
Instead of manually updating public/version-aliases/go.json
with each Go release, we update the necessary data using data
provided by the Go lang source itself.

Notice that some finessing is necessary because Go lang's git
repository does not retrun valid JSON data.
See golang/go#25548 (comment)
Instead of relying on a future env var
${dirty[@]} results in embedded string termination, which results
in command error (with bad pathspec)
@BanzaiMan
Copy link
Contributor Author

Specs need fixing.

@philpennock
Copy link

Note that if Travis were to pull in gimme 1.5.0, you could just ask gimme to --resolve the identifier for you and the work would be done.

@BanzaiMan
Copy link
Contributor Author

I think this is no longer necessary. @meatballhat Could you comment?

@meatballhat
Copy link
Contributor

@BanzaiMan I think this can be safely closed 👍

@BanzaiMan BanzaiMan closed this Oct 24, 2018
@BanzaiMan BanzaiMan deleted the ha-go-version-auto-update branch October 24, 2018 18:19
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.

3 participants