Skip to content

Commit

Permalink
dev: Upgrade to go 1.18 (#223)
Browse files Browse the repository at this point in the history
* Upgrade to go 1.18

* go mod tidy
  • Loading branch information
caitlinelfring authored Aug 10, 2022
1 parent 92bb071 commit b92e612
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 383 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# [Choice] Go version: 1, 1.16, 1.15
ARG VARIANT=1.17
ARG VARIANT=1.18
FROM mcr.microsoft.com/vscode/devcontainers/go:0-${VARIANT}

# [Option] Install Node.js
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dockerfile": "Dockerfile",
"args": {
// Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.15
"VARIANT": "1.17",
"VARIANT": "1.18",
// Options
"INSTALL_NODE": "true",
"NODE_VERSION": "lts/*"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.18

- name: Install cob
run: curl -sfL https://raw.githubusercontent.com/knqyf263/cob/master/install.sh | sudo sh -s -- -b /usr/local/bin
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.18

- name: Pull new module version
# Based on andrewslotin/go-proxy-pull-action
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.17.x]
go-version: [1.18.x]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
name: Tests
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
name: Build
strategy:
matrix:
go-version: [1.17.x]
go-version: [1.18.x]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
lint:
strategy:
matrix:
go-version: [1.17.x]
go-version: [1.18.x]
name: Lint
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.18

- name: Create snapshot
uses: goreleaser/goreleaser-action@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.18

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-woke-usage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.17.x
go-version: 1.18.x

- run: go run cmd/docs/main.go docs/snippets

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/woke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.18

- uses: actions/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
name: 'woke'
entry: woke
args: [--exit-1-on-failure]
# The 'go' binary on your path must be at least version 1.17.
# The 'go' binary on your path must be at least version 1.18.
language: 'golang'
description: "Runs `woke`, building it from source on demand"
2 changes: 1 addition & 1 deletion dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

FROM golang:1.17
FROM golang:1.18

RUN apt-get update && apt-get install -y inotify-tools

Expand Down
2 changes: 1 addition & 1 deletion docs/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ script that is used, not the version of `woke` itself.)

Alternatively, you can tell `pre-commit` to build `woke` from source,
although this requires you and anyone working on your repository to have
`go` on your command search path and for it to be at least version 1.17:
`go` on your command search path and for it to be at least version 1.18:

```yaml
- repo: https://github.com/get-woke/woke
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/get-woke/woke

go 1.17
go 1.18

require (
github.com/caitlinelfring/go-env-default v1.1.0
Expand Down
368 changes: 0 additions & 368 deletions go.sum

Large diffs are not rendered by default.

0 comments on commit b92e612

Please sign in to comment.