From 2e6493c8bbe968f8a181bbb371befdc3715e4330 Mon Sep 17 00:00:00 2001 From: chenrui Date: Fri, 20 Dec 2019 16:35:11 -0500 Subject: [PATCH] feat: Bump golang to latest v1.13 (#133) --- .github/workflows/build.yaml | 12 ++++++------ .github/workflows/prerelease.yaml | 4 ++-- .github/workflows/release.yaml | 4 ++-- README.md | 4 ++-- go.mod | 2 ++ 5 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 14aa084..c8b4b56 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -11,10 +11,10 @@ jobs: name: Validate runs-on: ubuntu-latest steps: - - name: Set up Go 1.12 + - name: Set up Go 1.13.x uses: actions/setup-go@v1 with: - go-version: 1.12 + go-version: 1.13.x id: go - name: Check out code into the Go module directory @@ -37,10 +37,10 @@ jobs: name: Test runs-on: ubuntu-latest steps: - - name: Set up Go 1.12 + - name: Set up Go 1.13.x uses: actions/setup-go@v1 with: - go-version: 1.12 + go-version: 1.13.x id: go - name: Check out code into the Go module directory @@ -53,10 +53,10 @@ jobs: name: Build runs-on: ubuntu-latest steps: - - name: Set up Go 1.12 + - name: Set up Go 1.13.x uses: actions/setup-go@v1 with: - go-version: 1.12 + go-version: 1.13.x id: go - name: Check out code into the Go module directory diff --git a/.github/workflows/prerelease.yaml b/.github/workflows/prerelease.yaml index cbea084..5d503b0 100644 --- a/.github/workflows/prerelease.yaml +++ b/.github/workflows/prerelease.yaml @@ -10,10 +10,10 @@ jobs: name: Pre-Release runs-on: ubuntu-latest steps: - - name: Set up Go 1.12 + - name: Set up Go 1.13.x uses: actions/setup-go@v1 with: - go-version: 1.12 + go-version: 1.13.x id: go - name: Check out code into the Go module directory diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ed6fbaa..02e4205 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -11,10 +11,10 @@ jobs: name: Release runs-on: ubuntu-latest steps: - - name: Set up Go 1.12 + - name: Set up Go 1.13.x uses: actions/setup-go@v1 with: - go-version: 1.12 + go-version: 1.13.x id: go - name: Check out code into the Go module directory diff --git a/README.md b/README.md index 65bb958..50c3570 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ If you are a Mac OS X user, you can use [Homebrew](https://brew.sh): brew install terraform-docs ``` -**NOTE:** please use the latest go to do this, ideally go 1.12.9 or greater. +**NOTE:** please use the latest go to do this, ideally go 1.13.5 or greater. This will put `terraform-docs` in `$(go env GOPATH)/bin`. If you encounter the error `terraform-docs: command not found` after installation then you may need to either add that directory to your `$PATH` as shown [here](https://golang.org/doc/code.html#GOPATH) or do a manual installation by cloning the repo and run `make build` from the repository which will put `terraform-docs` in: @@ -101,7 +101,7 @@ terraform-docs markdown document ./examples ## Development Requirements -- Go 1.12+ +- Go 1.13+ - [git-chlog](https://github.com/git-chglog/git-chglog) - [golangci-lint](https://github.com/golangci/golangci-lint) diff --git a/go.mod b/go.mod index 3080822..d257556 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,7 @@ module github.com/segmentio/terraform-docs +go 1.13 + require ( github.com/hashicorp/terraform-config-inspect v0.0.0-20191212124732-c6ae6269b9d7 github.com/spf13/cobra v0.0.5