Merge pull request #4175 from cli/bump-go

Require Go 1.16+
This commit is contained in:
Mislav Marohnić 2021-08-23 18:41:40 +02:00 committed by GitHub
commit 351cd622e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 27 deletions

View file

@ -23,8 +23,7 @@ Please avoid:
## Building the project
Prerequisites:
- Go 1.13+ for building the binary
- Go 1.15+ for running the test suite
- Go 1.16+
Build with:
* Unix-like systems: `make`

View file

@ -9,10 +9,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go 1.15
- name: Set up Go 1.16
uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: 1.16
- name: Check out code
uses: actions/checkout@v2
@ -25,20 +25,3 @@ jobs:
- name: Build
run: go build -v ./cmd/gh
build-minimum:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v2
with:
go-version: 1.13
- name: Check out code
uses: actions/checkout@v2
- name: Build
env:
CGO_ENABLED: '0'
run: go build -v ./cmd/gh

View file

@ -16,10 +16,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.15
- name: Set up Go 1.16
uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: 1.16
- name: Check out code
uses: actions/checkout@v2

View file

@ -11,10 +11,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go 1.15
- name: Set up Go 1.16
uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: 1.16
- name: Generate changelog
run: |
echo "GORELEASER_CURRENT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

View file

@ -1,6 +1,6 @@
# Installation from source
0. Verify that you have Go 1.13+ installed
0. Verify that you have Go 1.16+ installed
```sh
$ go version

2
go.mod
View file

@ -1,6 +1,6 @@
module github.com/cli/cli
go 1.13
go 1.16
require (
github.com/AlecAivazis/survey/v2 v2.2.14