From eb78ac0dcb73b2f5a1368d9c7e1372ff0e67e9ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Mon, 23 Aug 2021 18:08:09 +0200 Subject: [PATCH] Require Go 1.16+ --- .github/CONTRIBUTING.md | 3 +-- .github/workflows/go.yml | 21 ++------------------- .github/workflows/lint.yml | 4 ++-- .github/workflows/releases.yml | 4 ++-- docs/source.md | 2 +- go.mod | 2 +- 6 files changed, 9 insertions(+), 27 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index d48b17ae2..3b2584063 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -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` diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 1d9613f04..226050ea9 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c727b55b6..78d94c78e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index 3d975a0d5..79e150113 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -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 diff --git a/docs/source.md b/docs/source.md index 17e6b0185..a8225c371 100644 --- a/docs/source.md +++ b/docs/source.md @@ -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 diff --git a/go.mod b/go.mod index 1fe5daf63..460ac97b3 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/cli/cli -go 1.13 +go 1.16 require ( github.com/AlecAivazis/survey/v2 v2.2.14