Skip to content

Commit

Permalink
Miscellaneous Go 1.17 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Aug 22, 2021
1 parent 5445841 commit ed95a58
Show file tree
Hide file tree
Showing 7 changed files with 127 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .devcontainer/Dockerfile
@@ -1,6 +1,4 @@
# [Choice] Go version: 1, 1.15, 1.14
# FIXME remove dev- when 1.16 container is published
ARG VARIANT=dev-1.16
ARG VARIANT=dev-1.17
FROM mcr.microsoft.com/vscode/devcontainers/go:${VARIANT}

# [Optional] Uncomment this section to install additional OS packages.
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16.7
go-version: 1.17.0
- name: Checkout
uses: actions/checkout@v2
- name: Cache Go modules
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16.7
go-version: 1.17.0
- name: Checkout
uses: actions/checkout@v2
- name: Cache Go modules
Expand All @@ -148,7 +148,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16.7
go-version: 1.17.0
- name: Checkout
uses: actions/checkout@v2
- name: Cache Go modules
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16.7
go-version: 1.17.0
- name: Checkout
uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion docs/CONTRIBUTING.md
Expand Up @@ -20,7 +20,7 @@ chezmoi's source code.

## Developing locally

chezmoi requires Go 1.16 or later.
chezmoi requires Go 1.17 or later.

chezmoi is a standard Go project, using standard Go tooling, with a few extra
tools. Ensure that these extra tools are installed with:
Expand Down
2 changes: 1 addition & 1 deletion docs/FAQ.md
Expand Up @@ -370,7 +370,7 @@ lock include `diff`, `status`, and `verify`.

## I'm getting errors trying to build chezmoi from source

chezmoi requires Go version 1.16 or later. You can check the version of Go with:
chezmoi requires Go version 1.17 or later. You can check the version of Go with:

```console
$ go version
Expand Down
2 changes: 1 addition & 1 deletion docs/INSTALL.md
Expand Up @@ -102,4 +102,4 @@ Download, build, and install chezmoi for your system:
$ go install github.com/twpayne/chezmoi@latest
```

Building chezmoi requires Go 1.16 or later.
Building chezmoi requires Go 1.17 or later.
118 changes: 118 additions & 0 deletions go.sum

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions internal/cmds/lint-whitespace/main.go
Expand Up @@ -23,6 +23,7 @@ var (
regexp.MustCompile(`\Aassets/chezmoi\.io/themes/book\z`),
regexp.MustCompile(`\Aassets/scripts/install\.ps1\z`),
regexp.MustCompile(`\Acompletions/chezmoi\.ps1\z`),
regexp.MustCompile(`\Adist\z`),
}
crlfLineEndingRx = regexp.MustCompile(`\r\z`)
trailingWhitespaceRx = regexp.MustCompile(`\s+\z`)
Expand Down

0 comments on commit ed95a58

Please sign in to comment.