Skip to content

Commit b92e612

Browse files
dev: Upgrade to go 1.18 (#223)
* Upgrade to go 1.18 * go mod tidy
1 parent 92bb071 commit b92e612

14 files changed

Lines changed: 15 additions & 383 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# [Choice] Go version: 1, 1.16, 1.15
2-
ARG VARIANT=1.17
2+
ARG VARIANT=1.18
33
FROM mcr.microsoft.com/vscode/devcontainers/go:0-${VARIANT}
44

55
# [Option] Install Node.js

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"dockerfile": "Dockerfile",
55
"args": {
66
// Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.15
7-
"VARIANT": "1.17",
7+
"VARIANT": "1.18",
88
// Options
99
"INSTALL_NODE": "true",
1010
"NODE_VERSION": "lts/*"

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Go
1919
uses: actions/setup-go@v3
2020
with:
21-
go-version: 1.17
21+
go-version: 1.18
2222

2323
- name: Install cob
2424
run: curl -sfL https://raw.githubusercontent.com/knqyf263/cob/master/install.sh | sudo sh -s -- -b /usr/local/bin

.github/workflows/go-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- uses: actions/setup-go@v3
1414
with:
15-
go-version: 1.17
15+
go-version: 1.18
1616

1717
- name: Pull new module version
1818
# Based on andrewslotin/go-proxy-pull-action

.github/workflows/go.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
test:
2020
strategy:
2121
matrix:
22-
go-version: [1.17.x]
22+
go-version: [1.18.x]
2323
os: [ubuntu-latest, windows-latest]
2424
runs-on: ${{ matrix.os }}
2525
name: Tests
@@ -51,7 +51,7 @@ jobs:
5151
name: Build
5252
strategy:
5353
matrix:
54-
go-version: [1.17.x]
54+
go-version: [1.18.x]
5555
runs-on: ubuntu-latest
5656
steps:
5757
- uses: actions/checkout@v3
@@ -86,7 +86,7 @@ jobs:
8686
lint:
8787
strategy:
8888
matrix:
89-
go-version: [1.17.x]
89+
go-version: [1.18.x]
9090
name: Lint
9191
runs-on: ubuntu-latest
9292
steps:

.github/workflows/goreleaser-snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Go
2222
uses: actions/setup-go@v3
2323
with:
24-
go-version: 1.17
24+
go-version: 1.18
2525

2626
- name: Create snapshot
2727
uses: goreleaser/goreleaser-action@v3

.github/workflows/tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup Go
1717
uses: actions/setup-go@v3
1818
with:
19-
go-version: 1.17
19+
go-version: 1.18
2020

2121
- name: Set up QEMU
2222
uses: docker/setup-qemu-action@v2

.github/workflows/update-woke-usage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- uses: actions/setup-go@v3
1414
with:
15-
go-version: 1.17.x
15+
go-version: 1.18.x
1616

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

.github/workflows/woke.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Setup Go
1212
uses: actions/setup-go@v3
1313
with:
14-
go-version: 1.17
14+
go-version: 1.18
1515

1616
- uses: actions/cache@v3.0.5
1717
with:

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
name: 'woke'
88
entry: woke
99
args: [--exit-1-on-failure]
10-
# The 'go' binary on your path must be at least version 1.17.
10+
# The 'go' binary on your path must be at least version 1.18.
1111
language: 'golang'
1212
description: "Runs `woke`, building it from source on demand"

0 commit comments

Comments
 (0)