Skip to content

Commit 606e703

Browse files
authored
build: Upgrade to Go 1.19 (#1780)
* build: Upgrade to Go 1.19 * chore: Fix generated code comments
1 parent a2a6f16 commit 606e703

File tree

8 files changed

+8
-4
lines changed

8 files changed

+8
-4
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# [Choice] Go version (use -bullseye variants on local arm64/Apple Silicon): 1, 1.16, 1.17, 1-bullseye, 1.16-bullseye, 1.17-bullseye, 1-buster, 1.16-buster, 1.17-buster
2-
ARG VARIANT=1.18-bullseye
2+
ARG VARIANT=1.19-bullseye
33
FROM mcr.microsoft.com/vscode/devcontainers/go:0-${VARIANT}
44

55
# [Optional] If your requirements rarely change, uncomment this section to add them to the image.

.devcontainer/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
context: ..
77
dockerfile: .devcontainer/Dockerfile
88
args:
9-
VARIANT: 1.18-bullseye
9+
VARIANT: 1.19-bullseye
1010

1111
volumes:
1212
- ..:/workspace:cached

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
- uses: actions/setup-go@v3
3636
with:
37-
go-version: '1.18'
37+
go-version: '1.19'
3838

3939
- name: install ./...
4040
run: go install ./...

examples/batch/postgresql/batch.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/kyleconroy/sqlc
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20220626175859-9abda183db8e

internal/codegen/golang/templates/template.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ import (
193193
// versions:
194194
// sqlc {{.SqlcVersion}}
195195
// source: {{.SourceName}}
196+
196197
package {{.Package}}
197198

198199
import (

internal/endtoend/testdata/batch/postgresql/pgx/go/batch.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/endtoend/testdata/batch_imports/postgresql/pgx/go/batch.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)