-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Merged
Merged
Update to go1.21
#1351
Changes from 9 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
2f422d1
go1.21 + bullseye
timvaillancourt 5b67a1a
go1.21 + bullseye pt 2
timvaillancourt b713b2e
checkout before setup-go
timvaillancourt e2d4930
go fmt
timvaillancourt ca4feaf
Use golangci-lint 1.54.2 to support go1.21
timvaillancourt 86c8670
stop using io/ioutil to make linter happy
timvaillancourt af48e0f
Fix typo
timvaillancourt c04407d
Lint
timvaillancourt 7632fd8
revert replica-tests CI to ubuntu 20 due to linker errors
timvaillancourt c529eca
Update ensure-go-installed
timvaillancourt 5bd8bb7
use `ubuntu-latest` for `ci` job
timvaillancourt c330952
stretch -> bullseye
timvaillancourt 07416ea
Merge branch 'master' into go1.21
timvaillancourt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
ENV GOPATH=/tmp/go | ||
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.
|
||
|
||
RUN apt-get install -y curl | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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][1789]' | ||
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 sucks. But it will 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.mod
to find a version. Less things to update 🚀