-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Update to go1.21
#1351
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 go1.21
#1351
Changes from all commits
2f422d1
5b67a1a
b713b2e
e2d4930
ca4feaf
86c8670
af48e0f
c04407d
7632fd8
c529eca
5bd8bb7
c330952
07416ea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,8 @@ | ||
| FROM golang:1.17-stretch | ||
|
|
||
| # Update stretch repositories | ||
| RUN sed -i -e 's/deb.debian.org/archive.debian.org/g' \ | ||
| -e 's|security.debian.org|archive.debian.org/|g' \ | ||
| -e '/stretch-updates/d' /etc/apt/sources.list | ||
| FROM golang:1.21-bullseye | ||
|
|
||
| RUN apt-get update | ||
| RUN apt-get install -y ruby ruby-dev rubygems build-essential | ||
| RUN gem install --no-ri --no-rdoc fpm | ||
| RUN gem install fpm | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| ENV GOPATH=/tmp/go | ||
|
|
||
| RUN apt-get install -y curl | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,6 @@ | ||
| FROM golang:1.17-stretch | ||
| FROM golang:1.21-bullseye | ||
| LABEL maintainer="[email protected]" | ||
|
|
||
| #Update stretch repositories | ||
| RUN sed -i -e 's/deb.debian.org/archive.debian.org/g' \ | ||
| -e 's|security.debian.org|archive.debian.org/|g' \ | ||
| -e '/stretch-updates/d' /etc/apt/sources.list | ||
|
|
||
| RUN apt-get update | ||
| RUN apt-get install -y lsb-release | ||
| RUN rm -rf /var/lib/apt/lists/* | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| module github.com/github/gh-ost | ||
|
|
||
| go 1.17 | ||
| go 1.21 | ||
|
|
||
| require ( | ||
| github.com/go-ini/ini v1.62.0 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| #!/bin/bash | ||
|
|
||
| PREFERRED_GO_VERSION=go1.17.11 | ||
| SUPPORTED_GO_VERSIONS='go1.1[567]' | ||
| PREFERRED_GO_VERSION=go1.21.5 | ||
| SUPPORTED_GO_VERSIONS='go1.[1-2][01789]' | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is horrible, but it will allow Soon we should only allow |
||
|
|
||
| GO_PKG_DARWIN=${PREFERRED_GO_VERSION}.darwin-amd64.pkg | ||
| GO_PKG_DARWIN_SHA=4f924c534230de8f0e1c7369f611c0310efd21fc2d9438b13bc2703af9dda25a | ||
| GO_PKG_DARWIN_SHA=d0f8ac0c4fb3efc223a833010901d02954e3923cfe2c9a2ff0e4254a777cc9cc | ||
|
|
||
| GO_PKG_LINUX=${PREFERRED_GO_VERSION}.linux-amd64.tar.gz | ||
| GO_PKG_LINUX_SHA=d69a4fe2694f795d8e525c72b497ededc209cb7185f4c3b62d7a98dd6227b3fe | ||
| GO_PKG_LINUX_SHA=841cced7ecda9b2014f139f5bab5ae31785f35399f236b8b3e75dff2a2978d96 | ||
|
|
||
| export ROOTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" | ||
| cd $ROOTDIR | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This lets the action use
go.modto find a version. Less things to update 🚀